summaryrefslogtreecommitdiff
path: root/npc/other
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-11-19 04:46:50 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-11-19 04:46:50 +0000
commitc116ea51790a6d42280cf599192614dc373cf91d (patch)
tree8eccdef78694bac85683e7a5730bd42d3a6a4228 /npc/other
parent2b6f3618d99f725d224859d17344b640e0255d59 (diff)
downloadhercules-c116ea51790a6d42280cf599192614dc373cf91d.tar.gz
hercules-c116ea51790a6d42280cf599192614dc373cf91d.tar.bz2
hercules-c116ea51790a6d42280cf599192614dc373cf91d.tar.xz
hercules-c116ea51790a6d42280cf599192614dc373cf91d.zip
Updated scripts with select().. THERE ARE TONS OF THEM!! Will somebody give me a hand or something? :B
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9259 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc/other')
-rw-r--r--npc/other/comodo_gambling.txt2
-rw-r--r--npc/other/dts_warper.txt10
-rw-r--r--npc/other/marriage.txt10
-rw-r--r--npc/other/powernpc.txt8
4 files changed, 21 insertions, 9 deletions
diff --git a/npc/other/comodo_gambling.txt b/npc/other/comodo_gambling.txt
index 9412810e1..f9cbd557b 100644
--- a/npc/other/comodo_gambling.txt
+++ b/npc/other/comodo_gambling.txt
@@ -124,6 +124,8 @@ comodo.gat,219,160,3 script Kachua 91,{
set @item,512;
switch( select( "Weapon", "Armor", "Garment", "Helmet", "Shoes", "Shield" ) )
{
+ case 255:
+ end;
case 1: // Weapons
set @gamble,rand(1,1000);
if ((@gamble > 920) && (@gamble < 931))
diff --git a/npc/other/dts_warper.txt b/npc/other/dts_warper.txt
index f7f71d9c2..31d38bba2 100644
--- a/npc/other/dts_warper.txt
+++ b/npc/other/dts_warper.txt
@@ -824,17 +824,13 @@ function script F_DTS_Warp {
next;
switch(select(@dtswarp$[0],@dtswarp$[1],@dtswarp$[2],@dtswarp$[3])){
case 1:
- set @num, 0;
- break;
case 2:
- set @num, 1;
- break;
case 3:
- set @num, 2;
- break;
case 4:
- set @num, 3;
+ set @num, @menu - 1;
break;
+ default:
+ end;
}
Lwarp:
if (@dtswarp$[@num] == "Cancel") goto Lcancel;
diff --git a/npc/other/marriage.txt b/npc/other/marriage.txt
index 200968bb2..35571a1ae 100644
--- a/npc/other/marriage.txt
+++ b/npc/other/marriage.txt
@@ -215,6 +215,8 @@ function SF_AcceptGroom {
mes "["+@name$+"]";
mes "After your groom approves, you will be given your rings, the ceremony will begin and you will be officially married.";
close;
+ default:
+ end;
}
}
@@ -248,6 +250,8 @@ function SF_AcceptBride {
mes "["+@name$+"]";
mes "After your bride approves, you will be given your rings, the ceremony will begin and you will be officially married.";
close;
+ default:
+ end;
}
}
@@ -478,6 +482,8 @@ prt_church.gat,106,99,3 script Sister Mary 67,{
case 4: //Register
SF_Register();
break;
+ default:
+ end;
}
} while (@menu > 1);
end;
@@ -873,6 +879,8 @@ prt_church.gat,94,99,4 script Sister Lisa 79,{
initnpctimer;
mes "Very well, get your partner to confirm, and I will collect the fee for filing the divorce then.";
close;
+ default:
+ end;
}
} while (@menu > 1);
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 "So, should I proceed with the divorce?";
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 "I hope you can work things out.";
emotion e_pat;
diff --git a/npc/other/powernpc.txt b/npc/other/powernpc.txt
index 94539780e..5785d1201 100644
--- a/npc/other/powernpc.txt
+++ b/npc/other/powernpc.txt
@@ -110,6 +110,7 @@ gonryun.gat,180,118,4 script Iron man#gnp 85,{
mes "something new. Wanna try??";
break;
case 3:
+ case 255:
mes "[Songmoodoo]";
mes "I guess not..";
mes "....";
@@ -164,7 +165,7 @@ gon_test.gat,50,14,4 script Administrator#gnp 780,{
mes "Remember, you have to pay";
mes "500z to fight.";
next;
- if (select("Yes, let me fight!:One moment, please.") == 2) {
+ if (select("Yes, let me fight!:One moment, please.") != 1) {
mes "[Administrator]";
mes "Ok, see you later.";
close;
@@ -199,11 +200,15 @@ gon_test.gat,42,89,4 script Summoner#gnp 774,{
mes "Which monster would you recall?";
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");
+ if(@gnpGroup > 11 || @gnpGroup < 1)
+ end;
set @gnpGroupMob$,.gnpMobsName$[(@gnpGroup-1)*6];
for (set @i,1; @i < 6; set @i, @i+1) {
set @gnpGroupMob$, @gnpGroupMob$ + ":" + .gnpMobsName$[(@gnpGroup-1)*6 + @i];
}
set @gnpMob,select(@gnpGroupMob$);
+ if(@gnpMob > 6 || @gnpMob < 1)
+ end;
mes "[SongYeunWoo]";
mes "Let the fight begin!";
close2;
@@ -305,6 +310,7 @@ gon_test.gat,46,14,3 script Guide of field of fight#gnp 770,{
warp "gonryun.gat",177,112;
end;
case 5:
+ case 255:
mes "[SongHeeYeon]";
mes "........";
mes "Good bye..";