Jump to content
The forums will be going offline for an extended maintenance period at 1400hrs GMT on 19th June 2025. The number of hours for this downtime is intentionally not advertised due to the nature of these upgrades. ×
  • 0

warp to 2 specific location


donkeyg

Question


  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.07
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  


prontera,161,183,4 script PvP Warper::pvp#1 808,{
mes "[PvP Warper]";


L_Yes:
mes "[PvP Warper]";
mes "Which PvP Arena do you want to enter?";
menu "Free For All PvP Arena  [" + getmapusers("guild_vs3.gat") + "]",L1,


end;


L1:
if (getmapusers("guild_vs3.gat") > 99) goto Lsorry;
announce "[ "+strcharinfo(0)+" ] has entered to the PvP Arena Room",0,0x81DAF5;
warp "guild_vs3",0,0;
close;



how to make it warp to 2 random place ONLY EITHER  "Guild_vs3 69,30"  or  "guild_vs3 140,40" ONLY?

 


bump


bumppppppp pls help anyone.

Edited by donkeyg
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


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


if( rand(2) ){

warp "guild_vs3",69,30;

}else{

warp "guild_vs3",140,40;

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.07
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  

if( rand(2) ){
    warp "guild_vs3",69,30;
}else{
    warp "guild_vs3",140,40;
}

Put like this?

 

L1:
if (getmapusers("guild_vs3.gat") > 99) goto Lsorry;
announce "[ "+strcharinfo(0)+" ] has entered to the PvP Arena Room",0,0x81DAF5;
if( rand(2) ){
warp "guild_vs3",69,30;
}else{
warp "guild_vs3",140,40;
}
close;

If i wan 3random location.

 

L1:
if (getmapusers("guild_vs3.gat") > 99) goto Lsorry;
announce "[ "+strcharinfo(0)+" ] has entered to the PvP Arena Room",0,0x81DAF5;
if( rand(3) ){
warp "guild_vs3",69,30;
}else{
warp "guild_vs3",140,40;
}else{
warp "guild_vs3",30,30;
}
close;

Like this? is it correct? 

Link to comment
Share on other sites


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


switch( rand(3) ){

default: warp "map",x,y; break;

case 1: warp "map",x,y; break;

case 2: warp "map",x,y; break;

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.07
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  


thanks!

Edited by donkeyg
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...