I have created a script which will assign an account-wide delay timer to those who log out to avoid the warp-out NPC which I have variables attached to.
My problem is the 'ins_nyd2 value - it always returns 0.
[Warning]: script_get_val: cannot access instance variable ''ins_nyd2', defaulting to 0
The script works fine if I removethe if ('ins_nyd2 < 4) end; line, but there are cases when players genuinely disconnect, which would lock them out of finishing the instance.
- script nyd_logout_exploit FAKE_NPC,{ OnPCLogoutEvent: if (!compare(strcharinfo(PC_MAP), "2@nyd")) end; getmapxy (@map$,@x,@y,UNITTYPE_PC); if ('ins_nyd2 < 4) end; if ((@x >= 100 && @x <= 300) && (@y >= 255 && @y <= 390)) #nyd_nest = gettimetick(2) + ( 60 * 60 * 24 * 3); // 3 Days end; }Edited by True ZealShare this post
Link to post
Share on other sites