• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

TFS 1.X+ Premium Time nekiro 1.5 7.72

bpm91

Intermediate OT User
Joined
May 23, 2019
Messages
928
Solutions
7
Reaction score
127
Location
Brazil
YouTube
caruniawikibr
hello guys, I would like to know, how did you do to release item that adds premium time in nekiro's tfs 1.5. because I'm trying, but it doesn't recognize.

Premy scroll
Lua:
--Config--
local Scrolls =
{
[13447] = {14, "You got 14 days premium."}
}
local DaysLimit = 360 -- Limite de dias premium
--Config end --
 
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(Scrolls[item.itemid] ~= nil) then
if(getPlayerPremiumDays(cid) + Scrolls[item.itemid][1]) >= DaysLimit then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You can't buy more"..DaysLimit.." days premium.")
else
doPlayerAddPremiumDays(cid, Scrolls[item.itemid][1])
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, Scrolls[item.itemid][2])
doRemoveItem(item.uid, 1)
doSendMagicEffect(getCreaturePosition(cid), 14)
end
return TRUE
end
return FALSE
end
Post automatically merged:

local premiumScroll = Action()

function premiumScroll.onUse(player, item, fromPosition, target, toPosition, isHotkey)
item:remove(1)
player:addPremiumDays(30)
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You have activated your 30 day premium time, relog to make it effective.")
player:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
return true
end

premiumScroll:id(13447)
premiumScroll:register()

i solved guys, sorry <3
 
Last edited:
Back
Top