bWolfie
I'm the man
Hello,
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.
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.
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.
Code:
[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.
Code:
- 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;
}
Last edited by a moderator: