dunnish
New Member
- Joined
- Jun 18, 2009
- Messages
- 268
- Solutions
- 1
- Reaction score
- 2
Hello!
i got this code but its not working for tfs 0.4
i got this code but its not working for tfs 0.4
Lua:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if target.actionid ~= 62378 then
return false
end
if player:getStorageValue(Storage.DeeperBanutaShortcut) ~= 1 then
player:removeItem(10523, 1)
player:setStorageValue(Storage.DeeperBanutaShortcut, 1)
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You discovered a secret tunnel.")
else
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You have already discovered this secret.")
end
return true
end