Hey
I need quick help with my script..
For some reasons it always shows "You have been rewarded with scorpion king instead of "You alredy found scorpion king"
I do not have any experience in Lua thats why im asking for help
Script:
If im not wrong it used to work like this in TFS 0.4
Using TFS 1.3
I do not have any errors in Console
I need quick help with my script..
For some reasons it always shows "You have been rewarded with scorpion king instead of "You alredy found scorpion king"
I do not have any experience in Lua thats why im asking for help
Script:
LUA:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if player:getStorageValue(60001) == -1 then
player:addMount(21)
player:setStorageValue(60002, 1)
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'You have been rewarded with Scorpion King.')
else
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'You alredy found Scorpion King.')
end
return true
end
If im not wrong it used to work like this in TFS 0.4
Using TFS 1.3
I do not have any errors in Console