Hello, Can anyone help me with this party warper script? I got a party warper script from https://rathena.org/board/topic/123333-warping-a-party-to-specified-player-through-menu/ . The script allows you to warp wherever your party member is andI want to improve it somehow by adding some restrictions and displaying only the name of the members who are online to it but I fail it make it work.
Restricstions in example, mvp map, woe, or pvp area.
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;
}
Question
ItsRas
Hello, Can anyone help me with this party warper script? I got a party warper script from https://rathena.org/board/topic/123333-warping-a-party-to-specified-player-through-menu/ . The script allows you to warp wherever your party member is andI want to improve it somehow by adding some restrictions and displaying only the name of the members who are online to it but I fail it make it work.
Restricstions in example, mvp map, woe, or pvp area.
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 :")
Link to comment
Share on other sites
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.