![]() |
Getting the body of death char - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Getting the body of death char (/Thread-Getting-the-body-of-death-char) |
Getting the body of death char - kn4tseb - 09-03-2014 03:12 AM Guys i need to get the obody/body or id of humans/elfs when targeting a death body ON=@targon_Char serv.log <serf.chardef.<eval <argo.morex>+<argo.morey>>.baseid> will get me the baseis but baseid on chars are many... and i cant get the ID of the inhereted char, like c_man or c_elf_male Can't resolve <serv.chardef.24681.id> Can't resolve <serv.chardef.c_woodelf_elite_ranger.id> so i need an idea of how could i know if the death corpse belonged to a human or elf (non players) ------------------------------------- Maybe the amount of the corpse??? 400 and 605??? all humans and elfs has this amount bodies? RE: Getting the body of death char - Feeh - 09-03-2014 04:28 AM By body of death char I can think about 2 options 1-The dead body on the ground which will contains the loot amount property will hold the char id (or anim id). For human male the amount is 400, for human female the amount is 401..the same for the other mobiles 2-The dead player anim, the body the client turn into when dead (afaik 402 for dead human male, 403 for dead human female...) --- ID does not exist on serv.chardef.x.ID try using baseid <serf.chardef.<argo.amount>.baseid> //eval is not needed, decimal and hexadecimal number have the same values with different notations if <argo.amount> == 400 || <argo.amount> == 401 say Its a human! elif <argo.amount> == 605 || <argo.amount> == 606 say its an elf! else say its unknown! endif RE: Getting the body of death char - kn4tseb - 09-03-2014 04:33 AM Will try, thanks feeh. |