ED
pedido

Meu Servidor Tem Um Erro,Quando Morre Nao Perde Loot

Por EduziTow, 21 de abr. de 2013 em Scripts

12
1.2k
EduziTowE
21 de abril de 2013 às 04:04

Eu Abaixei O Novo Venore 9.81 Para Mim Montar Um Servidor 9.81,Mais O Unico Erro E Que Quando Ele Morre,Nao Perde Item,Alguem Pode Me Ajudar

RoksasR
21 de abril de 2013 às 10:07

Amigo, é um servidor de War aquele, não perde level nem skills nem nada. Baixe um Global Full na lista de 9.x!

EduziTowE
21 de abril de 2013 às 11:22

Amigo, é um servidor de War aquele, não perde level nem skills nem nada. Baixe um Global Full na lista de 9.x!

Não Tem Como Tirar Do Venore?

RoksasR
21 de abril de 2013 às 11:25

Tem sim, no config.lua procure por:

 

worldType

 

Troque seu valor para:

 

worldType = "open"

 

E poste o creaturescripts.xml aqui.

EduziTowE
21 de abril de 2013 às 11:29
CreatureScript
RoksasR
21 de abril de 2013 às 11:40

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 Abril 21 por Roksas

EduziTowE
21 de abril de 2013 às 11:55

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

RoksasR
21 de abril de 2013 às 11:57

Me manda o login.lua da pasta data/creaturescripts/scripts tbm.

EduziTowE
21 de abril de 2013 às 12:05
Login.Lua
RoksasR
21 de abril de 2013 às 12:12

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 Abril 21 por Roksas

EduziTowE
21 de abril de 2013 às 12:23

Ai Vlw Rep Mais

RoksasR
21 de abril de 2013 às 12:25

Espero que tenha ajudado, tópico movido para seção de resolvidos.

 

Futuras dúvidas e erros postar aqui, bye.