SOLVED
OTServ 0.6.4 had doPlayerAddPremiumDays hardcoded, it was just my base script that was broken. Check out WibbenZ's scripts below if you have a persistent problem, maybe it'll help you.
I have a problem with my functions.lua.
Got it working but after some tweaking it broke,
when I reverted back it wouldn't work either. (which is really wierd)
I am using the [8.6] OTServ 0.6.4 STABLE distro for my current project.
Unfortunately this distro does not come with doPlayerAddPremiumDays implemented.
functions.lua
LUA:
function doPlayerAddPremiumDays(cid, count)
if isPlayer(cid) == true then
return doPlayerAddPremiumDays(cid, count)
end
return false
end
function doPlayerRemovePremiumDays(cid, count)
if isPlayer(cid) == true and count > 0 then
return doPlayerAddPremiumDays(cid, count)
end
return false
end
This code does not work at this time, I don't even know what I am doing, so I would really appreciate some help to learn what's wrong and to fix it.
Last edited by a moderator: