Ok, I found this script:
and I installed this way:
\data\creaturescripts\scripts=>teleportfree.lua
and into
craturescripts.xml
I added:
but when i log, dont happen nothing.
both with premium player that i set premdays to 0 and with free players.
What I'm missing?
Hope someone be able to help me!!
=)
LUA:
function onLogin(cid)
local templePos = {x = 834, y = 185, z = 6}
local freetownid = 5
if isPremium(cid) == FALSE and getPlayerStorageValue(cid, 1234) == TRUE then
setPlayerStorageValue(cid, 1234, -1)
doTeleportThing(cid, templePos)
doPlayerSetTown(cid, freetownid)
doPlayerSendTextMessage(cid, 22, "Your Premium has been expired")
elseif isPremium(cid) == TRUE and getPlayerStorageValue(cid, 1234) == FALSE then
setPlayerStorageValue(cid, 1234, TRUE)
end
return TRUE
end
and I installed this way:
\data\creaturescripts\scripts=>teleportfree.lua
and into
craturescripts.xml
I added:
LUA:
<event type="login" name="TeleportFACC" event="script" value="teleportfree.lua"/>
but when i log, dont happen nothing.
both with premium player that i set premdays to 0 and with free players.
What I'm missing?
Hope someone be able to help me!!
=)
Last edited: