heyo
as the title says
people does not get the item for some reason
I do not have any errors + I tried to fix it by myself but at this point im kinda lost now
what im doing wrong?
a explain would be awesome what I did wrong ( Trying to learn )
Script:
as the title says
people does not get the item for some reason
I do not have any errors + I tried to fix it by myself but at this point im kinda lost now
what im doing wrong?
a explain would be awesome what I did wrong ( Trying to learn )
Script:
Lua:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if player:getStorageValue(52003) == -1 then
player:setStorageValue(52003, 1)
elseif
player:getVocation() == 1 then
player:addItem(7958, 1)
elseif
player:getVocation() == 2 then
player:addItem(2184, 1)
elseif
player:getVocation() == 3 then
player:addItem(7438, 1)
elseif
player:getVocation() == 4 then
player:addItem(2451, 1)
else
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'You alredy got your reward.')
player:getPosition():sendMagicEffect(3)
end
return true
end