Ir para conteúdo
  • 0

Meu Servidor Tem Um Erro,Quando Morre Nao Perde Loot


EduziTow

Pergunta

11 respostass a esta questão

Posts Recomendados

  • 0

Tem sim, no config.lua procure por:

 

worldType

 

Troque seu valor para:

 

worldType = "open"

 

E poste o creaturescripts.xml aqui.

Link para o comentário
Compartilhar em outros sites

  • 0

Ok, abre ele com o bloco de notas, apague tudo que estiver dentro e cole:

 

 

<?xml version="1.0" encoding="UTF-8"?>
<creaturescripts>

<event type="login" name="PlayerLogin" event="script" value="login.lua"/>
<event type="login" name="Grouplogin" event="script" value="Grouplogin.lua"/>			
<event type="reportbug" name="SaveReportBug" script="reportbug.lua"/>
<event type="think" name="SkullCheck" event="script" value="skullcheck.lua"/>
<event type="think" name="Idle" event="script" value="idle.lua"/>
</creaturescripts>

 

Editado por Roksas
Link para o comentário
Compartilhar em outros sites

  • 0

Ok, abre ele com o bloco de notas, apague tudo que estiver dentro e cole:

 

 

<?xml version="1.0" encoding="UTF-8"?>
<creaturescripts>

<event type="login" name="PlayerLogin" event="script" value="login.lua"/>
<event type="login" name="Grouplogin" event="script" value="Grouplogin.lua"/>			
<event type="reportbug" name="SaveReportBug" script="reportbug.lua"/>
<event type="think" name="SkullCheck" event="script" value="skullcheck.lua"/>
<event type="think" name="Idle" event="script" value="idle.lua"/>
</creaturescripts>

 

Ainda Nao Perde

Link para o comentário
Compartilhar em outros sites

  • 0

Troque por isso, e reinicie o servidor:

 

 

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
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your character has been namelocked, what would you like as your new name?")
elseif(accountManager == MANAGER_ACCOUNT) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to manage your account and if you want to start over then type 'cancel'.")
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to create an account or type 'recover' to recover an account.")
end

if(not isPlayerGhost(cid)) then
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
end

 registerCreatureEvent(cid, "kill")
 registerCreatureEvent(cid, "PlayerLogout")



registerCreatureEvent(cid, "Idle")
if(config.useFragHandler) then
registerCreatureEvent(cid, "SkullCheck")
end

registerCreatureEvent(cid, "ReportBug")
return true
end

 

Editado por Roksas
Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...