summaryrefslogtreecommitdiff
path: root/npc/custom
diff options
context:
space:
mode:
Diffstat (limited to 'npc/custom')
-rw-r--r--npc/custom/battleground/bg_common.txt4
-rw-r--r--npc/custom/bgqueue/flavius.txt60
-rw-r--r--npc/custom/card_remover.txt4
-rw-r--r--npc/custom/etc/airplane.txt8
-rw-r--r--npc/custom/etc/bank_kafra.txt6
-rw-r--r--npc/custom/etc/lottery.txt8
-rw-r--r--npc/custom/etc/marriage.txt22
-rw-r--r--npc/custom/etc/monster_arena.txt6
-rw-r--r--npc/custom/etc/penal_servitude.txt2
-rw-r--r--npc/custom/etc/shifty_assassin.txt4
-rw-r--r--npc/custom/etc/stock_market.txt68
-rw-r--r--npc/custom/events/valentinesdayexp.txt6
-rw-r--r--npc/custom/item_signer.txt20
-rw-r--r--npc/custom/itembind.txt10
-rw-r--r--npc/custom/quests/berzebub.txt12
-rw-r--r--npc/custom/quests/kahohorn.txt10
-rw-r--r--npc/custom/quests/kings_items.txt18
-rw-r--r--npc/custom/quests/thq/THQS_GuildNPC.txt2
-rw-r--r--npc/custom/quests/thq/THQS_TTShop.txt6
-rw-r--r--npc/custom/quests/valhallen.txt26
20 files changed, 151 insertions, 151 deletions
diff --git a/npc/custom/battleground/bg_common.txt b/npc/custom/battleground/bg_common.txt
index 8886921f2..f24e1e5a8 100644
--- a/npc/custom/battleground/bg_common.txt
+++ b/npc/custom/battleground/bg_common.txt
@@ -1293,8 +1293,8 @@ bat_room,160,150,3 script Erundek 4_M_MANAGER,{
next;
set .@Menu$, "";
- set .@Count, getarraysize(.@Item_DB);
- for( set .@i, 0; .@i < .@Count; set .@i, .@i + 1 )
+ set .@count, getarraysize(.@Item_DB);
+ for( set .@i, 0; .@i < .@count; set .@i, .@i + 1 )
set .@Menu$, .@Menu$ + getitemname(.@Item_DB[.@i]) + ":";
set .@Item_ID, .@Item_DB[select(.@Menu$) - 1];
diff --git a/npc/custom/bgqueue/flavius.txt b/npc/custom/bgqueue/flavius.txt
index 778feb55d..bcfe32322 100644
--- a/npc/custom/bgqueue/flavius.txt
+++ b/npc/custom/bgqueue/flavius.txt
@@ -126,16 +126,16 @@ OnPlayerListReady:
bg_updatescore "bat_b01",$@Guill_ScoreBG1,$@Croix_ScoreBG1;
- donpcevent "OBJ#bat_b01_a::Onkill";
+ donpcevent "OBJ#bat_b01_a::OnKill";
donpcevent "OBJ#bat_b01_a::OnEnable";
- donpcevent "OBJ#bat_b01_b::Onkill";
+ donpcevent "OBJ#bat_b01_b::OnKill";
donpcevent "OBJ#bat_b01_b::OnEnable";
- donpcevent "guardian#bat_b01_a::Onkill";
- donpcevent "guardian#bat_b01_b::Onkill";
+ donpcevent "guardian#bat_b01_a::OnKill";
+ donpcevent "guardian#bat_b01_b::OnKill";
donpcevent "guardian#bat_b01_a::OnEnable";
donpcevent "guardian#bat_b01_b::OnEnable";
- donpcevent "cell#bat_b01_a::Onred";
- donpcevent "cell#bat_b01_b::Onred";
+ donpcevent "cell#bat_b01_a::OnRed";
+ donpcevent "cell#bat_b01_b::OnRed";
donpcevent "time#bat_b01::OnEnable";
disablenpc "Guillaume Vintenar#b01_a";
disablenpc "Croix Vintenar#b01_b";
@@ -152,16 +152,16 @@ OnPlayerListReady:
end;
OnReset:
- donpcevent "OBJ#bat_b01_a::Onkill";
+ donpcevent "OBJ#bat_b01_a::OnKill";
donpcevent "OBJ#bat_b01_a::OnEnable";
- donpcevent "OBJ#bat_b01_b::Onkill";
+ donpcevent "OBJ#bat_b01_b::OnKill";
donpcevent "OBJ#bat_b01_b::OnEnable";
- donpcevent "guardian#bat_b01_a::Onkill";
- donpcevent "guardian#bat_b01_b::Onkill";
+ donpcevent "guardian#bat_b01_a::OnKill";
+ donpcevent "guardian#bat_b01_b::OnKill";
donpcevent "guardian#bat_b01_a::OnEnable";
donpcevent "guardian#bat_b01_b::OnEnable";
- donpcevent "cell#bat_b01_a::Onred";
- donpcevent "cell#bat_b01_b::Onred";
+ donpcevent "cell#bat_b01_a::OnRed";
+ donpcevent "cell#bat_b01_b::OnRed";
donpcevent "time#bat_b01::OnEnable";
disablenpc "Guillaume Vintenar#b01_a";
disablenpc "Croix Vintenar#b01_b";
@@ -204,7 +204,7 @@ OnEnable:
bg_monster $@FlaviusBG1_id1,"bat_b01",61,150,"Pink Crystal",1915,"OBJ#bat_b01_a::OnMyMobDead";
end;
-Onkill:
+OnKill:
killmonster "bat_b01","OBJ#bat_b01_a::OnMyMobDead";
end;
@@ -216,7 +216,7 @@ OnMyMobDead:
set $@Croix_ScoreBG1,$@Croix_ScoreBG1+1;
enablenpc "Guillaume Vintenar#b01_a";
enablenpc "Croix Vintenar#b01_b";
- donpcevent "time#bat_b01::Onstop";
+ donpcevent "time#bat_b01::OnStop";
donpcevent "start#bat_b01::OnMatchOver";
}
else {
@@ -235,7 +235,7 @@ OnEnable:
bg_monster $@FlaviusBG1_id2,"bat_b01",328,150,"Blue Crystal",1914,"OBJ#bat_b01_b::OnMyMobDead";
end;
-Onkill:
+OnKill:
killmonster "bat_b01","OBJ#bat_b01_b::OnMyMobDead";
end;
@@ -247,7 +247,7 @@ OnMyMobDead:
set $@Guill_ScoreBG1,$@Guill_ScoreBG1+1;
enablenpc "Guillaume Vintenar#b01_a";
enablenpc "Croix Vintenar#b01_b";
- donpcevent "time#bat_b01::Onstop";
+ donpcevent "time#bat_b01::OnStop";
donpcevent "start#bat_b01::OnMatchOver";
}
else {
@@ -268,13 +268,13 @@ OnEnable:
bg_monster $@FlaviusBG1_id1,"bat_b01",108,141,"Guillaume Camp Guardian",1949,"guardian#bat_b01_a::OnMyMobDead";
end;
-Onkill:
+OnKill:
killmonster "bat_b01","guardian#bat_b01_a::OnMyMobDead";
end;
OnMyMobDead:
if (mobcount("bat_b01","guardian#bat_b01_a::OnMyMobDead") < 1) {
- donpcevent "cell#bat_b01_a::Ongreen";
+ donpcevent "cell#bat_b01_a::OnGreen";
mapannounce "bat_b01", "The Guardian protecting Guillaume's Crystal has been slain.",bc_map,"0xFFCE00";
}
end;
@@ -286,37 +286,37 @@ OnEnable:
bg_monster $@FlaviusBG1_id2,"bat_b01",307,138,"Croix Camp Guardian",1949,"guardian#bat_b01_b::OnMyMobDead";
end;
-Onkill:
+OnKill:
killmonster "bat_b01","guardian#bat_b01_b::OnMyMobDead";
end;
OnMyMobDead:
if (mobcount("bat_b01","guardian#bat_b01_b::OnMyMobDead") < 1) {
- donpcevent "cell#bat_b01_b::Ongreen";
+ donpcevent "cell#bat_b01_b::OnGreen";
mapannounce "bat_b01", "The Guardian protecting Croix's Crystal has been slain.",bc_map,"0xFFCE00";
}
end;
}
bat_b01,1,4,3 script cell#bat_b01_a CLEAR_NPC,{
-Onred:
+OnRed:
setcell "bat_b01",62,149,60,151,cell_basilica,1;
setcell "bat_b01",62,149,60,151,cell_walkable,0;
end;
-Ongreen:
+OnGreen:
setcell "bat_b01",62,149,60,151,cell_basilica,0;
setcell "bat_b01",62,149,60,151,cell_walkable,1;
end;
}
bat_b01,1,5,3 script cell#bat_b01_b CLEAR_NPC,{
-Onred:
+OnRed:
setcell "bat_b01",327,151,329,149,cell_basilica,1;
setcell "bat_b01",327,151,329,149,cell_walkable,0;
end;
-Ongreen:
+OnGreen:
setcell "bat_b01",327,151,329,149,cell_basilica,0;
setcell "bat_b01",327,151,329,149,cell_walkable,1;
end;
@@ -328,7 +328,7 @@ OnEnable:
donpcevent "Battle Therapist#b01_b::OnEnable";
end;
-Onstop:
+OnStop:
donpcevent "Battle Therapist#b01_a::OnStop";
donpcevent "Battle Therapist#b01_b::OnStop";
end;
@@ -361,7 +361,7 @@ OnEnable:
enablenpc "Battle Therapist#b01_a";
end;
-Onstop:
+OnStop:
disablenpc "bat_b01_rp1_a_warp";
disablenpc "Battle Therapist#b01_a";
stopnpctimer;
@@ -406,7 +406,7 @@ OnEnable:
enablenpc "Battle Therapist#b01_b";
end;
-Onstop:
+OnStop:
disablenpc "bat_b01_rp1_b_warp";
disablenpc "Battle Therapist#b01_b";
stopnpctimer;
@@ -552,7 +552,7 @@ OnEnable:
initnpctimer;
end;
-Onstop:
+OnStop:
stopnpctimer;
end;
@@ -585,7 +585,7 @@ OnTimer1825000:
end;
OnTimer1830000:
- donpcevent "time#bat_b01::Onstop";
+ donpcevent "time#bat_b01::OnStop";
bg_warp $@FlaviusBG1_id1,"bat_b01",10,290;
bg_warp $@FlaviusBG1_id2,"bat_b01",390,10;
enablenpc "Vintenar#bat_b01_aover";
@@ -594,7 +594,7 @@ OnTimer1830000:
OnTimer1900000:
mapwarp "bat_b01","bat_room",154,150;
- donpcevent "countdown#bat_b01::Onstop";
+ donpcevent "countdown#bat_b01::OnStop";
donpcevent "start#bat_b01::OnMatchOver";
end;
}
diff --git a/npc/custom/card_remover.txt b/npc/custom/card_remover.txt
index 6c8a1b8b5..887e03404 100644
--- a/npc/custom/card_remover.txt
+++ b/npc/custom/card_remover.txt
@@ -67,7 +67,7 @@ prt_in,28,73,4 script Wise Old Woman#eAcustom 1_F_ORIENT_04,{
mes "Very well. Return at once if you seek my services.";
close;
}
- if((zeny < (.zenycost+(.@cardcount * .percardcost))) || (countitem(1000) < 1) || (countitem(715) < 1)) {
+ if((Zeny < (.zenycost+(.@cardcount * .percardcost))) || (countitem(1000) < 1) || (countitem(715) < 1)) {
mes "[Wise Old Woman]";
mes "You do not have all the items I require to work my magic, child. Come again when you do.";
close;
@@ -88,7 +88,7 @@ prt_in,28,73,4 script Wise Old Woman#eAcustom 1_F_ORIENT_04,{
}
mes "[Wise Old Woman]";
mes "Very well. I shall begin.";
- set zeny,zeny - (.zenycost+(.@cardcount * .percardcost));
+ set Zeny,Zeny - (.zenycost+(.@cardcount * .percardcost));
delitem 1000,1;
delitem 715,1;
diff --git a/npc/custom/etc/airplane.txt b/npc/custom/etc/airplane.txt
index ebf626b98..a5796fccd 100644
--- a/npc/custom/etc/airplane.txt
+++ b/npc/custom/etc/airplane.txt
@@ -252,8 +252,8 @@ L_Nope:
Notime:
mes "^FF0000[Porter]^000000";
- if(sex==0) mes "Sorry, ma'am, but the plane currently isn't ported. However, you can view the airplane's hourly itinerary.";
- if(sex==1) mes "Sorry, sir, but the plane currently isn't ported. However, you can view the airplane's hourly itinerary.";
+ if(Sex==0) mes "Sorry, ma'am, but the plane currently isn't ported. However, you can view the airplane's hourly itinerary.";
+ if(Sex==1) mes "Sorry, sir, but the plane currently isn't ported. However, you can view the airplane's hourly itinerary.";
next;
menu "Yes, please.",Itin,"No thanks.",L_Nope;
close;
@@ -363,8 +363,8 @@ Lnope:
Notime:
mes "^FF0000[Airplane Attendant]^000000";
- if(sex==0) mes "Sorry, ma'am, but the plane currently isn't docked. Please wait.";
- if(sex==1) mes "Sorry, sir, but the plane currently isn't docked. Please wait.";
+ if(Sex==0) mes "Sorry, ma'am, but the plane currently isn't docked. Please wait.";
+ if(Sex==1) mes "Sorry, sir, but the plane currently isn't docked. Please wait.";
close;
Nowhere:
diff --git a/npc/custom/etc/bank_kafra.txt b/npc/custom/etc/bank_kafra.txt
index e2020155f..48086abbd 100644
--- a/npc/custom/etc/bank_kafra.txt
+++ b/npc/custom/etc/bank_kafra.txt
@@ -47,8 +47,8 @@ L_NoIncomeToday:
if(input(@kafrabank) == 1) goto L_TOO_BIG_AMOUNT;
if(@kafrabank<1000) goto L_LESS_1000;
- if(@kafrabank>zeny) goto L_NOT_ENOUGH;
- set zeny,zeny-@kafrabank;
+ if(@kafrabank>Zeny) goto L_NOT_ENOUGH;
+ set Zeny,Zeny-@kafrabank;
set #kafrabank,#kafrabank+@kafrabank;
mes"[Maniss]";
mes "You've made a deposit of ^135445" + @kafrabank + "z^000000.";
@@ -67,7 +67,7 @@ M_WITHDRAW:
if(@kafrabank<1) goto B_EXIT2;
if(@kafrabank>#kafrabank) goto L_NOT_ENOUGH;
set #kafrabank,#kafrabank-@kafrabank;
- set zeny,zeny+@kafrabank;
+ set Zeny,Zeny+@kafrabank;
mes"[Maniss]";
mes "Here is your ^135445" + @kafrabank + "z^000000, put your sign here...";
//we log these zeny operations into the log db
diff --git a/npc/custom/etc/lottery.txt b/npc/custom/etc/lottery.txt
index ef169c190..26c4afa9f 100644
--- a/npc/custom/etc/lottery.txt
+++ b/npc/custom/etc/lottery.txt
@@ -106,8 +106,8 @@ L_Buy:
mes "The Jackpot is ^FF0000" + $L_Prize_Money + "z^000000.";
next;
menu "Buy Ticket",-,"Cancel",L_Cancel;
- if (zeny < $L_TicketPrice) goto L_NoZeny;
- set zeny,zeny-$L_TicketPrice;
+ if (Zeny < $L_TicketPrice) goto L_NoZeny;
+ set Zeny,Zeny-$L_TicketPrice;
mes "[Lottery]";
mes "Would you like your numbers hand picked or computer generated?";
next;
@@ -292,7 +292,7 @@ LWinBig:
mes "You have matched all six numbers!";
mes "Jackpot!";
mes "You've won ^0000FF" + $L_Prize_Money + "z^000000.";
- set zeny,zeny+$L_Prize_Money;
+ set Zeny,Zeny+$L_Prize_Money;
announce "Lottery: " + strcharinfo(0) + " has won the JACKPOT of " + $L_Prize_Money + "z!",8;
set #LID,0;
close;
@@ -302,7 +302,7 @@ LWinSmall:
mes "[Lottery]";
mes "You have matched at least 4 numbers!";
mes "You've won ^0000FF" + $L_Prize_Money_Small + "z^000000.";
- set zeny,zeny+$L_Prize_Money_Small;
+ set Zeny,Zeny+$L_Prize_Money_Small;
announce "Lottery: " + strcharinfo(0) + " has won a prize of " + $L_Prize_Money_Small + "z!",8;
set #LID,0;
close;
diff --git a/npc/custom/etc/marriage.txt b/npc/custom/etc/marriage.txt
index 0549502cd..f0ec34f0a 100644
--- a/npc/custom/etc/marriage.txt
+++ b/npc/custom/etc/marriage.txt
@@ -392,19 +392,19 @@ OnTimer55000:
//Subfunction: Checks that the groom/bride is still wearing their stuff.
function SF_equip_check {
- if (sex && getequipid(2) != 7170) {
+ if (Sex && getequipid(2) != 7170) {
mes "["+@name$+"]";
mes "Child, what did you do with your "+getitemname(7170)+"?";
emotion e_dots;
return 0;
}
- if (sex == 0 && getequipid(2) != 2338) {
+ if (Sex == 0 && getequipid(2) != 2338) {
mes "["+@name$+"]";
mes "Child, you are supposed to wear a "+getitemname(2338)+" at all times during the ceremony...";
emotion e_dots;
return 0;
}
- if (sex == 0 && $@wed_veil && getequipid(1) != 2206) {
+ if (Sex == 0 && $@wed_veil && getequipid(1) != 2206) {
mes "["+@name$+"]";
mes "Child, you can't take off your "+getitemname(2206)+" yet....";
emotion e_dots;
@@ -487,7 +487,7 @@ function SF_Register {
mes "Very well, whom would you like to register as?";
next;
set @submenu, select("Groom","Bride","Cancel");
- } else if (sex) { //Groom
+ } else if (Sex) { //Groom
mes "["+@name$+"]";
mes "Very well, will you register as the Groom?";
next;
@@ -547,7 +547,7 @@ function SF_WedProgress {
mes "Tell your groom to register, what is taking so long? Time is running out.";
close;
}
- if (($wed_groom_progress == 0) && (sex == 1 || $@wed_allow == 1)) {
+ if (($wed_groom_progress == 0) && (Sex == 1 || $@wed_allow == 1)) {
mes "["+@name$+"]";
mes $wed_bride$+" is waiting for the groom to register. Are you the one who came to register as groom?";
next;
@@ -569,7 +569,7 @@ function SF_WedProgress {
}
}
- if (($wed_bride_progress == 0) && (sex == 0 || $@wed_allow == 1)) {
+ if (($wed_bride_progress == 0) && (Sex == 0 || $@wed_allow == 1)) {
mes "["+@name$+"]";
mes $wed_groom$+" is waiting for the bride to register. Are you the one who came to register as the bride?";
next;
@@ -685,7 +685,7 @@ function SF_TryRegister {
emotion e_gasp;
close;
}
- if (sex)
+ if (Sex)
set @item, 7170;
else
set @item, 2338;
@@ -695,7 +695,7 @@ function SF_TryRegister {
mes "You should be wearing a "+getitemname(@item)+" if you want to get married.";
close;
}
- if (sex == 0 && $@wed_veil && getequipid(1) != 2206) {
+ if (Sex == 0 && $@wed_veil && getequipid(1) != 2206) {
mes "["+@name$+"]";
mes "Where is your "+getitemname(2206)+"? It's a necessary complement to your dress.";
close;
@@ -717,17 +717,17 @@ function SF_TryRegister {
close;
}
set Zeny,Zeny-@cost;
- sc_start SC_Wedding,3600000,1; //Start Wedding Effect (SC_WEDDING)
+ sc_start SC_WEDDING,3600000,1; //Start Wedding Effect (SC_WEDDING)
if (@bride) {
set $wed_bride_progress,1;
set $wed_bride$,strcharinfo(0);
- set $wed_bride_sex, sex;
+ set $wed_bride_sex, Sex;
if ($@wedding_effect == 1) //Store account id for effect.
set $wedding_effect_id, getcharid(3);
} else {
set $wed_groom_progress,1;
set $wed_groom$,strcharinfo(0);
- set $wed_groom_sex, sex;
+ set $wed_groom_sex, Sex;
if ($@wedding_effect == 2) //Store account id for effect.
set $wedding_effect_id, getcharid(3);
}
diff --git a/npc/custom/etc/monster_arena.txt b/npc/custom/etc/monster_arena.txt
index 51304c1a0..90fd500f6 100644
--- a/npc/custom/etc/monster_arena.txt
+++ b/npc/custom/etc/monster_arena.txt
@@ -288,8 +288,8 @@ gon_test,52,103,6 script Monster Trainer 4_M_BARBER,{
next;
menu "Yes",-,"No",L_Exit;
- if (zeny < 1000) goto L_NoZeny;
- set zeny,zeny-1000;
+ if (Zeny < 1000) goto L_NoZeny;
+ set Zeny,Zeny-1000;
set #monster,10;
mes "[Monster Trainer]";
mes "Congratulations!";
@@ -327,7 +327,7 @@ L_Sell:
if (@sellexp > #monpoints) goto L_NoExp;
set #monpoints,#monpoints-@sellexp;
set @sellearn,100*@sellexp; // Price of exp
- set zeny,zeny+@sellearn;
+ set Zeny,Zeny+@sellearn;
mes "[Monster Trainer]";
mes "You earned ^0000FF" + @sellearn + "^000000z.";
close;
diff --git a/npc/custom/etc/penal_servitude.txt b/npc/custom/etc/penal_servitude.txt
index 61dd80676..d86c9dc94 100644
--- a/npc/custom/etc/penal_servitude.txt
+++ b/npc/custom/etc/penal_servitude.txt
@@ -17,7 +17,7 @@
sec_pri,36,58,1 script Chief Warder 8W_SOLDIER,{
mes "[Saddeus]";
emotion 1;
- if(sex) {
+ if(Sex) {
mes "Mr. Prisoner #"+BaseLevel+JobLevel+",";
} else {
mes "Ms. Prisoner #"+BaseLevel+JobLevel+",";
diff --git a/npc/custom/etc/shifty_assassin.txt b/npc/custom/etc/shifty_assassin.txt
index 4a4f7338d..29b8384fe 100644
--- a/npc/custom/etc/shifty_assassin.txt
+++ b/npc/custom/etc/shifty_assassin.txt
@@ -48,14 +48,14 @@ M_Buy:
if ($ninja_avail < 1) goto NoNinjas;
if ($ninja_avail < @buy) goto NotEnoughNinjas;
set @price,@buy*$ninja_price;
- if (zeny < @price ) goto NoZeny;
+ if (Zeny < @price ) goto NoZeny;
mes "[Shifty Assassin]";
mes "That will cost you ^0000FF" + @price + " zeny^000000.";
next;
menu "Continue",-,"Cancel",M_Exit;
- set zeny,zeny-@price;
+ set Zeny,Zeny-@price;
set #ninjas,#ninjas+@buy;
set $ninja_avail,$ninja_avail-@buy;
diff --git a/npc/custom/etc/stock_market.txt b/npc/custom/etc/stock_market.txt
index b805d7895..7cd284ef9 100644
--- a/npc/custom/etc/stock_market.txt
+++ b/npc/custom/etc/stock_market.txt
@@ -277,15 +277,15 @@ S_Sell:
set @sellamount,0;
input @sellamount;
if (@sellamount < 1) goto S_SellInv;
- if (zeny < $S_Trans) goto S_NoZeny;
- set zeny,zeny-$S_Trans;
+ if (Zeny < $S_Trans) goto S_NoZeny;
+ set Zeny,Zeny-$S_Trans;
SELLS1:
if (@sellname$ != $S1N$) goto SELLS2;
if (@sellamount > #S1) goto S_SellTooHigh;
set @price,@sellamount*$S1;
set #S1,#S1-@sellamount;
- set zeny,zeny+@price;
+ set Zeny,Zeny+@price;
next;
mes "Sold " + @sellamount + " " + $S1N$ + " shares.";
mes "Earned ^0000FF"+@price+"z^000000.";
@@ -297,7 +297,7 @@ SELLS2:
if (@sellamount > #S2) goto S_SellTooHigh;
set @price,@sellamount*$S2;
set #S2,#S2-@sellamount;
- set zeny,zeny+@price;
+ set Zeny,Zeny+@price;
next;
mes "Sold " + @sellamount + " " + $S2N$ + " shares.";
mes "Earned ^0000FF"+@price+"z^000000.";
@@ -309,7 +309,7 @@ SELLS3:
if (@sellamount > #S3) goto S_SellTooHigh;
set @price,@sellamount*$S3;
set #S3,#S3-@sellamount;
- set zeny,zeny+@price;
+ set Zeny,Zeny+@price;
next;
mes "Sold " + @sellamount + " " + $S3N$ + " shares.";
mes "Earned ^0000FF"+@price+"z^000000.";
@@ -321,7 +321,7 @@ SELLS4:
if (@sellamount > #S4) goto S_SellTooHigh;
set @price,@sellamount*$S4;
set #S4,#S4-@sellamount;
- set zeny,zeny+@price;
+ set Zeny,Zeny+@price;
next;
mes "Sold " + @sellamount + " " + $S4N$ + " shares.";
mes "Earned ^0000FF"+@price+"z^000000.";
@@ -333,7 +333,7 @@ SELLS5:
if (@sellamount > #S5) goto S_SellTooHigh;
set @price,@sellamount*$S5;
set #S5,#S5-@sellamount;
- set zeny,zeny+@price;
+ set Zeny,Zeny+@price;
next;
mes "Sold " + @sellamount + " " + $S5N$ + " shares.";
mes "Earned ^0000FF"+@price+"z^000000.";
@@ -345,7 +345,7 @@ SELLS6:
if (@sellamount > #S6) goto S_SellTooHigh;
set @price,@sellamount*$S6;
set #S6,#S6-@sellamount;
- set zeny,zeny+@price;
+ set Zeny,Zeny+@price;
next;
mes "Sold " + @sellamount + " " + $S6N$ + " shares.";
mes "Earned ^0000FF"+@price+"z^000000.";
@@ -357,7 +357,7 @@ SELLS7:
if (@sellamount > #S7) goto S_SellTooHigh;
set @price,@sellamount*$S7;
set #S7,#S7-@sellamount;
- set zeny,zeny+@price;
+ set Zeny,Zeny+@price;
next;
mes "Sold " + @sellamount + " " + $S7N$ + " shares.";
mes "Earned ^0000FF"+@price+"z^000000.";
@@ -369,7 +369,7 @@ SELLS8:
if (@sellamount > #S8) goto S_SellTooHigh;
set @price,@sellamount*$S8;
set #S8,#S8-@sellamount;
- set zeny,zeny+@price;
+ set Zeny,Zeny+@price;
next;
mes "Sold " + @sellamount + " " + $S8N$ + " shares.";
mes "Earned ^0000FF"+@price+"z^000000.";
@@ -381,7 +381,7 @@ SELLS9:
if (@sellamount > #S9) goto S_SellTooHigh;
set @price,@sellamount*$S9;
set #S9,#S9-@sellamount;
- set zeny,zeny+@price;
+ set Zeny,Zeny+@price;
next;
mes "Sold " + @sellamount + " " + $S9N$ + " shares.";
mes "Earned ^0000FF"+@price+"z^000000.";
@@ -393,7 +393,7 @@ SELLS10:
if (@sellamount > #S10) goto S_SellTooHigh;
set @price,@sellamount*$S10;
set #S10,#S10-@sellamount;
- set zeny,zeny+@price;
+ set Zeny,Zeny+@price;
next;
mes "Sold " + @sellamount + " " + $S10N$ + " shares.";
mes "Earned ^0000FF"+@price+"z^000000.";
@@ -442,18 +442,18 @@ S_Buy:
// Checks valid number //
if (@buyamount < $S_BuyMin) goto S_TooLow;
if (@buyamount > $S_BuyMax) goto S_TooHigh;
- if (zeny < $S_Trans) goto S_NoZeny;
- set zeny,zeny-$S_Trans;
+ if (Zeny < $S_Trans) goto S_NoZeny;
+ set Zeny,Zeny-$S_Trans;
// Purchases the shares //
PURS1:
if (@buyname$ != $S1N$) goto PURS2;
set @price,@buyamount*$S1;
- if (zeny < @price) goto S_NoZeny;
+ if (Zeny < @price) goto S_NoZeny;
set #S1,#S1+@buyamount;
set @price,@buyamount*$S1;
- set zeny,zeny-@price;
+ set Zeny,Zeny-@price;
mes "Bought " + @buyamount + " " + $S1N$ + " shares.";
mes "Lost ^0000FF"+@price+"z^000000.";
next;
@@ -462,9 +462,9 @@ PURS1:
PURS2:
if (@buyname$ != $S2N$) goto PURS3;
set @price,@buyamount*$S2;
- if (zeny < @price) goto S_NoZeny;
+ if (Zeny < @price) goto S_NoZeny;
set #S2,#S2+@buyamount;
- set zeny,zeny-@price;
+ set Zeny,Zeny-@price;
mes "Bought " + @buyamount + " " + $S2N$ + " shares.";
mes "Lost ^0000FF"+@price+"z^000000.";
next;
@@ -473,9 +473,9 @@ PURS2:
PURS3:
if (@buyname$ != $S3N$) goto PURS4;
set @price,@buyamount*$S3;
- if (zeny < @price) goto S_NoZeny;
+ if (Zeny < @price) goto S_NoZeny;
set #S3,#S3+@buyamount;
- set zeny,zeny-@price;
+ set Zeny,Zeny-@price;
mes "Bought " + @buyamount + " " + $S3N$ + " shares.";
mes "Lost ^0000FF"+@price+"z^000000.";
next;
@@ -484,9 +484,9 @@ PURS3:
PURS4:
if (@buyname$ != $S4N$) goto PURS5;
set @price,@buyamount*$S4;
- if (zeny < @price) goto S_NoZeny;
+ if (Zeny < @price) goto S_NoZeny;
set #S4,#S4+@buyamount;
- set zeny,zeny-@price;
+ set Zeny,Zeny-@price;
mes "Bought " + @buyamount + " " + $S4N$ + " shares.";
mes "Lost ^0000FF"+@price+"z^000000.";
next;
@@ -495,9 +495,9 @@ PURS4:
PURS5:
if (@buyname$ != $S5N$) goto PURS6;
set @price,@buyamount*$S5;
- if (zeny < @price) goto S_NoZeny;
+ if (Zeny < @price) goto S_NoZeny;
set #S5,#S5+@buyamount;
- set zeny,zeny-@price;
+ set Zeny,Zeny-@price;
mes "Bought " + @buyamount + " " + $S5N$ + " shares.";
mes "Lost ^0000FF"+@price+"z^000000.";
next;
@@ -506,9 +506,9 @@ PURS5:
PURS6:
if (@buyname$ != $S6N$) goto PURS7;
set @price,@buyamount*$S6;
- if (zeny < @price) goto S_NoZeny;
+ if (Zeny < @price) goto S_NoZeny;
set #S6,#S6+@buyamount;
- set zeny,zeny-@price;
+ set Zeny,Zeny-@price;
mes "Bought " + @buyamount + " " + $S6N$ + " shares.";
mes "Lost ^0000FF"+@price+"z^000000.";
next;
@@ -517,9 +517,9 @@ PURS6:
PURS7:
if (@buyname$ != $S7N$) goto PURS8;
set @price,@buyamount*$S7;
- if (zeny < @price) goto S_NoZeny;
+ if (Zeny < @price) goto S_NoZeny;
set #S7,#S7+@buyamount;
- set zeny,zeny-@price;
+ set Zeny,Zeny-@price;
mes "Bought " + @buyamount + " " + $S7N$ + " shares.";
mes "Lost ^0000FF"+@price+"z^000000.";
next;
@@ -528,9 +528,9 @@ PURS7:
PURS8:
if (@buyname$ != $S8N$) goto PURS9;
set @price,@buyamount*$S8;
- if (zeny < @price) goto S_NoZeny;
+ if (Zeny < @price) goto S_NoZeny;
set #S8,#S8+@buyamount;
- set zeny,zeny-@price;
+ set Zeny,Zeny-@price;
mes "Bought " + @buyamount + " " + $S8N$ + " shares.";
mes "Lost ^0000FF"+@price+"z^000000.";
next;
@@ -539,9 +539,9 @@ PURS8:
PURS9:
if (@buyname$ != $S9N$) goto PURS10;
set @price,@buyamount*$S9;
- if (zeny < @price) goto S_NoZeny;
+ if (Zeny < @price) goto S_NoZeny;
set #S9,#S9+@buyamount;
- set zeny,zeny-@price;
+ set Zeny,Zeny-@price;
mes "Bought " + @buyamount + " " + $S9N$ + " shares.";
mes "Lost ^0000FF"+@price+"z^000000.";
next;
@@ -550,9 +550,9 @@ PURS9:
PURS10:
if (@buyname$ != $S10N$) goto PURS11;
set @price,@buyamount*$S10;
- if (zeny < @price) goto S_NoZeny;
+ if (Zeny < @price) goto S_NoZeny;
set #S10,#S10+@buyamount;
- set zeny,zeny-@price;
+ set Zeny,Zeny-@price;
mes "Bought " + @buyamount + " " + $S10N$ + " shares.";
mes "Lost ^0000FF"+@price+"z^000000.";
next;
diff --git a/npc/custom/events/valentinesdayexp.txt b/npc/custom/events/valentinesdayexp.txt
index c60c6f3a6..c0c7ddb66 100644
--- a/npc/custom/events/valentinesdayexp.txt
+++ b/npc/custom/events/valentinesdayexp.txt
@@ -18,7 +18,7 @@ prontera,156,172,4 script Tine 1_M_MERCHANT,{
// Debug info for item effects and tricky conditions 8)
// mes "@dsv: "+@dsv;
// mes "ispartneron()=="+ispartneron();
-// mes "sex == "+sex;
+// mes "sex == "+Sex;
// if(@dsv == gettime(3)+1) mes "@dsv == gettime(3)+1";
mes "[Tine]";
@@ -60,9 +60,9 @@ M_INFO:
OnInit:
//559,Hand-made_Chocolate
- setitemscript 559,"{ itemheal 50,50; if(sex==0 || @dsv == gettime(3)+1 || ispartneron()==0)end; set @dsv,gettime(3)+1; misceffect 113; }";
+ setitemscript 559,"{ itemheal 50,50; if(Sex==0 || @dsv == gettime(3)+1 || ispartneron()==0)end; set @dsv,gettime(3)+1; misceffect 113; }";
//560,Hand-made_White_Chocolate
- setitemscript 560,"{ itemheal 50,50; if(sex || @dsv == gettime(3)+1 || ispartneron()==0)end; set @dsv,gettime(3)+1; misceffect 113; }";
+ setitemscript 560,"{ itemheal 50,50; if(Sex || @dsv == gettime(3)+1 || ispartneron()==0)end; set @dsv,gettime(3)+1; misceffect 113; }";
//2634,Wedding_Ring_M,Wedding Ring,5,,10,0,,0,,0,127918079,7,1,136,,0,0,0,{ skill 334,1; skill 335,1; skill 336,1; }
setitemscript 2634,"{ skill 334,1; skill 335,1; skill 336,1; if(@dsv == gettime(3)+1 && ispartneron()){ bonus2 bExpAddRace,5,50; bonus2 bExpAddRace,6,50; bonus2 bExpAddRace,7,50; bonus2 bExpAddRace,8,50; bonus2 bExpAddRace,1,50; } }";
diff --git a/npc/custom/item_signer.txt b/npc/custom/item_signer.txt
index fad2f92f9..dfc93fb85 100644
--- a/npc/custom/item_signer.txt
+++ b/npc/custom/item_signer.txt
@@ -13,7 +13,7 @@
prt_in,24,61,7 script Perchik 1_M_01,{
- setarray .@Item[0],644,3; // Item requirements: <ID>,<Count>{,...} (0 to disable)
+ setarray .@item[0],644,3; // Item requirements: <ID>,<Count>{,...} (0 to disable)
setarray .@Cost[0],0,5000; // Zeny requirements: <base price>,<price per refine>
disable_items;
@@ -26,10 +26,10 @@ prt_in,24,61,7 script Perchik 1_M_01,{
emotion e_ic;
next;
mes "[Perchik]";
- if (getarraysize(.@Item) || getarraysize(.@Cost)) {
+ if (getarraysize(.@item) || getarraysize(.@Cost)) {
mes "For my work I accept:";
- if (getarraysize(.@Item)) for(set .@i,0; .@i<getarraysize(.@Item); set .@i,.@i+2)
- mes " ~ "+.@Item[.@i+1]+"x "+getitemname(.@Item[.@i]);
+ if (getarraysize(.@item)) for(set .@i,0; .@i<getarraysize(.@item); set .@i,.@i+2)
+ mes " ~ "+.@item[.@i+1]+"x "+getitemname(.@item[.@i]);
if (.@Cost[0]) mes " ~ "+.@Cost[0]+" Zeny";
if (.@Cost[1]) mes " ~ "+.@Cost[1]+" Zeny per refine";
}
@@ -92,11 +92,11 @@ prt_in,24,61,7 script Perchik 1_M_01,{
close;
}
set .@price, .@Cost[0]+(.@Cost[1]*.@ref);
- if (getarraysize(.@Item) || .@price) {
+ if (getarraysize(.@item) || .@price) {
mes "I will need:";
- if (getarraysize(.@Item)) for(set .@i,0; .@i<getarraysize(.@Item); set .@i,.@i+2) {
- mes " ~ "+.@Item[.@i+1]+"x "+getitemname(.@Item[.@i]);
- if (countitem(.@Item[.@i]) < .@Item[.@i+1]) set .@nr,1;
+ if (getarraysize(.@item)) for(set .@i,0; .@i<getarraysize(.@item); set .@i,.@i+2) {
+ mes " ~ "+.@item[.@i+1]+"x "+getitemname(.@item[.@i]);
+ if (countitem(.@item[.@i]) < .@item[.@i+1]) set .@nr,1;
}
if (.@price) mes " ~ "+.@price+" Zeny";
}
@@ -122,8 +122,8 @@ prt_in,24,61,7 script Perchik 1_M_01,{
close;
}
if (.@price) set Zeny, Zeny-.@price;
- if (getarraysize(.@Item)) for(set .@i,0; .@i<getarraysize(.@Item); set .@i,.@i+2)
- delitem .@Item[.@i], .@Item[.@i+1];
+ if (getarraysize(.@item)) for(set .@i,0; .@i<getarraysize(.@item); set .@i,.@i+2)
+ delitem .@item[.@i], .@item[.@i+1];
delitem2 .@id,1,1,.@ref,0,.@slot[0],.@slot[1],.@slot[2],.@slot[3];
mes "Done!";
emotion e_proud;
diff --git a/npc/custom/itembind.txt b/npc/custom/itembind.txt
index a95de3577..f30455123 100644
--- a/npc/custom/itembind.txt
+++ b/npc/custom/itembind.txt
@@ -19,7 +19,7 @@ prontera,144,174,4 script Bound Items 429,{
next;
mes "What would you like to do?";
if(select("Bind:Unbind") == 1) {
- if(zeny < .bindprice) {
+ if(Zeny < .bindprice) {
mes "You don't have enough zeny to bind an item.";
close;
}
@@ -55,7 +55,7 @@ prontera,144,174,4 script Bound Items 429,{
next;
mes "Are you sure you'd like to bind your "+ getitemname(@inventorylist_id[.@item]) +" to your "+.boundtypes$[.@boundtype]+"?";
if(select("Yes:No") == 1) {
- zeny -= .bindprice;
+ Zeny -= .bindprice;
delitem2 @inventorylist_id[.@item],@inventorylist_amount[.@item],@inventorylist_identify[.@item],@inventorylist_refine[.@item],@inventorylist_attribute[.@item],@inventorylist_card1[.@item],@inventorylist_card2[.@item],@inventorylist_card3[.@item],@inventorylist_card4[.@item];
getitembound2 @inventorylist_id[.@item],@inventorylist_amount[.@item],@inventorylist_identify[.@item],@inventorylist_refine[.@item],@inventorylist_attribute[.@item],@inventorylist_card1[.@item],@inventorylist_card2[.@item],@inventorylist_card3[.@item],@inventorylist_card4[.@item],.@boundtype;
mes "All done!";
@@ -70,7 +70,7 @@ prontera,144,174,4 script Bound Items 429,{
countbound(2);
if(.unbindprice) {
mes "Unbinding an item has a fee of ^0000FF"+.unbindprice+"^000000 zeny.";
- if(zeny < .unbindprice) {
+ if(Zeny < .unbindprice) {
mes "You don't have enough to unbind an item.";
close;
}
@@ -102,7 +102,7 @@ prontera,144,174,4 script Bound Items 429,{
next;
mes "Are you sure you'd like to unbind your "+ getitemname(@inventorylist_id[.@item]) +"?";
if(select("Yes:No") == 1) {
- zeny -= .unbindprice;
+ Zeny -= .unbindprice;
delitem2 @inventorylist_id[.@item],@inventorylist_amount[.@item],@inventorylist_identify[.@item],@inventorylist_refine[.@item],@inventorylist_attribute[.@item],@inventorylist_card1[.@item],@inventorylist_card2[.@item],@inventorylist_card3[.@item],@inventorylist_card4[.@item];
getitem2 @inventorylist_id[.@item],@inventorylist_amount[.@item],@inventorylist_identify[.@item],@inventorylist_refine[.@item],@inventorylist_attribute[.@item],@inventorylist_card1[.@item],@inventorylist_card2[.@item],@inventorylist_card3[.@item],@inventorylist_card4[.@item];
mes "All done!";
@@ -130,4 +130,4 @@ OnInit:
.boundtypes$[2] = "guild";
.boundtypes$[4] = "character";
end;
-} \ No newline at end of file
+}
diff --git a/npc/custom/quests/berzebub.txt b/npc/custom/quests/berzebub.txt
index 8827329d9..8a57d4f3e 100644
--- a/npc/custom/quests/berzebub.txt
+++ b/npc/custom/quests/berzebub.txt
@@ -13,7 +13,7 @@
prontera,165,178,8 script Old Woman 8_F_GRANDMOTHER,{
- setarray .@Items[0],714,25,1061,100,1095,200,618,10,1551,2,1614,1,727,20;
+ setarray .@items[0],714,25,1061,100,1095,200,618,10,1551,2,1614,1,727,20;
set .@n$,"[Old Woman]";
mes .@n$;
@@ -37,9 +37,9 @@ prontera,165,178,8 script Old Woman 8_F_GRANDMOTHER,{
next;
mes .@n$;
mes "I need all of the following items:";
- for(set .@i,0; .@i<getarraysize(.@Items); set .@i,.@i+2) {
- mes " ~ "+.@Items[.@i+1]+"x "+getitemname(.@Items[.@i]);
- if (countitem(.@Items[.@i]) < .@Items[.@i+1]) set .@nr,1; }
+ for(set .@i,0; .@i<getarraysize(.@items); set .@i,.@i+2) {
+ mes " ~ "+.@items[.@i+1]+"x "+getitemname(.@items[.@i]);
+ if (countitem(.@items[.@i]) < .@items[.@i+1]) set .@nr,1; }
next;
if(select("I have all of that!:I'll get those ASAP")==2) goto M_Leave;
@@ -47,8 +47,8 @@ prontera,165,178,8 script Old Woman 8_F_GRANDMOTHER,{
if (.@nr) {
mes "You lie! Get out of here and get those items, you sorry excuse for a rock star.";
close; }
- for(set .@i,0; .@i<getarraysize(.@Items); set .@i,.@i+2)
- delitem .@Items[.@i], .@Items[.@i+1];
+ for(set .@i,0; .@i<getarraysize(.@items); set .@i,.@i+2)
+ delitem .@items[.@i], .@items[.@i+1];
getitem 4145,1;
set BerzQuest, 1;
mes "Congratulations! You have all the items. Here is your ^FF0000Berzebub Card^000000, as promised.";
diff --git a/npc/custom/quests/kahohorn.txt b/npc/custom/quests/kahohorn.txt
index ea1916e50..882728925 100644
--- a/npc/custom/quests/kahohorn.txt
+++ b/npc/custom/quests/kahohorn.txt
@@ -12,7 +12,7 @@
geffen,115,107,5 script Lord Kaho's Servant 1_M_PUBMASTER,{
- setarray .@Items[0],7005, 968, 923, 734, 724,2268,7036,7020,5053,7018,741,742,743,750,751,752,753,754;
+ setarray .@items[0],7005, 968, 923, 734, 724,2268,7036,7020,5053,7018,741,742,743,750,751,752,753,754;
setarray .@Drops[0],1272,1087,1039,1260,1046,1115,1252,1147,1038,1059;
set .@n$, "[Lord Kaho's Servant]";
@@ -30,13 +30,13 @@ geffen,115,107,5 script Lord Kaho's Servant 1_M_PUBMASTER,{
next;
mes .@n$;
for(set .@i,0; .@i<10; set .@i,.@i+1)
- mes "1x ^0055FF"+getitemname(.@Items[.@i])+"^000000 (from "+strmobinfo(1,.@Drops[.@i])+")";
+ mes "1x ^0055FF"+getitemname(.@items[.@i])+"^000000 (from "+strmobinfo(1,.@Drops[.@i])+")";
next;
mes .@n$;
mes "We're not done yet, sweetie...";
mes "I'm a big fan of dolls, so you need to bring me these cuties!";
for(set .@i,10; .@i<18; set .@i,.@i+1)
- mes "1x ^0055FF"+getitemname(.@Items[.@i])+"^000000";
+ mes "1x ^0055FF"+getitemname(.@items[.@i])+"^000000";
next;
mes .@n$;
mes "Finally, I've worked hard to make these horns for my master with all the items mentioned above...";
@@ -52,12 +52,12 @@ geffen,115,107,5 script Lord Kaho's Servant 1_M_PUBMASTER,{
close; }
mes .@n$;
for(set .@i,0; .@i<18; set .@i,.@i+1)
- if (!countitem(.@Items[.@i])) { set .@nr,1; break; }
+ if (!countitem(.@items[.@i])) { set .@nr,1; break; }
if (.@nr || countitem(714) < 3 || Zeny < 5000000) {
mes "I can't afford to make this if you don't bring all materials needed. Please understand this is to benefit heroes such as yourself!";
close; }
for(set .@i,0; .@i<18; set .@i,.@i+1)
- delitem .@Items[.@i],1;
+ delitem .@items[.@i],1;
delitem 714,3;
set Zeny, Zeny-5000000;
mes "Wow! You are brave indeed!";
diff --git a/npc/custom/quests/kings_items.txt b/npc/custom/quests/kings_items.txt
index b8c7a5538..345f8b051 100644
--- a/npc/custom/quests/kings_items.txt
+++ b/npc/custom/quests/kings_items.txt
@@ -24,15 +24,15 @@ prt_castle,80,170,4 script King of Prontera 1_M_PRON_KING,{
mes "If you get her these items I'm sure she'll calm down.";
mes "I'll give you my crown or my sword as a reward.";
next;
- setarray .@Items1[0],5007,742,30,741,50,753,20,732,1,710,20,629,20;
- setarray .@Items2[0],1137,2254,1,2282,1,714,1;
+ setarray .@items1[0],5007,742,30,741,50,753,20,732,1,710,20,629,20;
+ setarray .@items2[0],1137,2254,1,2282,1,714,1;
switch(select("What do you need?:I have the items!:Forget it.")) {
case 1:
for(set .@i,1; .@i<3; set .@i,.@i+1) {
mes "[King of Prontera]";
mes "If you could get me:";
- for(set .@j,1; .@j<getarraysize(getd(".@Items"+.@i)); set .@j,.@j+2)
- mes " ~ ^0055FF"+getd(".@Items"+.@i+"["+(.@j+1)+"]")+"^000000x "+getitemname(getd(".@Items"+.@i+"["+.@j+"]"));
+ for(set .@j,1; .@j<getarraysize(getd(".@items"+.@i)); set .@j,.@j+2)
+ mes " ~ ^0055FF"+getd(".@items"+.@i+"["+(.@j+1)+"]")+"^000000x "+getitemname(getd(".@items"+.@i+"["+.@j+"]"));
mes "I'll give my "+((.@i)?"sword.":"crown.");
if (.@i==2) close;
next; }
@@ -41,16 +41,16 @@ prt_castle,80,170,4 script King of Prontera 1_M_PRON_KING,{
mes "What item do you want?";
next;
set .@i, select("Crown:Sword");
- for(set .@j,1; .@j<getarraysize(getd(".@Items"+.@i)); set .@j,.@j+2)
- if (countitem(getd(".@Items"+.@i+"["+.@j+"]")) < getd(".@Items"+.@i+"["+(.@j+1)+"]")) set .@nr,1;
+ for(set .@j,1; .@j<getarraysize(getd(".@items"+.@i)); set .@j,.@j+2)
+ if (countitem(getd(".@items"+.@i+"["+.@j+"]")) < getd(".@items"+.@i+"["+(.@j+1)+"]")) set .@nr,1;
mes "[King of Prontera]";
if (.@nr) {
mes "You're missing something.";
mes "Come back after you get ALL the items.";
close; }
- for(set .@j,1; .@j<getarraysize(getd(".@Items"+.@i)); set .@j,.@j+2)
- delitem getd(".@Items"+.@i+"["+.@j+"]"), getd(".@Items"+.@i+"["+(.@j+1)+"]");
- getitem getd(".@Items"+.@i+"[0]"),1;
+ for(set .@j,1; .@j<getarraysize(getd(".@items"+.@i)); set .@j,.@j+2)
+ delitem getd(".@items"+.@i+"["+.@j+"]"), getd(".@items"+.@i+"["+(.@j+1)+"]");
+ getitem getd(".@items"+.@i+"[0]"),1;
mes "THANK YOU SOO MUCH!!";
mes "This will surely calm her down.";
mes "As promised, here is my "+((.@i==1)?"crown.":"sword.");
diff --git a/npc/custom/quests/thq/THQS_GuildNPC.txt b/npc/custom/quests/thq/THQS_GuildNPC.txt
index a49c92ed3..3e0723781 100644
--- a/npc/custom/quests/thq/THQS_GuildNPC.txt
+++ b/npc/custom/quests/thq/THQS_GuildNPC.txt
@@ -25,7 +25,7 @@ yuno_in01,124,164,6 script Guild Leader 1_M_PRON_KING,{
mes "Umm... Well that is all you need to do. Hahaha.";
next;
menu "Pay ^FF000025,000z^000000.",-,"Thats way to high!!",N_HighPrice;
- if (zeny < 25000) goto N_NoZeny;
+ if (Zeny < 25000) goto N_NoZeny;
set Zeny,Zeny-25000;
//getitem 7950, 1;
//getitem 7951, 1;
diff --git a/npc/custom/quests/thq/THQS_TTShop.txt b/npc/custom/quests/thq/THQS_TTShop.txt
index c764de852..25e080a8e 100644
--- a/npc/custom/quests/thq/THQS_TTShop.txt
+++ b/npc/custom/quests/thq/THQS_TTShop.txt
@@ -51,7 +51,7 @@ N_Shop:
close;
N_GetZeny1k:
set #Treasure_Token,#Treasure_Token-1;
- set zeny,zeny+1000;
+ set Zeny,Zeny+1000;
close;
N_10T:
if (#Treasure_Token > 9) goto N_GetZeny10k;
@@ -59,7 +59,7 @@ N_10T:
close;
N_GetZeny10k:
set #Treasure_Token,#Treasure_Token-10;
- set zeny,zeny+10000;
+ set Zeny,Zeny+10000;
close;
N_100T:
if (#Treasure_Token > 99) goto N_GetZeny100k;
@@ -67,7 +67,7 @@ N_100T:
close;
N_GetZeny100k:
set #Treasure_Token,#Treasure_Token-100;
- set zeny,zeny+100000;
+ set Zeny,Zeny+100000;
close;
N_BuyWeps:
diff --git a/npc/custom/quests/valhallen.txt b/npc/custom/quests/valhallen.txt
index bb84e73e5..c70de008b 100644
--- a/npc/custom/quests/valhallen.txt
+++ b/npc/custom/quests/valhallen.txt
@@ -21,46 +21,46 @@ prontera,147,171,5 script Lenneth 4_F_VALKYRIE,{
case 1:
mes "[Lenneth]";
mes "^3355FFMjolnir^000000 is the mighty Hammer of Thor.";
- setarray .@Items[0],1530,1531,2,984,20,985,5,969,40,7074,2,7075,4,7078,5,7087,5,7089,5;
+ setarray .@items[0],1530,1531,2,984,20,985,5,969,40,7074,2,7075,4,7078,5,7087,5,7089,5;
break;
case 2:
mes "[Lenneth]";
mes "^3355FFSleipnir^000000 are boots made after Odin's War Horse.";
- setarray .@Items[0],2410,2406,2,984,1,969,20,985,10,7076,3,7079,5,7083,3,7086,3;
+ setarray .@items[0],2410,2406,2,984,1,969,20,985,10,7076,3,7079,5,7083,3,7086,3;
break;
case 3:
mes "[Lenneth]";
mes "^3355FFBrisingammen^000000 is the magical Necklace of Freyja, goddess of Beauty.";
- setarray .@Items[0],2630,2603,1,726,2,722,3,727,10,723,5,969,20,7073,4,7077,4,7088,3,7090,3,7092,3;
+ setarray .@items[0],2630,2603,1,726,2,722,3,727,10,723,5,969,20,7073,4,7077,4,7088,3,7090,3,7092,3;
break;
case 4:
mes "[Lenneth]";
mes "The ^3355FFGleipnir^000000 is a light yet strong rope required to make ^3355FFMegingjard^000000";
- setarray .@Items[0],7058,7080,4,7081,5,7082,4,7084,3,7085,3;
+ setarray .@items[0],7058,7080,4,7081,5,7082,4,7084,3,7085,3;
break;
case 5:
mes "[Lenneth]";
mes "The ^3355FFMegingjard^000000 is the powerful Belt of Thor.";
- setarray .@Items[0],2629,7058,1,2627,1,969,10,726,10,984,5;
+ setarray .@items[0],2629,7058,1,2627,1,969,10,726,10,984,5;
break; }
mes "^FF0000The items I need are as follows:^000000";
- for(set .@i,1; .@i<getarraysize(.@Items[0]); set .@i,.@i+2) {
- mes " ~ "+.@Items[.@i+1]+"x ^3355FF"+getitemname(.@Items[.@i])+"^000000";
- if (countitem(.@Items[.@i]) < .@Items[.@i+1]) set .@nr,1; }
+ for(set .@i,1; .@i<getarraysize(.@items[0]); set .@i,.@i+2) {
+ mes " ~ "+.@items[.@i+1]+"x ^3355FF"+getitemname(.@items[.@i])+"^000000";
+ if (countitem(.@items[.@i]) < .@items[.@i+1]) set .@nr,1; }
if (.@nr) close;
next;
mes "[Lenneth]";
- mes "Do you desire ^3355FF"+getitemname(.@Items[0])+"^000000?";
+ mes "Do you desire ^3355FF"+getitemname(.@items[0])+"^000000?";
next;
if(select("Yes:No")==2) {
mes "[Lenneth]";
mes "Please return if you change your mind.";
close; }
mes "[Lenneth]";
- mes "Here is your ^3355FF"+getitemname(.@Items[0])+"^000000.";
+ mes "Here is your ^3355FF"+getitemname(.@items[0])+"^000000.";
mes "May it serve you well.";
- for(set .@i,1; .@i<getarraysize(.@Items); set .@i,.@i+2)
- delitem .@Items[.@i], .@Items[.@i+1];
- getitem .@Items[0],1;
+ for(set .@i,1; .@i<getarraysize(.@items); set .@i,.@i+2)
+ delitem .@items[.@i], .@items[.@i+1];
+ getitem .@items[0],1;
close;
}