DA
erro

[Erro] Char nascendo sem items gesior

Por DavyziinC, 04 de jun. de 2015 em Websites

9
1.9k
DavyziinCD
04 de junho de 2015 às 21:35

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?

FurabioF
04 de junho de 2015 às 21:42

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.

DavyziinCD
04 de junho de 2015 às 22:21

Então mano não foi :(


e outra coisa os samples estão tudo com items


@UP

MuriloCavalcanttiM
04 de junho de 2015 às 23:58

Qual website você está usando?

DavyziinCD
05 de junho de 2015 às 10:05

Aquele gesior 8.60 plus

MuriloCavalcanttiM
05 de junho de 2015 às 10:14
Melhor resposta

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"/>
DavyziinCD
05 de junho de 2015 às 11:58

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 Junho 5 por DavyziinC

FurabioF
05 de junho de 2015 às 12:05

nos diga como arrumou ...

MuriloCavalcanttiM
05 de junho de 2015 às 12:08

Eu ajudei ele ali em cima Flavio, tópico resolvido, fechado!