Drop Quest

02/22/2018 12:19 TenKubca#1
Hi guys, I`m sorry that i post this here, i have no ideea where to post it tho, but, if you can, move it to it right forum, so.. Uh.. I have a little bit of problem with this quest, i mean, this quest gives the killer 1 random item from that list, what i want to do? Well, i want to give 2 items insead of one.. Can someone help me?

Code:
quest pvpkills begin
	state start begin
		when kill with npc.is_pc() and pc.get_level() >= 250 and pc.get_map_index() == "72" begin
			local items = {--vnum, count
				{44040, 1},
				{44047, 1},
				{4047, 1},
				{4040, 1}
			}
			if number(1, 100) <= 100 then
				local rand = number(2, table.getn(items))
				pc.give_item2(items[rand][1], items[rand][2])
			end
		end
	end
end
02/22/2018 12:21 andii#2
We have a thread for questions like yours
[Only registered and activated users can see links. Click Here To Register...]
#closed
#moved