Ir para conteúdo

Featured Replies

Postado

Meu mapa global 10.76 comeca sem itens pessoal , nao sei oque fazer , nao tem a pasta firstitens... nd! ajuda ai

  • Respostas 14
  • Visualizações 969
  • Created
  • Última resposta

Top Posters In This Topic

Postado

Vá em data/creaturescripts e abra o arquivo creaturescripts.xml, nele adicione:

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

Logo após na pasta data/creaturescripts/scripts crie um arquivo Lua chamado firstitems.lua e adicione nele isso:

local firstItems = {}
firstItems[0] =
{
2173,
2525,
2428,
2124,
2460,
2478,
2643
}
firstItems[1] =
{
2173,
2525,
12609,
2124,
2460,
2478,
2643,
}
firstItems[2] =
{
2173,
2525,
12609,
2124,
2460,
2478,
2643
}
firstItems[3] =
{
2173,
2525,
2456,
2124,
2460,
2478,
2643
}
firstItems[4] =
{
2173,
2525,
12610,
2124,
2460,
2478,
2643
}
firstItems[9] =
{
10071,
2525,
5896,
10076,
10048,
2647,
2195
}

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, 2465, 1)
else
doPlayerAddItem(cid, 2465, 1)
end
local bag = doPlayerAddItem(cid, 10518, 1)
doAddContainerItem(bag, 2160, 1)
doAddContainerItem(bag, 2554, 1)
doAddContainerItem(bag, 2190, 1)
doAddContainerItem(bag, 2120, 1)
doAddContainerItem(bag, 7618, 1)
doAddContainerItem(bag, 2383, 1)
doAddContainerItem(bag, 2352, 1)
doAddContainerItem(bag, 2175, 1)
setPlayerStorageValue(cid, 30001, 1)
end
return TRUE
end

REP+ Se ajudei =)

OBS: Não criei o script, apenas tinha ele guardado aqui e contribui :3

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo