From b07b02bc7899abd47d043731869b4bfa7626f8e4 Mon Sep 17 00:00:00 2001 From: euphyy Date: Fri, 13 Jul 2012 03:35:32 +0000 Subject: * Added mine and tr0n's quest scripts to /custom/quests/ * Added GmOcean's Disguise Event, Mysterious' Mushroom Event, and Keale's Cluckers Event (all edited) to /custom/events/ * Moved Quest Warper into /etc/ * Deleted custom Fashionable Glasses quest, duplicate of official NPC "Zic" (custom/quests/fashion.txt) * Deleted custom Hyegun event (custom/events/hyegun_event.txt) * Deleted custom Dracula event (custom/events/draculax.txt) * Deleted custom Wizard Hat quest (custom/quests/magicalhatquest.txt) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16421 54d463be-8e91-2dee-dedb-b68131a5f0ec --- npc/custom/quests/fashion.txt | 69 -------- npc/custom/quests/magicalhatquest.txt | 58 ------- npc/custom/quests/quest_shop.txt | 148 +++++++++++++++++ npc/custom/quests/questboard.txt | 300 ++++++++++++++++++++++++++++++++++ 4 files changed, 448 insertions(+), 127 deletions(-) delete mode 100644 npc/custom/quests/fashion.txt delete mode 100644 npc/custom/quests/magicalhatquest.txt create mode 100644 npc/custom/quests/quest_shop.txt create mode 100644 npc/custom/quests/questboard.txt (limited to 'npc/custom/quests') diff --git a/npc/custom/quests/fashion.txt b/npc/custom/quests/fashion.txt deleted file mode 100644 index 5027bf8e8..000000000 --- a/npc/custom/quests/fashion.txt +++ /dev/null @@ -1,69 +0,0 @@ -//===== rAthena Script ======================================= -//= Quest for Fashion Glasses (Daily Job Quest) -//===== By: ================================================== -//= -//===== Current Version: ===================================== -//= 1.1 -//===== Compatible With: ===================================== -//= rAthena SVN -//===== Description: ========================================= -//= Quest for Fashion Glasses -//===== Additional Comments: ================================= -//= 1.0 Fully Working [Lupus] -//= 1.1 fixed exploit [Lupus] -//============================================================ - -izlude,135,96,5 script Fashion Glasses Quest 76,{ - mes "[Fashionable Glasses Quest]"; - mes "Hi, today's quest is...."; - mes "Ah, the ^CC6633Fashionable Glasses^000000 Quest!"; - next; - menu "Requirements",M_INFO,"Make Item",-,"Cancel",M_CANCEL; - - mes "[Fashionable Glasses Quest]"; - mes "Good good, let me just check"; - next; - if(countitem(2271)<1 || countitem(975)<1) goto M_NOITEMS; - delitem 2271,1; - delitem 975,1; - mes "[Fashionable Glasses Quest]"; - mes "Give me a second....."; - next; - getitem 5047,1; - mes "[Fashionable Glasses Quest]"; - mes "Ok done!"; - close; - -M_NOITEMS: - mes "[Fashionable Glasses Quest]"; - mes "You don't have the requirements."; - mes "Please come back another time..."; - close; - -M_INFO: - mes "[Fashionable Glasses Quest]"; - mes "Ok all you have to do is collect"; - mes "^CC66331 Jack'a Dandy^000000"; - mes "and ^CC66331 Scalet Dyestuffs^000000."; - next; - menu "Accept",-,"Leave",M_LEAVE; - - mes "[Fashionable Glasses Quest]"; - mes "When you are done, bring the items to me,"; - mes "Ok good luck finding those items."; - close; - -M_LEAVE: - mes "[Fashionable Glasses Quest]"; - mes "Maybe another time?"; - close; - -M_CANCEL: - mes "[Fashionable Glasses Quest]"; - mes "Aw, what a shame"; - mes "Giving up already?"; - mes "Oh well maybe you will"; - mes "participate in tommorow's"; - mes "quest."; - close; -} diff --git a/npc/custom/quests/magicalhatquest.txt b/npc/custom/quests/magicalhatquest.txt deleted file mode 100644 index 145ea0f27..000000000 --- a/npc/custom/quests/magicalhatquest.txt +++ /dev/null @@ -1,58 +0,0 @@ -//===== rAthena Script ======================================= -//= Wizard Hat Custom Quest -//===== By: ================================================== -//= Who -//===== Current Version: ===================================== -//= 1.1 -//===== Compatible With: ===================================== -//= rAthena SVN -//===== Description: ========================================= -//= Wizard Hat quest. Harmless, doesn't screw game balance. -//===== Additional Comments: ================================= -//= 1.1 Reversed ingreadients and the quest result due to -//= treasue boxes drops fix [Lupus] -//============================================================ - -geffen,126,107,5 script Wizard Hat Dude 51,{ - mes "[Wizard Hat Dude]"; - mes "Huh! What do you want?"; - mes "Ohh, I see, you want me to make you something."; - emotion e_what; - next; - mes "[Wizard Hat Dude]"; - mes "Well if you want this Wizard Hat here is a list of the items I need you to go out and get them for me:"; - mes "1 Magican Hat"; - mes "1 Bathory Card"; - mes "and 200,000z for my efforts"; - next; - mes "[Wizard Hat Dude]"; - mes "Are you ready for me to make this magical item?"; - next; - menu "Sure am!",-,"These requirements are unfathomable!",M_RIPOFF; - - mes "[Wizard Hat Dude]"; - if(countitem(5045) < 1 || countitem(4119) < 1 || Zeny < 200000) goto L_NotEnough; - delitem 5045,1; - delitem 4119,1; - set Zeny,Zeny-200000; - mes "Wow! You are brave indeed!"; - emotion e_no1; - next; - mes "[Wizard Hat Dude]"; - mes "Enjoy your Wizard Hat!"; - getitem 2252,1; - close; - -L_NotEnough: - mes ". . .I'm sorry .. You don't have enough money and items .."; - 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!"; - emotion e_sry; - close; - -M_RIPOFF: - mes "[Wizard Hat Dude]"; - mes "What I had to go through was more unfathomable.."; - mes "If you succeed in getting these items, you will have incredible strength!"; - emotion e_hmm; - close; -} diff --git a/npc/custom/quests/quest_shop.txt b/npc/custom/quests/quest_shop.txt new file mode 100644 index 000000000..fd58e49a4 --- /dev/null +++ b/npc/custom/quests/quest_shop.txt @@ -0,0 +1,148 @@ +//===== rAthena Script ======================================= +//= Euphy's Quest Shop +//===== By: ================================================== +//= Euphy +//===== Current Version: ===================================== +//= 1.4a +//===== Compatible With: ===================================== +//= rAthena SVN r15340+ +//===== Description: ========================================= +//= A dynamic quest shop based on Lunar's, with easier config. +//= Includes support for multiple shops & cashpoints. +//= Item Preview script by ToastOfDoom. +//============================================================ + +prontera,164,203,6 script Quest Shop 998,{ +function Add; function Chk; function Slot; function A_An; + + if(.Shops$ != "") set .@i,1; + else { + set .@menu$,""; + for(set .@i,1; .@i<=getarraysize(.Shops$); set .@i,.@i+1) + set .@menu$, .@menu$+.Shops$[.@i]+":"; + set .@i, select(.@menu$); } + dispbottom "Select one item at a time."; + callshop "qshop"+.@i,1; + npcshopattach "qshop"+.@i; + end; + +function Add { + if (getitemname(getarg(1))=="null") { + debugmes "Quest reward #"+getarg(1)+" invalid (skipped)."; return; } + for(set .@n,5; .@n<127; set .@n,.@n+2) { + if (!getarg(.@n,0)) break; + if (getitemname(getarg(.@n))=="null") { + debugmes "Quest requirement #"+getarg(.@n)+" invalid (skipped)."; return; } } + for(set .@i,2; .@i<.@n; set .@i,.@i+1) + set getd(".q_"+getarg(1)+"["+(.@i-2)+"]"), getarg(.@i); + npcshopadditem "qshop"+getarg(0),getarg(1),((.ShowZeny)?getarg(3):0); + return; } +function Chk { + if (getarg(0)0) return .@s$+" ["+getitemslots(getarg(0))+"]"; + default: return .@s$; } } +function A_An { + setarray .@A$[0],"a","e","i","o","u"; + set .@B$, "_"+getarg(0); + for(set .@i,0; .@i<5; set .@i,.@i+1) + if (compare(.@B$,"_"+.@A$[.@i])) return "an "+getarg(0); + return "a "+getarg(0); } + +OnBuyItem: + set .@q[0],@bought_nameid; + copyarray .@q[1],getd(".q_"+@bought_nameid+"[0]"),getarraysize(getd(".q_"+@bought_nameid+"[0]")); + if (!.@q[1]) { message strcharinfo(0),"An error has occurred."; end; } + mes "[Quest Shop]"; + mes "Reward: ^0055FF"+((.@q[1]>1)?.@q[1]+"x ":"")+Slot(.@q[0])+"^000000"; + mes "Requirements:"; + if (.@q[2]) mes " > "+Chk(Zeny,.@q[2])+.@q[2]+" Zeny^000000"; + if (.@q[3]) mes " > "+Chk(getd(.Points$[0]),.@q[3])+.@q[3]+" "+.Points$[1]+" ("+getd(.Points$[0])+"/"+.@q[3]+")^000000"; + if (.@q[4]) for(set .@i,4; .@i "+Chk(countitem(.@q[.@i]),.@q[.@i+1])+((.DisplayID)?"{"+.@q[.@i]+"} ":"")+Slot(.@q[.@i])+" ("+countitem(.@q[.@i])+"/"+.@q[.@i+1]+")^000000"; + next; + set @qe1, getiteminfo(.@q[0],5); set @qe2, getiteminfo(.@q[0],11); + addtimer 1000, strnpcinfo(1)+"::OnEnd"; + while(1){ + switch(select(" ~ Purchase ^0055FF"+getitemname(.@q[0])+"^000000:"+((((@qe1&1) || (@qe1&256) || (@qe1&512)) && @qe2>0 && !@qe6)?" ~ Preview...":"")+": ~ ^777777Cancel^000000")) { + case 1: + if (@qe0) { + mes "[Quest Shop]"; + mes "You're missing one or more quest requirements."; + close; } + if (!checkweight(.@q[0],.@q[1])) { + mes "[Quest Shop]"; + mes "^FF0000You need "+(((.@q[1]*getiteminfo(.@q[0],6))+Weight-MaxWeight)/10)+" additional weight capacity to complete this trade.^000000"; + close; } + if (.@q[2]) set Zeny, Zeny-.@q[2]; + if (.@q[3]) setd .Points$[0], getd(.Points$[0])-.@q[3]; + if (.@q[4]) for(set .@i,4; .@i","" + setarray .Points$[0],"#CASHPOINTS","Cash Points"; + + set .Announce,1; // Announce quest completion? (1: yes / 0: no) + set .ShowSlot,1; // Show item slots? (2: all equipment / 1: if slots > 0 / 0: never) + set .DisplayID,0; // Show item IDs? (1: yes / 0: no) + set .ShowZeny,0; // Show Zeny cost, if any? (1: yes / 0: no) + +// Shop categories, if needed: "",""{,...}; +// Duplicate dummy data for any additional shops (bottom of script). +// If no categories, use the second line instead (remove //). + + setarray .Shops$[1],"Headgears","Weapons","Other"; + // set .Shops$,"n/a"; + +// Add(,,,,, +// ,{,...}); +// Shop number corresponds with order above (default is 1). +// Note: Do NOT use a reward item more than once! + + Add(1,5022,1,0,0,7086,1,969,10,999,40,1003,50,984,2); + Add(1,5032,1,0,0,1059,250,2221,1,2227,1,7063,600); + Add(1,5027,1,0,0,2252,1,1036,400,7001,50,4052,1); + Add(1,5045,1,0,0,2252,1,1054,450,943,1200); + + Add(2,1224,1,0,0,7297,30,969,10,999,50,714,10); + Add(2,1225,1,0,0,7292,30,969,10,999,50,714,10); + + Add(3,531,1,3,0,512,1,713,1); + Add(3,532,1,3,0,513,1,713,1); + Add(3,533,1,3,0,514,1,713,1); + Add(3,534,1,3,0,515,1,713,1); + +// -------------------------------------------------- + freeloop(0); + for(set .@i,1; .@i<=getarraysize(.Shops$); set .@i,.@i+1) + npcshopdelitem "qshop"+.@i,909; + end; +} + +// -------- Dummy data (duplicate as needed) -------- +- shop qshop1 -1,909:-1 +- shop qshop2 -1,909:-1 +- shop qshop3 -1,909:-1 \ No newline at end of file diff --git a/npc/custom/quests/questboard.txt b/npc/custom/quests/questboard.txt new file mode 100644 index 000000000..3bea4b71c --- /dev/null +++ b/npc/custom/quests/questboard.txt @@ -0,0 +1,300 @@ +//===== rAthena Script ======================================= +//= tr0n's Questboard +//===== By: ================================================== +//= tr0n +//===== Current Version: ===================================== +//= 1.3.4 +//===== Compatible With: ===================================== +//= rAthena SVN +//===== Description: ========================================= +//= Easily add collection and hunting quests. +//===== Additional Comments: ================================= +// 1.0.0 Release +// 1.1.0 Added zeny reward +// 1.2.0 Rewrote checkmob and killcounter +// 1.3.1 Added level restriction +// 1.3.4 Added Reward Item Amount +//============================================================ + +prontera,129,215,5 script Questboard 857,{ + + if(c_run==1){ + mes "[^FF7700Questboard^000000]"; + mes "^0000FF"+getd("." + currentquest$ + "_collectionname$")+"^000000"; + mes "--------------------------------"; + for( set .@j, 0; .@j < getarraysize(getd("."+ currentquest$ + "_collectionitem")); set .@j,.@j+2) { + mes "^FF0000"+getitemname(getd("."+currentquest$+"_collectionitem["+.@j+"]"))+" - "+countitem(getd("."+currentquest$+"_collectionitem["+.@j+"]"))+"/"+getd("."+currentquest$+"_collectionitem["+(.@j+1)+"]")+" ea.^000000"; + } + mes "--------------------------------"; + mes "[Reward]"; + mes "Item: ^0000FF"+((getd("." +currentquest$+"_collectionprize"))?getitemname(getd("." +currentquest$+"_collectionprize"))+" - "+getd("." +currentquest$+"_collectionamount")+" ea.^000000":"Nothing^000000"); + mes "Zeny: ^0000FF"+getd("." +currentquest$+"_collectionzeny")+"^000000"; + mes "Base EXP: ^0000FF"+getd("." +currentquest$+"_collectionexp["+0+"]")+"^000000"; + mes "Job EXP: ^0000FF"+getd("." +currentquest$+"_collectionexp["+1+"]")+"^000000"; + next; + if(select("Finish:Abort") == 2){ + mes "[^FF7700Questboard^000000]"; + mes "Quest aborted."; + set currentquest$, ""; + set c_run, 0; + close; + } + goto L_checkitems; + } + + if(h_run==1) { + mes "[^FF7700Questboard^000000]"; + mes "^0000FF"+getd("." + currentquest$ + "_huntingname$")+"^000000"; + mes "--------------------------------"; + for( set .@j, 0; .@j < getarraysize(getd("."+ currentquest$ + "_huntingmob")); set .@j,.@j+2) { + set .@currentmob, getd("."+currentquest$+"_huntingmob["+(.@j)+"]"); + mes "^FF0000"+strmobinfo(1,getd("."+currentquest$+"_huntingmob["+.@j+"]"))+" - "+getd(currentquest$+"_"+.@currentmob+"_"+(.@j+1)+"_killcount")+"/"+getd("."+currentquest$+"_huntingmob["+(.@j+1)+"]")+" ea.^000000"; + } + mes "--------------------------------"; + mes "[Reward]"; + mes "Item: ^0000FF"+((getd("." +currentquest$+"_huntingprize"))?getitemname(getd("." +currentquest$+"_huntingprize"))+" - "+getd("." +currentquest$+"_huntingamount")+" ea.^000000":"Nothing^000000"); + mes "Zeny: ^0000FF"+getd("." +currentquest$+"_huntingzeny")+"^000000"; + mes "Base EXP: ^0000FF"+getd("." +currentquest$+"_huntingexp["+0+"]")+"^000000"; + mes "Job EXP: ^0000FF"+getd("." +currentquest$+"_huntingexp["+1+"]")+"^000000"; + next; + if(select("Finish:Abort") == 2){ + mes "[^FF7700Questboard^000000]"; + mes "Quest aborted."; + for(set .@x, 1; .@x < getarraysize(getd("."+currentquest$+"_huntingmob")); set .@x,.@x+2){ + set .@currentmob, getd("."+currentquest$+"_huntingmob["+(.@x-1)+"]"); + setd(currentquest$+"_"+.@currentmob+"_"+.@x+"_killcount", 0); + } + set currentquest$, ""; + set h_run, 0; + close; + } + goto L_checkmobs; + } + +L_questmenu: + mes "[^FF7700Questboard^000000]"; + mes "Select category:"; + next; + + switch(select((.collection)?"Collection Quests":"", + (.hunting)?"Hunting Quests":"", + "Exit")) { + +case 1: + set .@collectmenu$, ""; + for( set .@i,0; .@i < .collectionquestcount; set .@i,.@i+1) { + if (.@i) set .@collectmenu$,.@collectmenu$+":"; + set .@collectmenu$, .@collectmenu$ + "[" + getd("." +(.@i+1)+"_collectionmin") + " - " + getd("." +(.@i+1)+"_collectionmax") + "] " + getd("." + (.@i+1) + "_collectionname$"); + } + set .@selection,select(.@collectmenu$); + mes "[^FF7700Questboard^000000]"; + mes "^0000FF"+getd("." + .@selection + "_collectionname$")+"^000000"; + mes "--------------------------------"; + for( set .@j, 0; .@j < getarraysize(getd("."+ .@selection + "_collectionitem")); set .@j,.@j+2) { + mes "^FF0000"+getitemname(getd("."+.@selection+"_collectionitem["+.@j+"]"))+" - "+getd("."+.@selection+"_collectionitem["+(.@j+1)+"]")+" ea.^000000"; + } + mes "--------------------------------"; + mes "[Reward]"; + mes "Item: ^0000FF"+((getd("." +.@selection+"_collectionprize"))?getitemname(getd("." +.@selection+"_collectionprize"))+" - "+getd("." +.@selection+"_collectionamount")+" ea.^000000":"Nothing^000000"); + mes "Zeny: ^0000FF"+getd("." +.@selection+"_collectionzeny")+"^000000"; + mes "Base EXP: ^0000FF"+getd("." +.@selection+"_collectionexp["+0+"]")+"^000000"; + mes "Job EXP: ^0000FF"+getd("." +.@selection+"_collectionexp["+1+"]")+"^000000"; + next; + if(select("Accept:Decline") == 2){ + close; + } + if(BaseLevel >= getd("." +.@selection+"_collectionmin") && BaseLevel <= getd("." +.@selection+"_collectionmax")) + { + mes "[^FF7700Questboard^000000]"; + mes "Quest accepted."; + set c_run, 1; + set currentquest$, .@selection; + close; + } + else + { + mes "[^FF7700Questboard^000000]"; + mes "You don't have the required"; + mes "level to do this quest."; + close; + } + +case 2: + set .@huntmenu$, ""; + for( set .@i,0; .@i < .huntingquestcount; set .@i,.@i+1) { + if (.@i) set .@huntmenu$,.@huntmenu$+":"; + set .@huntmenu$, .@huntmenu$ + "[" + getd("." +(.@i+1)+"_huntingmin") + " - " + getd("." +(.@i+1)+"_huntingmax") + "] " + getd("." + (.@i+1) + "_huntingname$"); + } + set .@selection,select(.@huntmenu$); + mes "[^FF7700Questboard^000000]"; + mes "^0000FF"+getd("." + .@selection + "_huntingname$")+"^000000"; + mes "--------------------------------"; + for( set .@j, 0; .@j < getarraysize(getd("."+ .@selection + "_huntingmob")); set .@j,.@j+2) { + mes "^FF0000"+strmobinfo(1,getd("."+.@selection+"_huntingmob["+.@j+"]"))+" - "+getd("."+.@selection+"_huntingmob["+(.@j+1)+"]")+" ea.^000000"; + } + mes "--------------------------------"; + mes "[Reward]"; + mes "Item: ^0000FF"+((getd("." +.@selection+"_huntingprize"))?getitemname(getd("." +.@selection+"_huntingprize"))+" - "+getd("." +.@selection+"_huntingamount")+" ea.^000000":"Nothing^000000"); + mes "Zeny: ^0000FF"+getd("." +.@selection+"_huntingzeny")+"^000000"; + mes "Base EXP: ^0000FF"+getd("." +.@selection+"_huntingexp["+0+"]")+"^000000"; + mes "Job EXP: ^0000FF"+getd("." +.@selection+"_huntingexp["+1+"]")+"^000000"; + next; + if(select("Accept:Decline") == 2){ + close; + } + if(BaseLevel >= getd("." +.@selection+"_huntingmin") && BaseLevel <= getd("." +.@selection+"_huntingmax")) + { + mes "[^FF7700Questboard^000000]"; + mes "Quest accepted."; + set h_run, 1; + set currentquest$, .@selection; + close; + } + else + { + mes "[^FF7700Questboard^000000]"; + mes "You don't have the required"; + mes "level to do this quest."; + close; + } + +case 3: + close; + } + +L_checkitems: + for( set .@k,0; .@k < getarraysize(getd("."+currentquest$+"_collectionitem")); set .@k,.@k+2) { + if(countitem(getd("."+currentquest$+"_collectionitem["+.@k+"]"))>=getd("."+currentquest$+"_collectionitem["+(.@k+1)+"]")){ + set .@checkitem,.@checkitem+2; + } + } + if(.@checkitem=getd("."+currentquest$+"_huntingmob["+.@i+"]")) end; + setd(currentquest$+"_"+.@currentmob+"_"+.@i+"_killcount", getd(currentquest$+"_"+.@currentmob+"_"+.@i+"_killcount")+1); + dispbottom getd("."+currentquest$+"_huntingname$")+": ["+strmobinfo(1,.@currentmob)+"] ("+ getd(currentquest$+"_"+.@currentmob+"_"+.@i+"_killcount")+"/"+getd("."+currentquest$+"_huntingmob["+.@i+"]")+")"; + end; + } + continue; + } + end; + +OnInit: + + function AddCollection; + function AddHunting; + + //Activate/Deactive quest categories here + set .collection, 1; + set .hunting, 1; + + //Checks if quests are loaded (prevents out of index) + if(.questsloaded==1) end; + set .questsloaded, 1; + + //Add Collection Quests here + //AddCollection("",,,,,,,,,,...); + + //Add Hunting Quests here + //AddHunting("",,,,,,,,,,...); + + end; + + +function AddCollection { + set .collectionquestcount,.collectionquestcount+1; + setd ("." +.collectionquestcount+"_collectionname$", getarg(0)); + setd ("." +.collectionquestcount+"_collectionmin", getarg(1)); + setd ("." +.collectionquestcount+"_collectionmax", getarg(2)); + setd ("." +.collectionquestcount+"_collectionprize", getarg(3)); + setd ("." +.collectionquestcount+"_collectionamount", getarg(4)); + setd ("." +.collectionquestcount+"_collectionzeny", getarg(5)); + set .@argcount, 6; + set .@size, getarraysize(getd("."+ .collectionquestcount + "_collectionexp")); + setd ("." +.collectionquestcount+"_collectionexp["+.@size+"]",getarg(.@argcount)); + setd ("." +.collectionquestcount+"_collectionexp["+(.@size+1)+"]",getarg(.@argcount+1)); + set .@argcount, .@argcount+2; + while(getarg(.@argcount,-1)!=-1 && getarg(.@argcount+1,-1)!=-1) { + set .@size, getarraysize(getd("."+ .collectionquestcount + "_collectionitem")); + setd ("."+.collectionquestcount+"_collectionitem["+.@size+"]",getarg(.@argcount)); + setd ("."+.collectionquestcount+"_collectionitem["+(.@size+1)+"]",getarg(.@argcount+1)); + set .@argcount,.@argcount+2; + } + return; +} + +function AddHunting { + set .huntingquestcount,.huntingquestcount+1; + setd ("." +.huntingquestcount+"_huntingname$", getarg(0)); + setd ("." +.huntingquestcount+"_huntingmin", getarg(1)); + setd ("." +.huntingquestcount+"_huntingmax", getarg(2)); + setd ("." +.huntingquestcount+"_huntingprize", getarg(3)); + setd ("." +.huntingquestcount+"_huntingamount", getarg(4)); + setd ("." +.huntingquestcount+"_huntingzeny", getarg(5)); + set .@size, getarraysize(getd("."+ .huntingquestcount + "_huntingexp")); + set .@argcount, 6; + setd ("." +.huntingquestcount+"_huntingexp["+.@size+"]",getarg(.@argcount)); + setd ("." +.huntingquestcount+"_huntingexp["+(.@size+1)+"]",getarg(.@argcount+1)); + set .@argcount, .@argcount+2; + while(getarg(.@argcount,-1)!=-1 && getarg(.@argcount+1,-1)!=-1) { + set .@size, getarraysize(getd("."+ .huntingquestcount + "_huntingmob")); + setd ("."+.huntingquestcount+"_huntingmob["+.@size+"]",getarg(.@argcount)); + setd ("."+.huntingquestcount+"_huntingmob["+(.@size+1)+"]",getarg(.@argcount+1)); + set .@argcount, .@argcount+2; + } + return; +} +} \ No newline at end of file -- cgit v1.2.3-60-g2f50