Let me get it you want to add a Forever Aol on your otAll in film, how to fix?
what path on tfs?Post your login.lua
Thanks/data/creaturescripts/scripts/
local config = {
loginMessage = getConfigValue('loginMessage'),
useFragHandler = getBooleanFromString(getConfigValue('useFragHandler'))
}
function onLogin(cid)
local loss = getConfigValue('deathLostPercent')
if(loss ~= nil) then
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
end
local accountManager = getPlayerAccountManager(cid)
if(accountManager == MANAGER_NONE) then
local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage
if(lastLogin > 0) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "."
else
str = str .. " Please choose your outfit."
doPlayerSendOutfitWindow(cid)
end
doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
elseif(accountManager == MANAGER_NAMELOCK) then
addEvent(valid(doCreatureSay), 500, cid, "Hello, it appears that your character has been locked for name violating rules, what new name would you like to have?", TALKTYPE_PRIVATE_NP, true, cid)
elseif(accountManager == MANAGER_ACCOUNT) then
addEvent(valid(doCreatureSay), 500, cid, "Hello, type {account} to manage your account. If you would like to start over, type {cancel} anywhere.", TALKTYPE_PRIVATE_NP, true, cid)
else
addEvent(valid(doCreatureSay), 500, cid, "Hello, type {account} to create an account or {recover} to recover an account.", TALKTYPE_PRIVATE_NP, true, cid)
end
if(not isPlayerGhost(cid)) then
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
end
registerCreatureEvent(cid, "Idle")
registerCreatureEvent(cid, "Mail")
if(getPlayerOperatingSystem(cid) >= CLIENTOS_OTCLIENT_LINUX) then
registerCreatureEvent(cid, "ExtendedOpcode")
end
registerCreatureEvent(cid, "ReportBug")
if(config.useFragHandler) then
registerCreatureEvent(cid, "SkullCheck")
end
registerCreatureEvent(cid, "GuildEvents")
registerCreatureEvent(cid, "AdvanceSave")
return true
end
Now post the deathLostPercent in config.lua.
deathLostPercent = 10
<?xml version="1.0" encoding="UTF-8"?>
<creaturescripts>
<event type="login" name="PlayerLogin" event="script" value="login.lua"/>
<event type="channelrequest" name="Ban_Type" event="script" value="ban/type.lua"/>
<event type="channelrequest" name="Ban_Action" event="script" value="ban/action.lua"/>
<event type="textedit" name="Ban_Finish" event="script" value="ban/finish.lua"/>
<event type="channeljoin" name="GuildEvents" event="script" value="guild.lua"/>
<event type="mailreceive" name="Mail" event="script" value="mail.lua"/>
<event type="reportbug" name="ReportBug" script="reportbug.lua"/>
<event type="advance" name="AdvanceSave" event="script" value="advancesave.lua"/>
<event type="think" name="Idle" event="script" value="idle.lua"/>
<event type="think" name="SkullCheck" event="script" value="skullcheck.lua"/>
<event type="extendedopcode" name="ExtendedOpcode" event="script" value="extendedopcode.lua"/>
</creaturescripts>
Doesn't look like 1.x there is no account manager in 1.xWhy dont you have the death event? https://github.com/otland/forgottenserver/blob/master/data/creaturescripts/creaturescripts.xml
Also, is this TFS 1.x?
According to a search in google, the aol in tfs 0.4 if created by an administrator e.g. god, gm or cm, this aol will have a charge amount of 100 so you might need to hop on your admin character and create a new aol but use this command instead /i amulet of loss, 1
Source : http://otland.net/threads/amulet-of-loss-not-working.130667/