Jump to content
  • 0

how to change this in YES/NO button?


Question

Posted (edited)

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

6 answers to this question

Recommended Posts

  • 0
Posted (edited)

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
  • 0
Posted (edited)

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
  • 0
Posted

 

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 

  • 0
Posted (edited)

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

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