Jump to content
  • 0

[Request] Party leader warper


Question

5 answers to this question

Recommended Posts

Posted

It's warper to party leader (if we have a party). The current warper warps to "last warp, fields, dungeons, etc.... and we add "Party Warp"

With this warper, we could warp to party leader which benefit us while questing or hunting. I once played in some ps which have this kind of warper.

Posted

try this

prontera,155,181,5 script Sample 757,{
if( !getcharid(1) || getpartyleader( getcharid(1),2 ) == getcharid(0) ) {
mes "^FF0000Failed^000000.Perhaps you are not in a Party or your are the Leader.";
}else if( !isloggedin( getpartyleader( getcharid(1),1 ) )){
mes "Your Party Leader is Offline.";
}else{
mes "Warp to Leader Location ?";
if( select("Yes","No") == 2 ) close;
 set .@CID,getcharid(0);
 attachrid( getpartyleader( getcharid(1),1 ) );
  getmapxy .@MAP$,.@X,.@Y,0;
 warpchar .@MAP$,.@X,.@Y,.@CID;
end;
}
close;
}

  • Upvote 1
Posted (edited)

thank you Emistry, i just code by myself but it only warps to sama map with random coords because i use only getpartyleader commands. So there was known code getmapxy for knowing the leader coordinates. This just what i searched for.

For prevention, how about denying warp if party leader was in dead state? because it will be too easy for players if the leader was novice, and use play dead at endless tower =="

Edited by nobukadnezar

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...