nefinoo
Carnage.flv
If you could help me with an npc that sells exercise weapons and send them to the store inbox? i am using tfs 1.3 master
You're kinda close. xDLUA:storei = player:addItem(2598, 1) if storei then storei:setStoreItem(true) end
you just need to change item ID and add charges below line 3
Try this. It should work.LUA:function onUse(player, item, fromPosition, itemEx, toPosition) storei = player:addItem(31208, 1) if storei then storei:setStoreItem(true) end return true end
I use this to use in a lever to see if works and not works, send the sword on my backpack
local storeInbox = player:getStoreInbox()
if storeInbox then
local item = Game.createItem(2598, 1)
if item then
item:setStoreItem(true)
storeInbox:addItemEx(item)...
I am using tfs 1.3 master, but not have store ingameDo you have any script, thats already adds an item to the store inbox, so I can see how this is handeled in your distro?
LUA:storei = player:addItem(2598, 1) if storei then storei:setStoreItem(true) end
you just need to change item ID and add charges below line 3
function onUse(player, item, fromPosition, itemEx, toPosition)
storei = player:addItem(31208, 1)
if storei then
storei:setStoreItem(true)
end
return true
end
You're kinda close. xDLUA:storei = player:addItem(2598, 1) if storei then storei:setStoreItem(true) end
you just need to change item ID and add charges below line 3
Try this. It should work.LUA:function onUse(player, item, fromPosition, itemEx, toPosition) storei = player:addItem(31208, 1) if storei then storei:setStoreItem(true) end return true end
I use this to use in a lever to see if works and not works, send the sword on my backpack
local storeInbox = player:getStoreInbox()
if storeInbox then
local item = Game.createItem(2598, 1)
if item then
item:setStoreItem(true)
storeInbox:addItemEx(item)
item:setStoreItem(false) -- this allows the item to be moved out of the storeInbox. Remove this line if you don't want that
end
end