Jump to content
  • 0

how to change this in YES/NO button?


FReyes

Question


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  117
  • Reputation:   1
  • Joined:  01/05/14
  • Last Seen:  

post-23181-0-31452600-1452570731_thumb.jpg

 

 

how to change YES/NO button?

 

 

 

This is my Script ___


prontera,147,173,6 script Arena Warper 413,{
switch(select("Prontera [ "+getmapusers("pvp_y_1-1")+" / 30 ]:Izlude [ "+getmapusers("pvp_y_8-2")+" /30 ]:Alberta [ "+getmapusers("pvp_y_1-4")+" /30 ]")) {

case 1:
mes " 0 ~ Cancel Room : 1 ~ Join Room";
input .@confirm;
if(.@confirm == 1) goto Arena1;
close;

Arena1:
if(getmapusers("pvp_y_1-1") == 29) goto Full; 
specialeffect2 EF_EARTHSPIKE;
specialeffect2 EF_DEVIL;
specialeffect2 EF_COIN;
specialeffect2 EF_SIGHTRASHER;
sleep2 1000; 
warp "pvp_y_8-2",0,0;
announce "[ Arena Warper ] : "+strcharinfo(0)+" Join Prontera Arena Room.",bc_all;
end;

case 2:
mes " 0 ~ Cancel Room : 1 ~ Join Room";
input .@confirm;
if(.@confirm == 1) goto Arena2;
close;

Arena2:
if(getmapusers("pvp_y_8-2") == 29) goto Full;
specialeffect2 EF_EARTHSPIKE;
specialeffect2 EF_DEVIL;
specialeffect2 EF_COIN;
specialeffect2 EF_SIGHTRASHER;
sleep2 1000; 
warp "pvp_y_8-2",0,0;
announce "[ Arena Warper ] : "+strcharinfo(0)+" Join Izlude Arena Room.",bc_all;
end;

case 3:
mes " 0 ~ Cancel Room : 1 ~ Join Room";
input .@confirm;
if(.@confirm == 1) goto Arena3;
close;

Arena3:
if(getmapusers("pvp_y_1-4") == 29) goto Full;
specialeffect2 EF_EARTHSPIKE;
specialeffect2 EF_DEVIL;
specialeffect2 EF_COIN;
specialeffect2 EF_SIGHTRASHER;
sleep2 1000; 
warp "pvp_y_1-4",0,0;
announce "[ Arena Warper ] : "+strcharinfo(0)+" Join Alberta Arena Room.",bc_all;
end;

Full:
next;
mes "This Arena is Full"; mes "Please Choose other Arena Room"; close;

Edited by Emistry
codebox
Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  117
  • Reputation:   1
  • Joined:  01/05/14
  • Last Seen:  

It should be working now

 

Note: remember to check your npc syntax, expecially the <TAB>.

 

i forgot the tab space.. sorry /sry

 

 

how to fix this? TIA /kis2

post-23181-0-02861100-1452649373_thumb.jpg

 

 

@benching, @pandaloveshamster thank you for replies guys,, i aprriciate it. thanks /thx

 

It should be working now

 

Note: remember to check your npc syntax, expecially the <TAB>.

 

i forgot the tab space.. sorry /sry

 

 

how to fix this? TIA /kis2

attachicon.gifbutton.jpg

 

 

@benching, @pandaloveshamster thank you for replies guys,, i aprriciate it. thanks /thx

 

 

problem solved /heh : "pvp_y-1-1"  to  "pvp_y_1-1" /thx a lot guys

 

 

 

 

how to change this name in Town name?  all towns always says "confirm entering pvp_y_1-1?

 

i configure it out

 

mes "Confirm entering "+.MapN$+" ?";

 

OnInit:

setarray .MapN$,"Prontera","Izlude","Alberta";
setarray .Map$,"pvp_y_1-1","pvp_y_8-2","pvp_y_1-4";
 
and all map always says confirm entering prontera?
 
always reading 1st map name.. /sob

 

post-23181-0-93257300-1452650523_thumb.jpg

Edited by d102791estiny
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  120
  • Reputation:   48
  • Joined:  07/23/13
  • Last Seen:  

What you mean "how to change YES/NO button?", I don't get it.


Or you mean this? Sorry I modified your script.

.@s = select("Prontera [ "+getmapusers(.Map$[0])+" / 30 ]:Izlude [ "+getmapusers(.Map$[1])+" /30 ]:Alberta [ "+getmapusers(.Map$[2])+" /30 ]");
mes "Confirm entering "+.Map$+" ?";
if(select("Yes","No")==1){
if(getmapusers(.Map$[.@s-1]) >= 30) goto Full; 
specialeffect2 EF_EARTHSPIKE;
specialeffect2 EF_DEVIL;
specialeffect2 EF_COIN;
specialeffect2 EF_SIGHTRASHER;
sleep2 1000; 
warp .Map$[.@s-1],0,0;
announce "[ Arena Warper ] : "+strcharinfo(0)+" Join "+.MapN$[.@s-1]+" Arena Room.",bc_all;
}
close;


Full:
next;
mes "This Arena is Full"; mes "Please Choose other Arena Room"; close;


OnInit:
setarray .MapN$,"Prontera","Izlude","Alberta";
setarray .Map$,"pvp_y_1-1","pvp_y_8-2","pvp_y_1-4";

Edited by yuchinin
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  117
  • Reputation:   1
  • Joined:  01/05/14
  • Last Seen:  

 

What you mean "how to change YES/NO button?", I don't get it.

Or you mean this? Sorry I modified your script.

 

prontera,147,173,6 script Arena Warper 413,{
.@s = select("Prontera [ "+getmapusers(.Map$[0])+" / 30 ]:Izlude [ "+getmapusers(.Map$[1])+" /30 ]:Alberta [ "+getmapusers(.Map$[2])+" /30 ]");
mes "Confirm entering "+.Map$+" ?";
if(select("Yes","No")==1){
if(getmapusers(.Map$[.@s-1]) >= 30) goto Full; 
specialeffect2 EF_EARTHSPIKE;
specialeffect2 EF_DEVIL;
specialeffect2 EF_COIN;
specialeffect2 EF_SIGHTRASHER;
sleep2 1000; 
warp .Map$[.@s-1],0,0;
announce "[ Arena Warper ] : "+strcharinfo(0)+" Join "+.MapN$[.@s-1]+" Arena Room.",bc_all;
}
close;


Full:
next;
mes "This Arena is Full"; mes "Please Choose other Arena Room"; close;


OnInit:
setarray .MapN$,"Prontera","Izlude","Alberta";
setarray .Map$,"pvp_y-1-1","pvp_y_8-2","pvp_y_1-4";
}

 

 

no working

 

 

 

yes/no button like this.. TIA /kis2

post-23181-0-99857700-1452577287_thumb.jpg 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  120
  • Reputation:   48
  • Joined:  07/23/13
  • Last Seen:  

It should be working now

 

Note: remember to check your npc syntax, expecially the <TAB>.

Edited by yuchinin
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  350
  • Reputation:   43
  • Joined:  09/07/12
  • Last Seen:  

changed the `switch` with this

switch(select("yes","no")){

    case 1://

        mes "selected = yes";

        break;

    case 2:

        mes "selected = no";

        break;

}

Edited by benching
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  452
  • Reputation:   33
  • Joined:  12/18/14
  • Last Seen:  


switch(select("Yes:No")){

case 1:

...

end;

case 2:

...

end;

}

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