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

Destroy item Dropdialog


likeabeast

Question

Hello devs,

After i installed Destroy item (Dropdialog) source , client , and i uploaded the quest to server , then got this problem:
k9WgchU.png

Kfif8Nq.png

After i hit OK, nothing happens (without quest the window doesn't appear)


Here is the quest:
 

quest stergeitem begin
	state start begin
		function ItemZerstoeren(slot, vnum)
			chat("Item-ul a fost distrus cu success.")
			item.select_cell(slot)
			item.remove_stack()
		end
		when letter begin
			cmdchat("ITEMZER QID|"..q.getcurrentquestindex())
		end
		
		when button or info begin
			cmdchat("getinputbegin")
			local cmd = split(input(cmdchat("ITEMZER SELECT|")), "|")
			cmdchat("getinputend")
			
			if cmd[1] == "DELETE" then
				itemmuell.ItemZerstoeren(tonumber(cmd[2]), tonumber(cmd[3]))
			end
		end
	end
end

 

Link to comment
Share on other sites

  • Answers 5
  • Created
  • Last Reply

Top Posters For This Question

5 answers to this question

Recommended Posts

  • 0

i think that you have to write "DELETE"

 

when button or info begin
			cmdchat("getinputbegin")
			local cmd = split(input(cmdchat("ITEMZER SELECT|")), "|")
			cmdchat("getinputend")
			
			if cmd[1] == "DELETE" then
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
  • Recently Browsing   0 members

    • No registered users viewing this page.


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.