Ir para conteúdo

Featured Replies

Postado

Bom dia , Queria uma Ajuda *-* ....

Baixei um Mapa de WAR - Mais quando Criava Char não Aparecia os Items Iniciais , Queria sabeer como eu faço Para Adiciona-los

Os de kina , pally , e Mages, REP+

otserver.png

  • Respostas 5
  • Visualizações 654
  • Created
  • Última resposta

Top Posters In This Topic

Postado
  • Autor

Os Mesmos Items dos Mapas WAR que Começa level 130 tal.. Paladin , Crown Armor não lembro nome deles Caso voce não soube quais os items Me avisa Ai eu do um Jeito de Pegar eles ...

Postado

Os Mesmos Items dos Mapas WAR que Começa level 130 tal.. Paladin , Crown Armor não lembro nome deles Caso voce não soube quais os items Me avisa Ai eu do um Jeito de Pegar eles ...

Copia um .lua lá renomeia pra firstitems e cola o code ae .

Como c tá vendo ae ta separado as profissoes e só e mudar as ids dos itens q vc quer que que comece cada vocação e tals tá facim :)

data/screaturescripts/scripts/firstitems.lua

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)

doAddContainerItem(bag, 2789, 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)

doAddContainerItem(bag, 2789, 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)

doAddContainerItem(bag, 2789, 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)

doAddContainerItem(bag, 2789, 20) 



           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
creaturescrips.xml
<event type="login" name="FirstItems" event="script" value="firstitems.lua"/>
data/screaturescripts/scripts/login.lua Só adiciona o registro lá ..
registerCreatureEvent(cid, "FirstItems")

          Procuro Equipe para projeto sério com remuneração, maior necessidade Programador em C\C++.

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.7k

Informação Importante

Confirmação de Termo