Hi, otland, im using the forgotten server 1.2
How add this code
inside this code? is it possible? someone can help me ?
thanks
How add this code
Lua:
player:getVocation():getId() ~= 0 and player:getVocation():getId() < 5 and player:getStorageValue(30018) == 1 then
player:setVocation(player:getVocation():getId() + 4)
inside this code? is it possible? someone can help me ?
Lua:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
player:addPremiumDays(30)
player:sendTextMessage(MESSAGE_INFO_DESCR, "premium account.")
player:getPosition():sendMagicEffect(CONST_ME_MAGIC_GREEN)
item:remove(1)
return true
end
thanks