Updated scripts with select().. THERE ARE TONS OF THEM!! Will somebody give me a hand or something? :B

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9259 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
Lance 2006-11-19 04:46:50 +00:00
parent 97919b1a6f
commit 42e26b0423
16 changed files with 63 additions and 12 deletions

View File

@ -856,6 +856,7 @@ function script applegamble {
mes "in a friendly game of Dice?"; mes "in a friendly game of Dice?";
next; next;
switch(select("Play Dice Game:Learn Dice Game Rules:Cancel")){ switch(select("Play Dice Game:Learn Dice Game Rules:Cancel")){
case 255:
case 3: case 3:
mes "["+getarg(0)+"]"; mes "["+getarg(0)+"]";
mes "I'm up for a game of"; mes "I'm up for a game of";
@ -937,7 +938,7 @@ L_Input:
mes "betting ^FF0000"+@amount+"^000000 Apples."; mes "betting ^FF0000"+@amount+"^000000 Apples.";
mes "Is that right?"; mes "Is that right?";
next; next;
if(select("Yes:No")==2){ if(select("Yes:No")==2 || @menu == 255){
mes "["+getarg(0)+"]"; mes "["+getarg(0)+"]";
mes "Mm, made a mistake?"; mes "Mm, made a mistake?";
mes "Alright, please enter the"; mes "Alright, please enter the";
@ -1043,6 +1044,9 @@ L_Input:
mes "luck next time."; mes "luck next time.";
} }
close; close;
} else {
if(@menu == 255)
end;
} }
mes "^0000FF*Rolling and rumbling*"; mes "^0000FF*Rolling and rumbling*";
set @player3,rand(1,6); set @player3,rand(1,6);

View File

@ -823,6 +823,9 @@ s_Got:
set @stoneStr$,"Rough Wind"; set @stoneStr$,"Rough Wind";
break; break;
case 255:
end;
} }
if(countitem(@stoneID) < 8)goto s_NEnough; if(countitem(@stoneID) < 8)goto s_NEnough;
mes "[Laspuchin Gregory]"; mes "[Laspuchin Gregory]";

View File

@ -239,6 +239,7 @@ gonryun.gat,237,226,3 script YunKyoHam#gn 776,{
mes "My curse shall be on his head!!!"; mes "My curse shall be on his head!!!";
close; close;
} }
if(@menu == 255) end;
mes "[YunKyoHam]"; mes "[YunKyoHam]";
mes "ohoh! Thank you!"; mes "ohoh! Thank you!";
mes "Take these potions."; mes "Take these potions.";
@ -500,6 +501,8 @@ gonryun.gat,163,60,4 script Gonryun Guide 780,{
mes "Enjoy your trip in"; mes "Enjoy your trip in";
mes "lovely Gonryun!"; mes "lovely Gonryun!";
break; break;
case 255:
end;
} }
close; close;
} }

View File

@ -45,6 +45,8 @@ hu_in01.gat,23,311,4 script Johsh 898,{
mes @npcname$; mes @npcname$;
mes "Aww~~ you miss it"; mes "Aww~~ you miss it";
close; close;
case 255:
end;
} }
} }

View File

