![]() |
Verifying tevents with serv.chardef - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Verifying tevents with serv.chardef (/Thread-Verifying-tevents-with-serv-chardef) |
Verifying tevents with serv.chardef - Gil Amarth - 12-21-2013 03:18 AM I´m trying to check is one of my npcs has one tevent installed on him. For example: serv.chardef.c_zombie.istevent.e_undead Return me an error, I wish to get a 1 if the zombie has the tevent, or a 0, if he doesn´t. Any suggestions? On a living zombie, istevent works wonderful, but it seems that doesn´t work from serv.chardef RE: Verifying tevents with serv.chardef - Wap - 12-21-2013 03:47 AM <serv.chardef.c_zombie.tevents> + manual check? RE: Verifying tevents with serv.chardef - Gil Amarth - 12-21-2013 04:07 AM I hoped it would be possible be resolved with istevent. I resolved it with a custom function, if anybody is interested: Quote:[FUNCTION F_STRING_COMPARATION] // <ARGV[0]> String to find, <ARGV[N]> Strings to Compare, RE: Verifying tevents with serv.chardef - Mordaunt - 12-21-2013 06:41 AM info ![]() Very much a work in progress, currently halted while all the new variable stuff gets sorted out, but that version will list events, tevents and tags on whatever you target. |