vexler222
Active Member
- Joined
- Apr 22, 2012
- Messages
- 714
- Solutions
- 15
- Reaction score
- 46
hi, can someone help me with this script? I make it, and it showing popup, but when im look on others items like floor, it showing me popup :/ How to set default description for others items without actionid?
Code:
local test_sign = EventCallback
function test_sign.onLook(player, item, position, distance, description)
if isPlayer(item) or isMonster(item) then
return description
end
if player:getStorageValue(121212) >= os.time() then
player:langcc("Too fast!", "Za szybko!")
return true
end
if item:getId() == 1431 or item:getId() == 1429 then
player:langred("-[ Sign ]-\n\nClick on the sign to get more informations.", "-[ Znak ]-\n\nKliknij na znak by otrzymac wiecej informacji.")
return true
end
if player:getStorageValue(language_storage) == 1 then
if item:getActionId() == 64900 then
text = "-=-=[ Test English ]=-=-\n\n Blablablablabla"
end
else
if item:getActionId() == 64900 then
text = "-=-=[ Test Polish ]=-=-\n\n Blablablablabla"
end
player:popupFYI(text)
player:setStorageValue(121212, os.time() + 10)
return true
end
end
test_sign:register()