someone of another community (Jabote) made this script, but it doesnt seem functional. it is suppose to enable killable in a certain cell and that it does but it remains enabled when i leave the circle/cords. Does anyone know how to disable it upon leaving the cords?
Thanks in advance
prontera,202,167,0 script killable -1,8,8,{
OnTouch:
if (!@killable) {
@killable = 1; // Variable for keeping track of the status
atcommand "@killable"; // Don't remember if it needed a parameter, I think it doesn't
addtimer 1000, strnpcinfo(3)+"OnKillable"; // Will check after a second
}
end;
OnKillable:
getmapxy(.@map$, .@x, .@y, 0);
if ((.@map$ != prontera || .@x < 202 - 8 || .@x < 202 + 8 || .@y < 167 - 8 || .@y < 167 + 8)) { // Out of the area of effect in Y side
@killable = 0;
atcommand "@killable"; // Don't remember if it needed a parameter, I think it doesn't
}
else addtimercount 1000, strnpcinfo(3)+"OnKillable"; // Will check again after a second until player goes out of the square
end;
}
Question
HristDead
Hi.
someone of another community (Jabote) made this script, but it doesnt seem functional. it is suppose to enable killable in a certain cell and that it does but it remains enabled when i leave the circle/cords. Does anyone know how to disable it upon leaving the cords?
Thanks in advance
Link to comment
Share on other sites
8 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.