Hello everyone,
Can anyone help me with my party warper? I have managed to convert the script from the other emulator to herc but the problem it won't warp you to your party member.
The error I am getting is this
The script:
prontera,156,182,0 script Party Warper 4_F_SWORDMAN,{
.@pid = getcharid(1);
.@cid = getcharid(0);
.@name$ = strcharinfo(0);
if (!.@pid) end;
getpartymember .@pid, 0;
getpartymember .@pid, 1;
getpartymember .@pid, 2;
for (.@i = 0; .@i < $@partymembercount; .@i++)
.@menu$ = .@menu$ + (.@name$ != $@partymembername$[.@i] ? $@partymembername$[.@i] : "") + ":";
.@s = select(.@menu$) - 1;
.@target$ = $@partymembername$[.@s];
if (isloggedin($@partymemberaid[.@s], $@partymembercid[.@s])) {
getmapxy .@map$, .@x, .@y, BL_PC, .@target$;
if (setarray(.restricted_map$, .@map$) != -1)
message .@name$,"This is a restricted map.";
else
warp .@map$, .@x, .@y, .@cid;
} else
message .@name$, .@target$ + " is not online.";
close;
OnInit:
setarray .restricted_map$[0],
"payon",
"geffen";
end;
}
Hope you guys can help me. Thanks in advance.