SphereCommunity
original name of a pet - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: original name of a pet (/Thread-original-name-of-a-pet)



original name of a pet - admin phoenix - 07-25-2012 06:56 PM

Hello,

how do I get back the orginal name of a pet that was renamed from me or a player?
On thing is to use <serv.chardef.c_dog.name>
but what about the pets that have real names (from the sphere_name.scp script).
maybe I have to put an tag0. over them when the trigger @rename is started?

gr

phoenix


RE: original name of a pet - Alias - 07-25-2012 07:40 PM

I use this in my shrink potion maybe it will help you
Code:
SRC.NEWITEM=<SRC.TARG.ICON>
SRC.ACT.TAG.NAME=<serv.chardef.<argo.baseid>.name>
SRC.ACT.NAME=<serv.chardef.<argo.baseid>.name>
SRC.ACT.COLOR=<SRC.TARG.COLOR>
SRC.ACT.MORE1=<SRC.TARG.BASEID>
SRC.ACT.MORE2 = <src.targ.uid>
SRC.ACT.BOUNCE
SRC.ACT.TYPE=t_figurine
SRC.TARG.REMOVE
F_AMOUNT
return 1
endif



RE: original name of a pet - admin phoenix - 07-25-2012 08:02 PM

that´s what I said Smile
thanks Alias

btw, very old code style *g*