Jump to content

Question about pc.give_item


Recommended Posts

  • Premium

Hi, i would like make a quest which give player more then 200items.

 

So do you know someone how write it? Because when i use pc.give_item, system give only 200 items. and i cant write quest like that:

 

pc.give_item("27001", 200)

pc.give_item("27001", 200)

pc.give_item("27001", 200)

pc.give_item("27001", 200)

 

 

 

Because i need give 10.000 items. 

 

 

Thanks anyway

Link to comment
Share on other sites

  • Premium

Try this:

quest asd begin
	state start begin
		when NPCVnum.chat."I give you 10k item!..(woooooohooo)" begin
		say"Do you want 10k item?"
		local s = select("Yes", "No")
		if s == 1 then
			if pc.get_empty_inventory_count() >= 50 then
				for i=1, 50 do
					pc.give_item2(27001, 200)
				end
			else
				say("You need 50 empty slot in inventory!")
			end
		else
			say("See you later!")
		end
	end
end

It's give you 10k (50*200) item, if you have 50 empty slot in inventory! (theoretically :))

  • Love 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • 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.