Open GitMadKing opened 3 years ago
I'm not able to reproduce
@Jhobean hm.. it's reproducible on my side with the default SphereX script pack.
Trying to cast Recall with no reags
same for blood moss.
But then black pearl is displayed correctly (also casting Recall but added mandrake root and blood moss reags before).
Fucking weird it's ok for me.. But i'm sure at 100% I already saw this wrong message too. It's seem to be an intermitent bug... I can't fix if I can't reprodure :-(
Ok I know How reproduce. If you have a new char on gm account .add i_spellbook .xmore1 0fffff
Witch GM turn OFF and ini setting you need regs. .cast 10 You will get the message with the defname! .add i_reag_nightshade and make it appear on the ground next to you. Now you will see the name instead of defname (magicaly it's fixed!)
Same patern for each reag
.cast 11 for i_reag_ginseng
Now come the Fucking weird part! With the nightshade next to you again, save the shard and reboot server Login again and .cast 10 You will get the message with the name because the item is near your character
Delete the item on ground Save the shard and reboot server .cast 10 You will get the message with the defname AGAIN!!!
I did some tests and looks like:
If no istance of the reagent object is on the world the following method
will call the base method that return the item defname .
Instead if there is at least one istance of the reagent in the world the method above will call the object getname method
Why server check on the save if item is there? That make no sense... Probably faster check the name on the script.
When a save is loaded all the objects are stored in memory
when casting spell, without reagent
you get the defname of missing reagent in the sysmessage
if override in messagges
spell_try_noregs "You lack %s for this spell"
you see correctly the name of reagent