Jump to content
  • 0

Hunting Quest


DomeSs

Question

Hi, can some one help me fix this quest? if i complete quest i did not get reward and did not get quest +1 😕 

thx for help 

 

 

quest lovecky begin
	state start begin
		when login begin
			pc.setqf("lovecky_ukol", 1)
			setstate(lovecky)
		end
	end
	state lovecky begin
		function lovecky_tabulka()
			local lovecky_tabulkaX = 
				{
					[1] 	=	{1,			15,		101,		50000,			114000,		1,		124000,		1,		134000,		1,		144000,		1,		154000,		1,		164000,		1},
					[2] 	=	{5,			20,		104,		100000,			114000,		1,		124000,		1,		134000,		1,		144000,		1,		154000,		1,		164000,		1},
					[3]	=	{10,		25,		110,		150000,			114000,		2,		124000,		2,		134000,		2,		144000,		2,		154000,		2,		164000,		2},
					[4]	=	{15,		30,		114,		200000,			114000,		2,		124000,		2,		134000,		2,		144000,		2,		154000,		2,		164000,		2},
					[5]	=	{20,		35,		302,		250000,			114000,		3,		124000,		3,		134000,		3,		144000,		3,		154000,		3,		164000,		3},
					[6]	=	{25,		40,		303,		300000,			114000,		3,		124000,		3,		134000,		3,		144000,		3,		154000,		3,		164000,		3},
					[7]	=	{30,		45,		404,		350000,			114000,		4,		124000,		4,		134000,		4,		144000,		4,		154000,		4,		164000,		4},
					[8]	=	{35,		50,		405,		400000,			114000,		4,		124000,		4,		134000,		4,		144000,		4,		154000,		4,		164000,		4},
					[9]	=	{40,		55,		634,		450000,			114000,		5,		124000,		5,		134000,		5,		144000,		5,		154000,		5,		164000,		5},
					[10]	=	{45,		60,		2301,		500000,			114000,		5,		124000,		5,		134000,		5,		144000,		5,		154000,		5,		164000,		5},
					[11]	=	{50,		65,		2303,		600000,			114000, 	6,		124000,		6,		134000,		6,		144000,		6,		154000,		6,		164000,		6},
					[12]	=	{55,		70,		2064,		650000,			114000,		6,		124000,		6,		134000,		6,		144000,		6,		154000,		6,		164000,		6},
					[13]	=	{60,		75,		2065,		700000,			114000,		7,		124000,		7,		134000,		7,		144000,		7,		154000,		7,		164000,		7},
					[14]	=	{65,		80,		2314,		750000,			114000,		7,		124000,		7,		134000,		7,		144000,		7,		154000,		7,		164000,		7},
					[15]	=	{70,		85,		2315,		800000,			114000,		8,		124000,		8,		134000,		8,		144000,		8,		154000,		8,		164000,		8},
					[16]	=	{75,		90,		2401,		850000,			114000,		8,		124000,		8,		134000,		8,		144000,		8,		154000,		8,		164000,		8},
					[17]	=	{80,		95,		2402,		900000,			114000,		9,		124000,		9,		134000,		9,		144000,		9,		154000,		9,		164000,		9},
					[18]	=	{85,		100,	2403,		950000,			114000,		9,		124000,		9,		134000,		9,		144000,		9,		154000,		9,		164000,		9},
					[19]	=	{90,		200,	4000,		1000000,		114000,		10,		124000,		10,		134000,		10,		144000,		10,		154000,		10,		164000,		10},
					[20]	=	{95,		200,	4001,		1050000,		114000,		10,		124000,		10,		134000,		10,		144000,		10,		154000,		10,		164000,		10},
					[21]	=	{100,		200,	4005,		1100000,		114000, 	11,		124000,		11,		134000,		11,		144000,		11,		154000,		11,		164000,		11},
					[22]	=	{105,		200,	4006,		1200000,		114000,		11,		124000,		11,		134000,		11,		144000,		11,		154000,		11,		164000,		11},
					[23]	=	{110,		200,	4007,		1300000,		114000,		12,		124000,		12,		134000,		12,		144000,		12,		154000,		12,		164000,		12},
					[24]	=	{115,		200,	4008,		1400000,		114000,		12,		124000,		12,		134000,		12,		144000,		12,		154000,		12,		164000,		12},
					[25]	=	{120,		200,	4010,		1500000,		114000,		13,		124000,		13,		134000,		13,		144000,		13,		154000,		13,		164000,		13},
					[26]	=	{125,		200,	4011,		1600000,		114000,		13,		124000,		13,		134000,		13,		144000,		13,		154000,		13,		164000,		13},
					[27]	=	{130,		200,	4012,		1700000,		114000,		14,		124000,		14,		134000,		14,		144000,		14,		154000,		14,		164000,		14},
					[28]	=	{135,		200,	4013,		1800000,		114000,		14,		124000,		14,		134000,		14,		144000,		14,		154000,		14,		164000,		14},
					[29]	=	{140,		200,	4015,		1900000,		114000,		15,		124000,		15,		134000,		15,		144000,		15,		154000,		15,		164000,		15},
					[30]	=	{145,		200,	4016,		2000000,		114000,		15,		124000,		15,		134000,		15,		144000,		15,		154000,		15,		164000,		15},
					[31]	=	{150,		400,	4017,		2100000,		114000, 	16,		124000,		16,		134000,		16,		144000,		16,		154000,		16,		164000,		16},
					[32]	=	{155,		400,	4018,		2200000,		114000,		16,		124000,		16,		134000,		16,		144000,		16,		154000,		16,		164000,		16},
					[33]	=	{160,		400,	4020,		2300000,		114000,		17,		124000,		17,		134000,		17,		144000,		17,		154000,		17,		164000,		17},
					[34]	=	{165,		400,	4021,		2400000,		114000,		17,		124000,		17,		134000,		17,		144000,		17,		154000,		17,		164000,		17},
					[35]	=	{170,		400,	4022,		2500000,		114000,		18,		124000,		18,		134000,		18,		144000,		18,		154000,		18,		164000,		18},
					[36]	=	{175,		400,	4023,		2600000,		114000,		18,		124000,		18,		134000,		18,		144000,		18,		154000,		18,		164000,		18},
					[37]	=	{180,		400,	4025,		2700000,		114000,		19,		124000,		19,		134000,		19,		144000,		19,		154000,		19,		164000,		19},
					[38]	=	{185,		400,	4026,		2800000,		114000,		19,		124000,		19,		134000,		19,		144000,		19,		154000,		19,		164000,		19},
					[39]	=	{190,		400,	4027,		2900000,		114000,		20,		124000,		20,		134000,		20,		144000,		20,		154000,		20,		164000,		20},
					[40]	=	{195,		400,	4028,		3000000,		114000,		20,		124000,		20,		134000,		20,		144000,		20,		154000,		20,		164000,		20},
					[41]	=	{200,		400,	4030,		3100000,		114000,		21,		124000,		21,		134000,		21,		144000,		21,		154000,		21,		164000,		21},
					[42]	=	{205,		700,	4031,		3200000,		114000,		21,		124000,		21,		134000,		21,		144000,		21,		154000,		21,		164000,		21},
					[43]	=	{210,		700,	4032,		3300000,		114000,		22,		124000,		22,		134000,		22,		144000,		22,		154000,		22,		164000,		22},
					[44]	=	{215,		700,	4033,		3300000,		114000,		22,		124000,		22,		134000,		22,		144000,		22,		154000,		22,		164000,		22},
					[45]	=	{220,		700,	4045,		3400000,		114000,		22,		124000,		22,		134000,		22,		144000,		22,		154000,		22,		164000,		22},
					[46]	=	{225,		700,	4046,		3400000,		114000,		22,		124000,		22,		134000,		22,		144000,		22,		154000,		22,		164000,		22},
					[47]	=	{230,		700,	4047,		3500000,		114000,		23,		124000,		23,		134000,		23,		144000,		23,		154000,		23,		164000,		23},
					[48]	=	{235,		700,	4048,		3500000,		114000,		23,		124000,		23,		134000,		23,		144000,		23,		154000,		23,		164000,		23},
					[49]	=	{240,		700,	4040,		3600000,		114000,		23,		124000,		23,		134000,		23,		144000,		23,		154000,		23,		164000,		23},
					[50]	=	{245,		700,	4041,		3600000,		114000,		23,		124000,		23,		134000,		23,		144000,		23,		154000,		23,		164000,		23},
					[51]	=	{250,		700,	4042,		3700000,		114000,		24,		124000,		24,		134000,		24,		144000,		24,		154000,		24,		164000,		24},
					[52]	=	{255,		700,	4043,		3700000,		114000,		24,		124000,		24,		134000,		24,		144000,		24,		154000,		24,		164000,		24},
					[53]	=	{260,		700,	4044,		3800000,		114000,		24,		124000,		24,		134000,		24,		144000,		24,		154000,		24,		164000,		24},
				}
			return lovecky_tabulkaX
		end
		when kill begin
			local tabulka = lovecky.lovecky_tabulka()
			local lovecky_ukol = pc.getqf("lovecky_ukol")
			local lovecky_pocet = table.getn(tabulka)
			if lovecky_ukol <= lovecky_pocet then
				if pc.level >= tabulka[lovecky_ukol][1] then
					if npc.get_race() == tabulka[lovecky_ukol][3] then
						pc.setqf("lovecky_pocet", pc.getqf("lovecky_pocet")+1)
						q.set_counter(mob_name(tabulka[lovecky_ukol][3]), tabulka[lovecky_ukol][2]-pc.getqf("lovecky_pocet"))
						if pc.getqf("lovecky_pocet") >= tabulka[lovecky_ukol][2] then
							setstate(lovecky_odmena)
						end
					end
				end
			end
		end
		when letter begin
			send_letter("Lovecký úkol - Zadání ")
		end
		when button or info begin
			local tabulka = lovecky.lovecky_tabulka()
			local lovecky_ukol = pc.getqf("lovecky_ukol")
			local lovecky_pocet = table.getn(tabulka)
			if lovecky_ukol <= lovecky_pocet then
				q.set_counter(mob_name(tabulka[lovecky_ukol][3]), tabulka[lovecky_ukol][2]-pc.getqf("lovecky_pocet"))
				
				say_title("[DELAY value;0]Lovecký úkol "..tabulka[lovecky_ukol][1].." Lv.")
				say("")
				say("Lovecký úkol :")
				if pc.level >= tabulka[lovecky_ukol][1] then
					say("Úkol level: "..tabulka[lovecky_ukol][1])
				else
					say("Úkol level: "..tabulka[lovecky_ukol][1])
				end
				say("Co musíš zabít? "..mob_name(tabulka[lovecky_ukol][3])..".")
				say("Počet: "..tabulka[lovecky_ukol][2])
				say("Zůstává: "..tabulka[lovecky_ukol][2] - pc.getqf("lovecky_pocet"))
				say("")
				say("")
				say(""..locale.logo.."")
				say("")
			else
				say("Již jsi dokončil veškeré lovecké úkoly. ")
				q.set_counter("Polowanie ukończone", 0)
			end
		end
	end
	state lovecky_odmena begin
		when letter begin
			send_letter("Lovecký úkol - Dokončeno ")
		end
		when button or info begin
			local tabulka = lovecky.lovecky_tabulka()
			local lovecky_ukol = pc.getqf("lovecky_ukol")
			local lovecky_pocet = table.getn(tabulka)
			
			say_title("Gratulujeme, dokončil jsi Lovecký úkol! ")
			say("")
			say("Lovecký úkol:")
			say("")
			say("Za ochotu, a způsobené škody získáváš: ")
			say("Yangů: "..(tabulka[lovecky_ukol][4]))
			say(item_name(tabulka[lovecky_ukol][5]).." "..tabulka[lovecky_ukol][6].." ks.")
			say(item_name(tabulka[lovecky_ukol][7]).." "..tabulka[lovecky_ukol][8].." ks.")
			say(item_name(tabulka[lovecky_ukol][9]).." "..tabulka[lovecky_ukol][10].." ks.")
			say(item_name(tabulka[lovecky_ukol][11]).." "..tabulka[lovecky_ukol][12].." ks.")
			say(item_name(tabulka[lovecky_ukol][13]).." "..tabulka[lovecky_ukol][14].." ks.")
			say(item_name(tabulka[lovecky_ukol][15]).." "..tabulka[lovecky_ukol][16].." ks.")
			say("")
			say(""..locale.logo.."")
			say("")
			pc.change_money(tabulka[lovecky_ukol][4])
			if tabulka[lovecky_ukol][5] > 0 then
				pc.give_item2(tabulka[lovecky_ukol][5], tabulka[lovecky_ukol][6])
			end
			if tabulka[lovecky_ukol][7] > 0 then
				pc.give_item2(tabulka[lovecky_ukol][7], tabulka[lovecky_ukol][8])
			end
			if tabulka[lovecky_ukol][9] > 0 then
				pc.give_item2(tabulka[lovecky_ukol][9], tabulka[lovecky_ukol][10])
			end
			if tabulka[lovecky_ukol][11] > 0 then
				pc.give_item2(tabulka[lovecky_ukol][11], tabulka[lovecky_ukol][12])
			end
			if tabulka[lovecky_ukol][13] > 0 then
				pc.give_item2(tabulka[lovecky_ukol][13], tabulka[lovecky_ukol][14])
			end
			if tabulka[lovecky_ukol][15] > 0 then
				pc.give_item2(tabulka[lovecky_ukol][15], tabulka[lovecky_ukol][16])
			end
			say("")
			pc.setqf( "lovecky_ukol", pc.getqf("lovecky_ukol") + 1 )
			pc.setqf("lovecky_pocet", 0)
			clear_letter()
			setstate(lovecky)
		end
	end
end

 

Link to post

1 answer to this question

Recommended Posts

Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.