diff options
author | Haru <haru@dotalux.com> | 2013-11-10 04:28:03 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2013-11-10 04:31:28 +0100 |
commit | b4f1b3b5c5c009ed4f7635c5349ea97c80c08c25 (patch) | |
tree | cbd305d3896bdc9f498ed9eb72836dc7b6c32b99 /npc/battleground | |
parent | c9b63614070f7fce81c88cd60e5edad5a7730df0 (diff) | |
download | hercules-b4f1b3b5c5c009ed4f7635c5349ea97c80c08c25.tar.gz hercules-b4f1b3b5c5c009ed4f7635c5349ea97c80c08c25.tar.bz2 hercules-b4f1b3b5c5c009ed4f7635c5349ea97c80c08c25.tar.xz hercules-b4f1b3b5c5c009ed4f7635c5349ea97c80c08c25.zip |
Follow-up to 857bdc4f98be6cd1e185a24565d6b6b54752b9b4
- Consolidated case in variables, labels, constants.
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'npc/battleground')
-rw-r--r-- | npc/battleground/bg_common.txt | 26 | ||||
-rw-r--r-- | npc/battleground/flavius/flavius_enter.txt | 8 | ||||
-rw-r--r-- | npc/battleground/tierra/tierra_enter.txt | 8 |
3 files changed, 21 insertions, 21 deletions
diff --git a/npc/battleground/bg_common.txt b/npc/battleground/bg_common.txt index 2c286e8f5..81d41513e 100644 --- a/npc/battleground/bg_common.txt +++ b/npc/battleground/bg_common.txt @@ -477,10 +477,10 @@ bat_room,160,150,3 script Erundek 4_M_MANAGER,{ next; switch(select("Garments / Shoes:Armor")) { case 1: - setarray .@Items[0],2538,50,2539,50,2540,50,2435,50,2436,50,2437,50; + setarray .@items[0],2538,50,2539,50,2540,50,2435,50,2436,50,2437,50; break; case 2: - setarray .@Items[0],2376,80,2377,80,2378,80,2379,80,2380,80,2381,80,2382,80; + setarray .@items[0],2376,80,2377,80,2378,80,2379,80,2380,80,2381,80,2382,80; break; } break; @@ -489,7 +489,7 @@ bat_room,160,150,3 script Erundek 4_M_MANAGER,{ mes "You chose ^3131FFAccessory^000000."; mes "You can exchange the Medal of Honors with your Badges according to the job classes, as follows:"; next; - setarray .@Items[0],2733,500,2720,500,2721,500,2722,500,2723,500,2724,500,2725,500; + setarray .@items[0],2733,500,2720,500,2721,500,2722,500,2723,500,2724,500,2725,500; set .@menu1$,"Gunslinger:Swordman/Taekwon Master:Thief:Acolyte:Magician:Archer:Merchant"; break; case 4: @@ -497,7 +497,7 @@ bat_room,160,150,3 script Erundek 4_M_MANAGER,{ mes "You chose ^3131FFConsumable^000000."; mes "The following consumable items are available for exchange with the battlefield badges:"; next; - setarray .@Items[0],12269,10,12270,10,12271,5,12272,10,12273,10; + setarray .@items[0],12269,10,12270,10,12271,5,12272,10,12273,10; break; } break; @@ -510,12 +510,12 @@ bat_room,160,150,3 script Erundek 4_M_MANAGER,{ } set .@menu$,""; if (.@menu1$ != "") set .@menu$, .@menu1$; - else for(set .@i,0; .@i<getarraysize(.@Items); set .@i,.@i+2) - set .@menu$, .@menu$+getitemname(.@Items[.@i])+":"; + else for(set .@i,0; .@i<getarraysize(.@items); set .@i,.@i+2) + set .@menu$, .@menu$+getitemname(.@items[.@i])+":"; set .@i, (select(.@menu$)-1)*2; mes "[Erundek]"; - mes "You chose ^3131FF"+getitemname(.@Items[.@i])+"^000000."; - switch(.@Items[.@i]) { + mes "You chose ^3131FF"+getitemname(.@items[.@i])+"^000000."; + switch(.@items[.@i]) { case 2720: mes "This item is for Swordman and Taekwon Master Class only."; break; case 2721: mes "This item is for Thief Class only."; break; case 2722: mes "This item is for Acolyte Class only."; break; @@ -525,7 +525,7 @@ bat_room,160,150,3 script Erundek 4_M_MANAGER,{ case 2733: mes "This item is for Gunslinger only."; break; default: break; } - mes "You can exchange for this item with ^FF0000"+.@Items[.@i+1]+" "+getitemname(7828)+" or "+.@Items[.@i+1]+" "+getitemname(7829)+"^000000."; + mes "You can exchange for this item with ^FF0000"+.@items[.@i+1]+" "+getitemname(7828)+" or "+.@items[.@i+1]+" "+getitemname(7829)+"^000000."; mes "Would you like to exchange?"; next; switch(select("Do not exchange:Exchange")) { @@ -536,7 +536,7 @@ bat_room,160,150,3 script Erundek 4_M_MANAGER,{ case 2: mes "[Erundek]"; mes "Which Badge do you want to exchange?"; - mes "You need ^3131FF"+.@Items[.@i+1]+" Badges^000000 to exchange."; + mes "You need ^3131FF"+.@items[.@i+1]+" Badges^000000 to exchange."; next; if (.@item[0] < 12269 || .@item[0] > 12273 ) { mes "[Erundek]"; @@ -550,10 +550,10 @@ bat_room,160,150,3 script Erundek 4_M_MANAGER,{ break; } set .@cost, ((.@j==1)?7828:7829); - if (countitem(.@cost) >= .@Items[.@i+1]) { + if (countitem(.@cost) >= .@items[.@i+1]) { mes "Thank you for exchanging."; - delitem .@cost, .@Items[.@i+1]; - getitem .@Items[.@i],1; + delitem .@cost, .@items[.@i+1]; + getitem .@items[.@i],1; } else mes "You do not have enough "+getitemname(.@cost)+"s."; break; diff --git a/npc/battleground/flavius/flavius_enter.txt b/npc/battleground/flavius/flavius_enter.txt index 026b4402f..d63130007 100644 --- a/npc/battleground/flavius/flavius_enter.txt +++ b/npc/battleground/flavius/flavius_enter.txt @@ -27,7 +27,7 @@ bat_room,133,178,5 script Flavius Officer#01a 4_M_KY_KNT,{ next; switch(select("I want to join your army!:End Conversation")) { case 1: - if ((Class == Job_Novice) || (BaseClass == Job_Supernovice)) { + if ((Class == Job_Novice) || (BaseClass == Job_SuperNovice)) { mes "[Guillaume Army Officer]"; mes "I'm very pleased that you want to join us and fight the Croix Army, but I'm sorry: I can't send a rookie like you to die on the cruel battlefield."; } @@ -94,7 +94,7 @@ bat_room,133,121,1 script Flavius Officer#01b 4_M_CRU_KNT,{ next; switch(select("I want to join your army!:End Conversation")) { case 1: - if ((Class == Job_Novice) || (BaseClass == Job_Supernovice)) { + if ((Class == Job_Novice) || (BaseClass == Job_SuperNovice)) { mes "[Croix Army Officer]"; mes "I'm very pleased that you want to join us and fight the Guillaume Army, but I'm sorry: I can't send a rookie like you to die on the cruel battlefield."; } @@ -251,7 +251,7 @@ bat_room,148,178,5 script Flavius Officer#02a 4_M_KY_KNT,{ next; switch(select("I want to join your army!:End Conversation")) { case 1: - if ((Class == Job_Novice) || (BaseClass == Job_Supernovice)) { + if ((Class == Job_Novice) || (BaseClass == Job_SuperNovice)) { mes "[Guillaume Army Officer]"; mes "I'm very pleased that you want to join us and fight the Croix Army, but I'm sorry: I can't send a rookie like you to die on the cruel battlefield."; } @@ -318,7 +318,7 @@ bat_room,148,121,1 script Flavius Officer#02b 4_M_CRU_KNT,{ next; switch(select("I want to join your army!:End Conversation")) { case 1: - if ((Class == Job_Novice) || (BaseClass == Job_Supernovice)) { + if ((Class == Job_Novice) || (BaseClass == Job_SuperNovice)) { mes "[Croix Army Officer]"; mes "I'm very pleased that you want to join us and fight the Guillaume Army, but I'm sorry: I can't send a rookie like you to die on the cruel battlefield."; } diff --git a/npc/battleground/tierra/tierra_enter.txt b/npc/battleground/tierra/tierra_enter.txt index 9089017a0..e68058247 100644 --- a/npc/battleground/tierra/tierra_enter.txt +++ b/npc/battleground/tierra/tierra_enter.txt @@ -28,7 +28,7 @@ bat_room,124,178,5 script Tierra Gorge Officer#01a 4_M_KY_KNT,{ next; switch(select("I want to join your army!:End Conversation")) { case 1: - if ((Class == Job_Novice) || (BaseClass == Job_Supernovice)) { + if ((Class == Job_Novice) || (BaseClass == Job_SuperNovice)) { mes "[Guillaume Army Officer]"; mes "I'm very pleased that you want to join us and fight the Croix Army, but I'm sorry: I can't send a rookie like you to die on the cruel battlefield."; } @@ -95,7 +95,7 @@ bat_room,140,178,5 script Tierra Gorge Officer#02a 4_M_KY_KNT,{ next; switch(select("I want to join your army!:End Conversation")) { case 1: - if ((Class == Job_Novice) || (BaseClass == Job_Supernovice)) { + if ((Class == Job_Novice) || (BaseClass == Job_SuperNovice)) { mes "[Guillaume Army Officer]"; mes "I'm very pleased that you want to join us and fight the Croix Army, but I'm sorry: I can't send a rookie like you to die on the cruel battlefield."; } @@ -260,7 +260,7 @@ bat_room,125,121,1 script Tierra Gorge Officer#01b 4_M_CRU_KNT,{ next; switch(select("I want to join your army!:End Conversation")) { case 1: - if ((Class == Job_Novice) || (BaseClass == Job_Supernovice)) { + if ((Class == Job_Novice) || (BaseClass == Job_SuperNovice)) { mes "[Croix Army Officer]"; mes "I'm very pleased that you want to join us and fight the Guillaume Army, but I'm sorry: I can't send a rookie like you to die on the cruel battlefield."; } @@ -327,7 +327,7 @@ bat_room,140,121,1 script Tierra Gorge Officer#02b 4_M_CRU_KNT,{ next; switch(select("I want to join your army!:End Conversation")) { case 1: - if ((Class == Job_Novice) || (BaseClass == Job_Supernovice)) { + if ((Class == Job_Novice) || (BaseClass == Job_SuperNovice)) { mes "[Croix Army Officer]"; mes "I'm very pleased that you want to join us and fight the Guillaume Army, but I'm sorry: I can't send a rookie like you to die on the cruel battlefield."; } |