Jump to content
  • 0

[Request] Party leader warper


nobukadnezar

Question


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  163
  • Reputation:   7
  • Joined:  01/07/12
  • Last Seen:  

Hello.

Anyone could make script foor warper to party leader? But it strict to certain maps, such as castle or PVP map. Any help would be appreciate.

Thanks~

anyone?

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  103
  • Reputation:   0
  • Joined:  11/13/11
  • Last Seen:  

please give some details

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  163
  • Reputation:   7
  • Joined:  01/07/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  163
  • Reputation:   7
  • Joined:  01/07/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

try this

change

getmapxy .@MAP$,.@X,.@Y,0;

into this

if( HP ) getmapxy .@MAP$,.@X,.@Y,0;

Link to comment
Share on other sites

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.

×
×
  • Create New...