tokisboy Posted April 8, 2020 Posted April 8, 2020 Help can someone shared party warper npc script example: menu player name then warp to player Quote
0 Patskie Posted April 10, 2020 Posted April 10, 2020 prontera,150,150,0 script Party Warper 100,{ if (!getcharid(1)) end; .@c = getcharid(0); getpartymember getcharid(1), 0; getpartymember getcharid(1), 1; getpartymember getcharid(1), 2; for (.@i = 0; .@i < $@partymembercount; .@i++) .@menu$ = .@menu$ + (strcharinfo(0) != $@partymembername$[.@i] ? $@partymembername$[.@i] : "") + ":"; .@s = select(.@menu$) - 1; if (isloggedin($@partymemberaid[.@s], $@partymembercid[.@s])) { attachrid($@partymemberaid[.@s]); getmapxy .@map$, .@x, .@y; warp .@map$, .@x, .@y, .@c; } end; } Quote
0 ItsRas Posted January 1, 2021 Posted January 1, 2021 (edited) Hello @Patskie Im just wondering if you could help me? I am currently using your script on my test server. It works perfectly but I am curious is it possible to add limitations to it? For example, if the party member is on mvp, woe or pvp, or any restricted maps, you will not be able to warp to that member. Also, is it possible to only display the names of the members who's online? I did it this way but its not working. You still be able to warp to that party member even he is on restricted map. prontera,156,182,0 script Party Warper 100,{ if (!getcharid(1)) end; .@c = getcharid(0); getpartymember getcharid(1), 0; getpartymember getcharid(1), 1; getpartymember getcharid(1), 2; for (.@i = 0; .@i < $@partymembercount; .@i++) .@menu$ = .@menu$ + (strcharinfo(0) != $@partymembername$[.@i] ? $@partymembername$[.@i] : "") + ":"; .@s = select(.@menu$) - 1; if (isloggedin($@partymemberaid[.@s], $@partymembercid[.@s])) { attachrid($@partymemberaid[.@s]); getmapxy .@map$, .@x, .@y; if (@map$ == "aldebaran"){ mes "I can't be teleport you to your friend's location!"; close; } warp .@map$, .@x, .@y, .@c; } end; } Thank you in advance Edited January 1, 2021 by kohjuliana Added additional question Quote
Question
tokisboy
Help can someone shared party warper npc script
example:
menu player name then warp to player
2 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.