Guih Posted January 18, 2013 Posted January 18, 2013 Hello everyone! I don't know alot about scripting, but I have a NPC made by a friend. What I need is that If the leader of the party dies, warp the whole party (if this party is in the map "1@synav") to Prontera. So I came up with this npc: - script quit_pt -1,{ OnPcDieEvent: if(strcharinfo(3) == "1@synav" && getcharid(0) == getpartyleader(getcharid(1),2)) warpparty "prontera",150,150,getcharid(1); end; } But it did not work Does anyone know what's the problem with it? Thanks Quote
Euphy Posted January 18, 2013 Posted January 18, 2013 Do you have the noreturn mapflag set? trunk/conf/mapflag/noreturn.txt //= Also restricts "warpparty" and "warpguild" script commands. 1 Quote
Capuche Posted January 18, 2013 Posted January 18, 2013 What I need is that If the leader of the party dies, warp the whole party (if this party is in the map "1@synav") to Prontera. If you use instancing system, the map name "1@synav" become "0011@synav" Quote
Brian Posted January 19, 2013 Posted January 19, 2013 If you use instancing system, the map name "1@synav" become "0011@synav" In that case, you could use compare: - script quit_pt -1,{ OnPcDieEvent: if (compare(strcharinfo(3),"1@synav") && getcharid(0) == getpartyleader(getcharid(1),2)) warpparty "prontera",150,150,getcharid(1); end; } Quote
Question
Guih
Hello everyone!
I don't know alot about scripting, but I have a NPC made by a friend.
What I need is that If the leader of the party dies, warp the whole party (if this party is in the map "1@synav") to Prontera.
So I came up with this npc:
But it did not work
Does anyone know what's the problem with it?
Thanks
3 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.