Ir para conteúdo
  • 0

[Erro] Char nascendo sem items gesior


DavyziinC

Pergunta

Boa noite! Pois eu estou com um erro, do nada o account manager parou de fica com items quando player cria char vem sem items já mudei firstitems , o outro erro e quando player cria conta no site da templo position alguém me ajuda?

Link para o comentário
Compartilhar em outros sites

8 respostass a esta questão

Posts Recomendados

  • 0

Tente esse script no firstitems.xml

function onLogin(cid)
if getPlayerGroupId(cid) == 1 and getPlayerStorageValue(cid, 50000) == -1 then
if isSorcerer(cid) then
local bag = doPlayerAddItem(cid, 9774, 1)

doAddContainerItem(bag, 2120, 1)
doAddContainerItem(bag, 2554, 1)
doAddContainerItem(bag, 2152, 20)

doPlayerAddItem(cid, 2525, 1)
doPlayerAddItem(cid, 2190, 1)
doPlayerAddItem(cid, 2463, 1)
doPlayerAddItem(cid, 2457, 1)
doPlayerAddItem(cid, 2647, 1)
doPlayerAddItem(cid, 2643, 1)

setPlayerStorageValue(cid, 50000, 1)

elseif isDruid(cid) then
local bag = doPlayerAddItem(cid, 9774, 1)
doAddContainerItem(bag, 2120, 1)
doAddContainerItem(bag, 2554, 1)
doAddContainerItem(bag, 2152, 20)

doPlayerAddItem(cid, 2525, 1)
doPlayerAddItem(cid, 2182, 1)
doPlayerAddItem(cid, 2463, 1)
doPlayerAddItem(cid, 2457, 1)
doPlayerAddItem(cid, 2647, 1)
doPlayerAddItem(cid, 2643, 1)

setPlayerStorageValue(cid, 50000, 1)

elseif isPaladin(cid) then
local bag = doPlayerAddItem(cid, 9774, 1)
doAddContainerItem(bag, 2120, 1)
doAddContainerItem(bag, 2554, 1)
doAddContainerItem(bag, 2152, 20)

doPlayerAddItem(cid, 2389, 3)
doPlayerAddItem(cid, 2525, 1)
doPlayerAddItem(cid, 2457, 1)
doPlayerAddItem(cid, 2643, 1)
doPlayerAddItem(cid, 2647, 1)
doPlayerAddItem(cid, 2463, 1)
setPlayerStorageValue(cid, 50000, 1)

elseif isKnight(cid) then
local bag = doPlayerAddItem(cid, 9774, 1)
doAddContainerItem(bag, 2120, 1)
doAddContainerItem(bag, 2554, 1)
doAddContainerItem(bag, 2152, 20)
doAddContainerItem(bag, 8601, 1)
doAddContainerItem(bag, 2383, 1)
doAddContainerItem(bag, 2417, 1) 


doPlayerAddItem(cid, 2525, 1)
doPlayerAddItem(cid, 2463, 1)
doPlayerAddItem(cid, 2457, 1)
doPlayerAddItem(cid, 2647, 1)
doPlayerAddItem(cid, 2643, 1)

setPlayerStorageValue(cid, 50000, 1)
end
end
return TRUE
end

e após verifique se tem essa linha no creaturescripts.xml

<event type="login" name="FirstItems" event="script" value="firstitems.lua"/>
Link para o comentário
Compartilhar em outros sites

  • 0

O player logar sem itens, basta tu logar nos samples e adicionar o item manualmente, que quando criar o personagem ele vai ser uma cópia do samples e vai estar com os itens.

 

Sobre o temple position, basta ir em accountmanagement.php, e dar ctrl + F e colocar "posx" sem as aspas é claro, ai tu vai encontrar isso :

					$char_to_copy->setPosX(0);
					$char_to_copy->setPosY(0);
					$char_to_copy->setPosZ(0);

Agora basta colocar a position.

Link para o comentário
Compartilhar em outros sites

  • 0

Acho que já encontrei o erro

tava faltando

<event type="login" name="FirstItems" event="script" value="firstitems.lua"/>


aaah consegui arrumar os dois erros pode fehca topicoo

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

×
×
  • Criar Novo...