Jump to content
  • 0

Item com comando


Satyrus
 Share

Question

1 answer to this question

Recommended Posts

  • 0

Exemplo:

 

data > actions > actions.xml:

 

<action itemid="9020" event="script" value="itemSellAll.lua"/>

 

 

actions > scripts > itemSellAll.lua:

 

function onUse(player, item)
	local itemID = 9020 -- ID do item que o player vai clicar
	local removerAposUsar = true -- O item vai sumir da backpack após o player clicar nele?

	if item.itemid == itemID then 
		if removerAposUsar == true then
			item:remove(1)
		end

		-- CONFIGURE AQUI O SCRIPT do comando !sellall --

	end
	return true
end

 

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
 Share

×
×
  • Create New...