Hi, I need a script that spawn a warp portal when the users kill a boss. this warp dissapear when pass 1 minute. I were looking for commands to make it possible.
I think with:
OnNPCkillEvent :
But i don´t know how combine it correctly. Adding i have a noob question, the script i should to put in a npc? is it global? idk.
thx
prontera,157,169,5 script Espadachín2 119,{
OnNPCKillEvent:
if (killedrid == 1002) {
getmapxy(.@mapa$,.@x,.@y,0);
if (.@mapa$ == "prontera") {
sleep2 10000;
atcommand "@addwarp morocc 156 93 boss01";
sleep2 10000;
atcommand "@unloadnpc boss01";
set LQuests, LQuests | 1;
} // End if
} // End if
end;
}
I make it, but i think that it can be improved. because if people kill monster one time they can click npc and it execute anyways... =/
Question
angelwarrior
Hi, I need a script that spawn a warp portal when the users kill a boss. this warp dissapear when pass 1 minute. I were looking for commands to make it possible.
I think with:
OnNPCkillEvent :
But i don´t know how combine it correctly. Adding i have a noob question, the script i should to put in a npc? is it global? idk.
thx
I make it, but i think that it can be improved. because if people kill monster one time they can click npc and it execute anyways... =/
Warp appears off me
Edited by angelwarriorLink to comment
Share on other sites
4 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.