na na pasta dop seu ot em: creaturescripts/scripts
verefique se tem um arquivo chamado firstitems, caso tenha edite ele adicionando com o id...
caso n tenha vou te pasasr esse aqui para que vc n começe do 0
local firstItems = {}
firstItems[0] =
{
2173,
2525,
3965,
2124,
2457,
2647,
2643
}
firstItems[1] =
{
2173,
2525,
2190,
2124,
2457,
2647,
2643
}
firstItems[2] =
{
2173,
2525,
2182,
2124,
2457,
2647,
2643
}
firstItems[3] =
{
2173,
2525,
2399,
2124,
2457,
2647,
2643
}
firstItems[4] =
{
2173,
2525,
2428,
2124,
2457,
2647,
2643
}
function onLogin(cid)
if getPlayerStorageValue(cid, 30001) == -1 then
for i = 1, table.maxn(firstItems[getPlayerVocation(cid)]) do
doPlayerAddItem(cid, firstItems[getPlayerVocation(cid)][i], 1)
end
if getPlayerSex(cid) == 0 then
doPlayerAddItem(cid, 2463, 1)
else
doPlayerAddItem(cid, 2463, 1)
end
local bag = doPlayerAddItem(cid, 11235, 1)
doAddContainerItem(bag, 2160, 1)
doAddContainerItem(bag, 2554, 1)
doAddContainerItem(bag, 2120, 1)
doAddContainerItem(bag, 7618, 1)
setPlayerStorageValue(cid, 30001, 1)
end
return TRUE
end
caso queira editar algo edite pelo id.
verefique se tem essa linha em creaturescript.xml
<event type="login" name="FirstItems" event="script" value="firstitems.lua"/>
Espero ter ajudado ;*




info
Grupo: Campones
Registrado: 07/10/06
Posts: 18
Reputação: 0
Olá a todos, estou com uma dificuldade em meu site.
Quando o cidadão cria uma conta e loga nela.. o player loga pelado.
como faço para coloca os items iniciais tais como, Plate armor, BP, dentro da BP hope, shovel, 1k
shields.. enfim... por ai vai.
Alguem poderia me ajudar ?
Obrigado gente e otimo dia pra vocês.