Jump to content
×
×
  • Create New...
  • 0

Question about pc.give_item


Necro

Question

  • 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

6 answers to this question

Recommended Posts

  • 0
  • 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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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.