Jump to content

Recommended Posts

Posted

Can you somehow edit it or add a function where it check the map of the player, and if it's on a certain map, it will not allow the player to warp to his friend?

Example, WoE, PvP. GvG, battleground, Special rooms.

Posted

try this

 getmapxy(@m$,@x,@y,0,rid2name(@aid[@menu]));
 if( getmapflag(@m$,mf_pvp) || @m$ == "mapname" || @m$ == "mapname" ){
  mes "You cant warp to his map now.";
 }else{
  warp @m$,@x,@y;
 }

Posted (edited)

Thanks, but.

all I have to do is to change is the map name like this?

getmapxy(@m$,@x,@y,0,rid2name(@aid[@menu]));

if( getmapflag(@m$,mf_pvp) || @m$ == "prtg_cas01" || @m$ == "prtg_cas02" ){

mes "You cant warp to his map now.";

}else{

warp @m$,@x,@y;

}

Or was I missing something?

Edited by rainz89
Posted

Nice script but how to avoid when your friends is in event? like dice lms poring cather and etc. example when dice event is starting,, the mapflag

quiz_01 mapflag nowarpto
why using @warp can't enter then using this npc can enter,, O.o my point is how to avoid the player can't enter during event.
  • 5 months later...
Posted

 

Sir how can i make this script display all the current friends on the menu and not just the current online one...

like if click the warp to friend npc

it would display all the friend i have

then the online would be green while the offline will be red.

after that i click the red one, it would tell me "the player is not online" while if i click the green one "i would be warp to where the player is."

also if i dont have any friend it would say you dont have any friend and not display a blank menu.......

thank you.

Join the conversation

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

Guest
Reply to this topic...

×   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...