Jump to content

Wakabayashi

Members
  • Posts

    9
  • Joined

  • Last visited

Posts posted by Wakabayashi

  1. Hi rA Community.

    I have the problem that I can change the items in Lucky Roullette, but the items are not visually displayed or changed. I have changed the IDs in the db_roulette SQL and get the prices I have set there. Unfortunately, I do not visually see any change in roulette.

    Do I have to change anything in the client? If so where exactly?

    It would be really nice if someone could help me with my problem ..

  2. Ow.. this is great. Can I add more maps like this?

    getmapxy(@m$,@x,@y,0,rid2name(@aid[@menu]));
    		if (@m$ == "prontera","morocc","izlude"){
    			mes "I can't be teleport you to your friend's location!";
              		close;
           		}
    		warp @m$,@x,@y;

     

     

  3. Hello rAthena Community. 

    I would like to ask for some help.. is it possible to add a map restriction?

    This is the  Friendwarper script:

    prontera,167,199,6	script	Friend Warper	461,{
    	deletearray .@aid[0],128;
    	deletearray @aid[0],128;
    	set @j,0;
    	set @select$,"";
    	query_sql "SELECT `friend_account` FROM `friends` WHERE `char_id` = "+getcharid(0)+"",.@aid;
    	set .@num,getarraysize(.@aid);
    	for(set .@i,0;.@i<.@num;set .@i,.@i+1)
    		if(isloggedin(.@aid[.@i]))
    		{
    			set @aid[@j],.@aid[.@i];
    			set @j,@j+1;
    			set @select$,@select$+":"+rid2name(.@aid[.@i]);
    		}
    	set @menu,select(@select$)-2;
    	if(isloggedin(@aid[@menu]))
    	{
    		getmapxy(@m$,@x,@y,0,rid2name(@aid[@menu]));
    		warp @m$,@x,@y;
    		set @m$,"";
    		set @x,0;
    		set @y,0;
    		set @j,0;
    		set @select$,"";
    		deletearray @aid[0],128;
    	}else
    		mes "He isn't online.";
    	close;
    }

    Thanks for your time!

  4. Hi there. ^^

    I need a IP Checker for this Quest Board Script. Is there a posibility to add something like this? It would be very nice if you could help me with this..

     

    //===== rAthena Script =======================================
    //= tr0n's Questboard
    //===== By: ==================================================
    //= tr0n
    //===== Current Version: =====================================
    //= 1.6.5
    //===== 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
    // 1.4.4 Added Quest delay
    // 1.5.4 Added repeatable Quests
    // 1.6.4 Added party support
    // 1.6.5 Bug fixes for party support
    //============================================================
    prontera,147,172,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;
    	}
    
    	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$);
    	if(.quest_repeat == 1){
    		if(gettimetick(2) < getd(.@selection + "_collection_delay")){
    			set .@time_left, getd(.@selection + "_collection_delay")-gettimetick(2);
    			mes "[^FF7700Questboard^000000]";
    			if(.@time_left < 60) mes "You have to wait ^0000FF"+.@time_left+" seconds^000000 to do this quest again.";
    			if(.@time_left < 3600) mes "You have to wait ^0000FF"+.@time_left/60+" minutes^000000 to do this quest again.";
    			mes "You have to wait ^0000FF"+.@time_left/60/60+" hours^000000 to do this quest again.";
    			close;
    		}
    	}
    	else{
    		if(getd(.@selection + "_collection_repeat") == 1){
    			mes "[^FF7700Questboard^000000]";
    			mes "You already did this quest.";
    			mes "Please choose another one.";
    			close;
    		}
    	}
    	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$);
    	if(.quest_repeat == 1){
    		if(gettimetick(2) < getd(.@selection + "_hunting_delay")){
    			set .@time_left, getd(.@selection + "_hunting_delay")-gettimetick(2);
    			mes "[^FF7700Questboard^000000]";
    			if(.@time_left < 60) mes "You have to wait ^0000FF"+.@time_left+" seconds^000000 to do this quest again.";
    			if(.@time_left < 3600) mes "You have to wait ^0000FF"+.@time_left/60+" minutes^000000 to do this quest again.";
    			mes "You have to wait ^0000FF"+.@time_left/60/60+" hours^000000 to do this quest again.";
    			close;
    		}
    	}
    	else{
    		if(getd(.@selection + "_hunting_repeat") == 1){
    			mes "[^FF7700Questboard^000000]";
    			mes "You already did this quest.";
    			mes "Please choose another one.";
    			close;
    		}
    	}
    	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<getarraysize(getd("."+currentquest$+"_collectionitem"))){
    		mes "[^FF7700Questboard^000000]";
    		mes "You don't have everything.";
    		close;
    	}
    	for( set .@delcount,0; .@delcount < getarraysize(getd("."+currentquest$+"_collectionitem")); set .@delcount,.@delcount+2){
    		delitem getd("."+currentquest$+"_collectionitem["+.@delcount+"]"),getd("."+currentquest$+"_collectionitem["+(.@delcount+1)+"]");
    	}
    	mes "[^FF7700Questboard^000000]";
    	mes "Congratulation! Here is your Reward.";
    	if(getd("." +currentquest$+"_collectionprize")!=0) getitem(getd("." +currentquest$+"_collectionprize"),getd("." +currentquest$+"_collectionamount"));
    	set Zeny,Zeny+getd("." +currentquest$+"_collectionzeny");
    	getexp getd("." +currentquest$+"_collectionexp["+0+"]"),getd("." +currentquest$+"_collectionexp["+1+"]");
    	setd(currentquest$ + "_collection_delay"),gettimetick(2)+.quest_delay;
    	setd(currentquest$ + "_collection_repeat"),1;
    	set currentquest$, "";
    	set c_run, 0;
    	close;
    	
    L_checkmobs:
    	set .@goal, (getarraysize(getd("."+currentquest$+"_huntingmob"))/2);
    	for(set .@i, 1; .@i < getarraysize(getd("."+currentquest$+"_huntingmob")); set .@i,.@i+2){
    		set .@currentmob, getd("."+currentquest$+"_huntingmob["+(.@i-1)+"]");
    		if(getd(currentquest$+"_"+.@currentmob+"_"+.@i+"_killcount")==getd("."+currentquest$+"_huntingmob["+.@i+"]")){
    			set .@checkmonster, .@checkmonster+1;
    			if(.@checkmonster==.@goal){
    				goto L_checkmobs2;
    			}
    			continue;
    		}
    		goto L_checkmobs2;
    	}
    	
    L_checkmobs2:
    	if(.@checkmonster<.@goal){
    		mes "[^FF7700Questboard^000000]";
    		mes "You didn't kill everything.";
    		close;
    	}
    	mes "[^FF7700Questboard^000000]";
    	mes "Congratulation! Here is your Reward.";
    	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);
    	}
    	if(getd("." +currentquest$+"_huntingprize")!=0) getitem(getd("." +currentquest$+"_huntingprize"),getd("." +currentquest$+"_huntingamount"));
    	set Zeny, Zeny+getd("." +currentquest$+"_huntingzeny");
    	getexp getd("." +currentquest$+"_huntingexp["+0+"]"),getd("." +currentquest$+"_huntingexp["+1+"]");
    	setd(currentquest$ + "_hunting_delay"),gettimetick(2)+.quest_delay;
    	setd(currentquest$ + "_hunting_repeat"),1;
    	set currentquest$, "";
    	set h_run, 0;
    	close;
    
    OnNPCKillEvent:
    	if(h_run!=1) end;
    	for(set .@i, 1; .@i < getarraysize(getd("."+currentquest$+"_huntingmob")); set .@i,.@i+2){
    		if(killedrid==getd("."+currentquest$+"_huntingmob["+(.@i-1)+"]")){
    			set .@currentmob, getd("."+currentquest$+"_huntingmob["+(.@i-1)+"]");
    			if(getd(currentquest$+"_"+.@currentmob+"_"+.@i+"_killcount")>=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+"]")+")";
    			if(getcharid(1) != 0 && .party_support == 1){
    				getmapxy(.@map1$,.@x1,.@y1,0);
    				set .@killerid, getcharid(3);
    				set .@currentquest$, currentquest$;
    				getpartymember getcharid(1),1;
    				getpartymember getcharid(1),2;
    				for(set .@j, 0; .@j < $@partymembercount; .@j++){
    					if(isloggedin($@partymemberaid[.@j], $@partymembercid[.@j])){
    						if(attachrid($@partymemberaid[.@j])){
    							if(h_run==1 && getcharid(3) != .@killerid && .@currentquest$ == currentquest$ && HP > 0){
    								getmapxy(.@map2$,.@x2,.@y2,0);
    								if(.@map1$ == .@map2$ && distance(.@x1,.@y1,.@x2,.@y2) < .party_range){
    									if(getd(.@currentquest$+"_"+.@currentmob+"_"+.@i+"_killcount")<getd("."+.@currentquest$+"_huntingmob["+.@i+"]"))
    									{
    										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+"]")+")";
    									}
    								}
    							}
    						}
    					}
    				}
    				attachrid(.@killerid);
    			}
    		}
    		continue;
    	}
    	end;
    	
    OnInit:
    
    	function AddCollection;
    	function AddHunting;
    
    	//Activate/Deactivate quest categories (1 - activated, 0 - deactivated)
    	set .collection, 1;
    	set .hunting, 1;
    	
    	//Quest Delay (seconds)
    	//24 hours = 86400 seconds
    	set .quest_delay, 86400;
    	
    	//Activate/Deactivate repeatable quests (1 - activated, 0 - deactivated)
    	set .quest_repeat, 1;
    	
    	//Activate/Deactivate party support(1 - activated, 0 - deactivated)
    	set .party_support, 1;
    	
    	//Max range for party support (+- x & y coordinations)
    	set .party_range, 25;
    	
    	//Checks if quests are loaded (prevents out of index)
    	if(.questsloaded==1) end;
    	set .questsloaded, 1;
    	
    	//Add Collection Quests here (You can add as many required items as you want)
    	//AddCollection("<Quest Name>",<Min Lvl>,<Max Lvl>,<Reward|Item ID>,<Reward|Item Amount>,<Zeny Reward>,<Base EXP>,<Job EXP>,<Item ID>,<Item Amount>,...);
    	AddCollection("Collect the Jellopy.",1,175,6732,10,5000,132,26,909,200);
    	AddCollection("Shell",5,175,6732,10,5000,768,153,935,100);
    	AddCollection("Bee Sting",10,175,6732,10,10000,1320,264,939,100);
    	AddCollection("Pointed Scale",15,175,6732,10,10000,1764,352,906,100);
    	AddCollection("Worm Peeling",20,175,6732,10,15000,2522,504,955,100);
    	AddCollection("Porcupine Quill",25,175,6732,10,15000,3692,738,1027,100);
    	AddCollection("Tentacle",30,175,6732,10,20000,4940,988,962,100);
    	AddCollection("Yoyo Tail",35,175,6732,10,20000,6240,1248,942,100);
    	AddCollection("Lantern",40,175,6732,10,25000,8820,1764,1041,100);
    	AddCollection("Wolf Claw",45,175,6732,10,25000,10640,2128,920,100);
    	AddCollection("Orc Claw",50,175,6732,10,30000,13720,2744,1043,100);
    	AddCollection("Rotten Bandage",55,175,6732,10,30000,16520,3304,930,100);
    	AddCollection("Mantis Scythe ",60,175,6732,10,35000,20700,4140,1031,100);
    	AddCollection("Black Hair",65,175,6732,10,35000,25200,5040,1020,100);
    	AddCollection("Horrendous Mouth",70,175,6732,10,40000,38400,7680,958,100);
    	AddCollection("Bug Leg",75,175,6732,10,40000,54000,10800,1042,100);
    	AddCollection("Grit",80,175,6732,10,45000,83200,16640,1056,100);
    	AddCollection("Maneater Root ",85,175,6732,10,45000,176000,35200,1033,100);
    	AddCollection("Golden Hair ",90,175,6732,10,50000,340000,68000,1060,100);
    	AddCollection("Brigan",95,175,6732,10,50000,816000,163200,7054,100);
    	AddCollection("Tongue",100,175,6732,10,55000,1480000,296000,1015,100);
    	AddCollection("Wooden Gnarl",105,175,6732,10,55000,1922000,384400,7222,100);
    	AddCollection("Burning Heart",110,175,6732,10,60000,2586000,517200,7097,100);
    	AddCollection("Rusty Screw",115,175,6732,10,60000,3084000,616800,7317,100);
    	AddCollection("Used Iron Plate",120,175,6732,10,65000,3804000,760800,7319,100);
    	AddCollection("Bloody Rune",125,175,6732,10,65000,5058000,1011600,7563,100);
    	AddCollection("Suspicious Hat",130,175,6732,10,70000,6336000,1267200,1769,100);
    	AddCollection("White Spider Limb",135,175,6732,10,70000,7978000,1595600,6325,100);
    	AddCollection("Antler Helmet",140,175,6732,10,75000,10082000,2016400,6322,100);
    	AddCollection("Rakehorn Helm",145,175,6732,10,75000,13224000,2644800,6321,100);
    	AddCollection("Research Chart",150,175,6732,10,80000,19600000,3920000,7347,100);
    	
    	//Add Hunting Quests here (You can add as many required mobs as you want)
    	//AddHunting("<Quest Name>",<Min Lvl>,<Max Lvl>,<Reward|Item ID>,<Reward|Item Amount>,<Zeny Reward>,<Base EXP>,<Job EXP>,<Monster ID>,<Monster Amount>,...);
    	AddHunting("Chase the rabbit!",1,175,6732,10,5000,132,26,1063,100);
    	AddHunting("Are you ready to rock?",5,175,6732,10,5000,768,153,1052,100);
    	AddHunting("Butterfly Effect",10,175,6732,10,10000,1320,264,1018,100);
    	AddHunting("Zombie Apocalypse",15,175,6732,10,10000,1764,352,1015,100);
    	AddHunting("Stairway to Poring Heaven.",20,175,6732,10,15000,2522,504,1031,100);
    	AddHunting("Want some Cookie?",25,175,6732,10,15000,3692,738,1265,100);
    	AddHunting("Quak!",30,175,6732,10,20000,4940,988,1034,100);
    	AddHunting("Don't let them hit you.",35,175,6732,10,20000,4940,988,1016,100);
    	AddHunting("Dig some holes.",40,175,6732,10,25000,6240,1248,1127,100);
    	AddHunting("Flora and fauna.",45,175,6732,10,25000,8820,1764,1118,100);
    	AddHunting("Who controls the spice?",50,175,6732,10,30000,10640,2128,1165,100);
    	AddHunting("Jakk the ripper.",55,175,6732,10,30000,13720,2744,1130,100);
    	AddHunting("Winner winner chicken dinner!",60,175,6732,10,35000,16520,3304,1369,100);
    	AddHunting("Row row row your goat.",65,175,6732,10,35000,20700,4140,1372,100);
    	AddHunting("Look into her eyes!",70,175,6732,10,40000,25200,5040,1376,100);
    	AddHunting("Puppetmaster",75,175,6732,10,40000,38400,7680,1143,100);
    	AddHunting("Rock'N'Roll!",80,175,6732,10,45000,54000,10800,1784,100);
    	AddHunting("Snake?Snake!?Snaaaaaake!",85,175,6732,10,45000,83200,16640,1030,100);
    	AddHunting("What are they deleting?",90,175,6732,10,50000,176000,35200,1385,100);
    	AddHunting("Healthy Minerals.",95,175,6732,10,50000,340000,68000,1614,100);
    	AddHunting("Cute cold fluff.",100,175,6732,10,55000,816000,163200,1776,100);
    	AddHunting("Old mans wandering.",105,175,6732,10,55000,1480000,296000,1208,100);
    	AddHunting("Drop it like it's hot.",110,175,6732,10,60000,1922000,384400,1836,100);
    	AddHunting("Dungeons and dragons.",115,175,6732,10,60000,3084000,616800,1713,100);
    	AddHunting("Holy shit!",120,175,6732,10,65000,3804000,760800,1772,100);
    	AddHunting("Imperator",125,175,6732,10,65000,5058000,1011600,1837,100);
    	AddHunting("Womens curse.",130,175,6732,10,70000,6336000,1267200,1867,100);
    	AddHunting("Highway to Hell ",135,175,6732,10,70000,7978000,1595600,1831,100);
    	AddHunting("A bug's life.",140,175,6732,10,75000,10082000,2016400,1772,100);
    	AddHunting("Pope's last hope.",145,175,6732,10,75000,13224000,2644800,1769,100);
    	AddHunting("Burn baby burn!",150,175,6732,10,80000,19600000,3920000,1833,100);
    	
    	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;
    }
    }

     

×
×
  • Create New...