@ -1050,7 +1050,7 @@ lighthalzen.gat,312,234,2 script Beggar 777,{
mes "Would you give me"; mes "Would you give me";
mes "some money?"; mes "some money?";
next; next;
if(select("Give him some money.:Ignore him.")==2){ if(select("Give him some money.:Ignore him.")==2 || @menu == 255){
mes "[" + strcharinfo(0) + "]"; mes "[" + strcharinfo(0) + "]";
mes "..."; mes "...";
mes "......"; mes "......";

View File

@ -171,12 +171,21 @@ L_book3:
if(select("Clover.:Klaatu.:Kleitos.")==2) if(select("Clover.:Klaatu.:Kleitos.")==2)
set @nif_t,@nif_t + 10; set @nif_t,@nif_t + 10;
if(@menu == 255)
end;
if(select("Verit.:Veritas.:Verata.")==3) if(select("Verit.:Veritas.:Verata.")==3)
set @nif_t,@nif_t + 10; set @nif_t,@nif_t + 10;
if(@menu == 255)
end;
if(select("Necktie.:Necklace.:Nero.:^FFFFFFNictu.^000000")==4) if(select("Necktie.:Necklace.:Nero.:^FFFFFFNictu.^000000")==4)
set @nif_t,@nif_t + 10; set @nif_t,@nif_t + 10;
if(@menu == 255)
end;
mes "[Ashe Bruce]"; mes "[Ashe Bruce]";
if(@nif_t == 30){ if(@nif_t == 30){
if(rand(9)){ if(rand(9)){

View File

@ -45,6 +45,7 @@ yuno_in02.gat,93,207,0 script Book of Ymir 111,{
mes "can be realized in the Hall of Honor."; mes "can be realized in the Hall of Honor.";
next; next;
switch(select("Stop reading.:Continue reading.")) { switch(select("Stop reading.:Continue reading.")) {
case 255:
case 1: case 1:
mes "[Book of Ymir]"; mes "[Book of Ymir]";
mes ". . . . ."; mes ". . . . .";

View File

@ -67,6 +67,7 @@ prontera.gat,146,92,3 script Cellerb 58,{
emotion e_thx; emotion e_thx;
close; close;
case 255:
case 2: case 2:
mes @npcname$; mes @npcname$;
mes "Oh well, maybe you will participate in tommorow's quest."; mes "Oh well, maybe you will participate in tommorow's quest.";

View File

@ -38,6 +38,7 @@ switch(select("10 Poison Kunais:10 Icycle Kunais:10 Rough Wind Kunais:10 Black S
callfunc "Kunai_Trade",13254,1,7521,2,13258; callfunc "Kunai_Trade",13254,1,7521,2,13258;
goto L_Bye; goto L_Bye;
case 6: case 6:
case 255:
goto L_Bye; goto L_Bye;
} }
L_Bye: L_Bye:
@ -90,6 +91,7 @@ function script Kunai_Trade {
next; next;
return; return;
case 2: case 2:
case 255:
return; return;
} }
L_Return: L_Return:

View File

@ -134,6 +134,8 @@ function script F_NMerch {
mes "Hah, no problem."; mes "Hah, no problem.";
mes "Bah!"; mes "Bah!";
close; close;
case 255:
end;
} }
} }

View File

@ -798,12 +798,13 @@ function script repairmain {
getitemname(getbrokenid(3)),getitemname(getbrokenid(4)),getitemname(getbrokenid(5)), getitemname(getbrokenid(3)),getitemname(getbrokenid(4)),getitemname(getbrokenid(5)),
getitemname(getbrokenid(6)),getitemname(getbrokenid(7)),getitemname(getbrokenid(8)), getitemname(getbrokenid(6)),getitemname(getbrokenid(7)),getitemname(getbrokenid(8)),
getitemname(getbrokenid(9)),getitemname(getbrokenid(10))); getitemname(getbrokenid(9)),getitemname(getbrokenid(10)));
if(@choice == 255) end;
mes "[" + @name$ + "]"; mes "[" + @name$ + "]";
mes "You're gonna repair " + getitemname(getbrokenid(@choice)) + "."; mes "You're gonna repair " + getitemname(getbrokenid(@choice)) + ".";
mes "To repair this, I need " + @repairprice + " Zeny."; mes "To repair this, I need " + @repairprice + " Zeny.";
mes "Continue?"; mes "Continue?";
next; next;
if(select("Yes","No") == 2) { if(select("Yes","No") == 2 || @menu == 255) {
mes "[" + @name$ + "]"; mes "[" + @name$ + "]";
mes "Ok, but don't expect to be using that..."; mes "Ok, but don't expect to be using that...";
close; close;

View File

@ -124,6 +124,8 @@ comodo.gat,219,160,3 script Kachua 91,{
set @item,512; set @item,512;
switch( select( "Weapon", "Armor", "Garment", "Helmet", "Shoes", "Shield" ) ) switch( select( "Weapon", "Armor", "Garment", "Helmet", "Shoes", "Shield" ) )
{ {
case 255:
end;
case 1: // Weapons case 1: // Weapons
set @gamble,rand(1,1000); set @gamble,rand(1,1000);
if ((@gamble > 920) && (@gamble < 931)) if ((@gamble > 920) && (@gamble < 931))

View File

@ -824,17 +824,13 @@ function script F_DTS_Warp {
next; next;
switch(select(@dtswarp$[0],@dtswarp$[1],@dtswarp$[2],@dtswarp$[3])){ switch(select(@dtswarp$[0],@dtswarp$[1],@dtswarp$[2],@dtswarp$[3])){
case 1: case 1:
set @num, 0;
break;
case 2: case 2:
set @num, 1;
break;
case 3: case 3:
set @num, 2;
break;
case 4: case 4:
set @num, 3; set @num, @menu - 1;
break; break;
default:
end;
} }
Lwarp: Lwarp:
if (@dtswarp$[@num] == "Cancel") goto Lcancel; if (@dtswarp$[@num] == "Cancel") goto Lcancel;

View File

@ -215,6 +215,8 @@ function SF_AcceptGroom {
mes "["+@name$+"]"; mes "["+@name$+"]";
mes "After your groom approves, you will be given your rings, the ceremony will begin and you will be officially married."; mes "After your groom approves, you will be given your rings, the ceremony will begin and you will be officially married.";
close; close;
default:
end;
} }
} }
@ -248,6 +250,8 @@ function SF_AcceptBride {
mes "["+@name$+"]"; mes "["+@name$+"]";
mes "After your bride approves, you will be given your rings, the ceremony will begin and you will be officially married."; mes "After your bride approves, you will be given your rings, the ceremony will begin and you will be officially married.";
close; close;
default:
end;
} }
} }
@ -478,6 +482,8 @@ prt_church.gat,106,99,3 script Sister Mary 67,{
case 4: //Register case 4: //Register
SF_Register(); SF_Register();
break; break;
default:
end;
} }
} while (@menu > 1); } while (@menu > 1);
end; end;
@ -873,6 +879,8 @@ prt_church.gat,94,99,4 script Sister Lisa 79,{
initnpctimer; initnpctimer;
mes "Very well, get your partner to confirm, and I will collect the fee for filing the divorce then."; mes "Very well, get your partner to confirm, and I will collect the fee for filing the divorce then.";
close; close;
default:
end;
} }
} while (@menu > 1); } while (@menu > 1);
end; end;
@ -894,7 +902,7 @@ function SF_InProgress {
mes $@divorcer$+" has asked to divorce you. If you accept, and have the fee of "+$@wed_divorce_fee+"z at hand, I will proceed to divorce you two."; mes $@divorcer$+" has asked to divorce you. If you accept, and have the fee of "+$@wed_divorce_fee+"z at hand, I will proceed to divorce you two.";
mes "So, should I proceed with the divorce?"; mes "So, should I proceed with the divorce?";
next; next;
if (select("I don't want to divorce....","Yes, we have agreed to this.")!=2) { if (select("I don't want to divorce....", "Yes, we have agreed to this.") !=2) {
mes "["+@name$+"]"; mes "["+@name$+"]";
mes "I hope you can work things out."; mes "I hope you can work things out.";
emotion e_pat; emotion e_pat;

View File

@ -110,6 +110,7 @@ gonryun.gat,180,118,4 script Iron man#gnp 85,{
mes "something new. Wanna try??"; mes "something new. Wanna try??";
break; break;
case 3: case 3:
case 255:
mes "[Songmoodoo]"; mes "[Songmoodoo]";
mes "I guess not.."; mes "I guess not..";
mes "...."; mes "....";
@ -164,7 +165,7 @@ gon_test.gat,50,14,4 script Administrator#gnp 780,{
mes "Remember, you have to pay"; mes "Remember, you have to pay";
mes "500z to fight."; mes "500z to fight.";
next; next;
if (select("Yes, let me fight!:One moment, please.") == 2) { if (select("Yes, let me fight!:One moment, please.") != 1) {
mes "[Administrator]"; mes "[Administrator]";
mes "Ok, see you later."; mes "Ok, see you later.";
close; close;
@ -199,11 +200,15 @@ gon_test.gat,42,89,4 script Summoner#gnp 774,{
mes "Which monster would you recall?"; mes "Which monster would you recall?";
next; next;
set @gnpGroup,select("Group 1:Group 2:Group 3:Group 4:Group 5:Group 6:Group 7:Group 8:Group 9:Group 10:Group 11"); set @gnpGroup,select("Group 1:Group 2:Group 3:Group 4:Group 5:Group 6:Group 7:Group 8:Group 9:Group 10:Group 11");
if(@gnpGroup > 11 || @gnpGroup < 1)
end;
set @gnpGroupMob$,.gnpMobsName$[(@gnpGroup-1)*6]; set @gnpGroupMob$,.gnpMobsName$[(@gnpGroup-1)*6];
for (set @i,1; @i < 6; set @i, @i+1) { for (set @i,1; @i < 6; set @i, @i+1) {
set @gnpGroupMob$, @gnpGroupMob$ + ":" + .gnpMobsName$[(@gnpGroup-1)*6 + @i]; set @gnpGroupMob$, @gnpGroupMob$ + ":" + .gnpMobsName$[(@gnpGroup-1)*6 + @i];
} }
set @gnpMob,select(@gnpGroupMob$); set @gnpMob,select(@gnpGroupMob$);
if(@gnpMob > 6 || @gnpMob < 1)
end;
mes "[SongYeunWoo]"; mes "[SongYeunWoo]";
mes "Let the fight begin!"; mes "Let the fight begin!";
close2; close2;
@ -305,6 +310,7 @@ gon_test.gat,46,14,3 script Guide of field of fight#gnp 770,{
warp "gonryun.gat",177,112; warp "gonryun.gat",177,112;
end; end;
case 5: case 5:
case 255:
mes "[SongHeeYeon]"; mes "[SongHeeYeon]";
mes "........"; mes "........";
mes "Good bye.."; mes "Good bye..";

View File

@ -95,6 +95,9 @@ que_ng.gat,182,85,3 script Mr.Garrison 109,{
mes "will never part from his"; mes "will never part from his";
mes "favorite gun, heh."; mes "favorite gun, heh.";
close; close;
default:
end;
} }
L_Slot: L_Slot:
@ -162,6 +165,8 @@ L_Slot:
mes "Okay, come back when you"; mes "Okay, come back when you";
mes "changed your mind."; mes "changed your mind.";
close; close;
default:
end;
} }
L_Already: L_Already:
@ -247,6 +252,8 @@ que_ng.gat,187,163,3 script Ingrid 744,{
mes "Probably a good choice."; mes "Probably a good choice.";
mes "It's really dangerous."; mes "It's really dangerous.";
close; close;
default:
end;
} }
} }
@ -322,6 +329,8 @@ que_ng.gat,185,180,3 script Vanessa 726,{
mes @npcname$; mes @npcname$;
mes "Oh well, your loss."; mes "Oh well, your loss.";
close; close;
default:
end;
} }
} }
@ -401,5 +410,7 @@ que_ng.gat,149,178,5 script N.A 744,{
mes @npcname$; mes @npcname$;
mes "Oh well, your loss."; mes "Oh well, your loss.";
close; close;
default:
end;
} }
} }