[Encerrado] Itens iniciais não aparecem!

lokzina2
em Tópicos Sem Resposta

lokzina2

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 02/10/10Posts: 9

Olá pessoal , tenho tido um problema muito chato , ja tem o arquivo firstitems.lua e outro .xml mais mesmo assim , toda vez que cria um novo char ele começa sem item algum. Oque será que pode ser? Se alguem puder me ajudar , obrigado .

skype : demontak

fV9jD.png

 

 

 

F2ndw.png

narutochuuu

avatar
Visconde
Visconde

INFOS

Grupo: ViscondeRegistrado: 24/08/12Posts: 266Char no Tibia: Paulirous

Manda o script do firstitems.xml para analisar.

[CODE]
http://www.facebook.com/pages/Liga-PMM-Oficial/290002247777421
[/CODE]

Slicer

Insanity
avatar
Príncipe
Príncipe

INFOS

Grupo: PríncipeRegistrado: 19/08/10Posts: 4014Gênero: Masculino

e o .lua tb.. a ideia era ter soh 1 heim.. o.O

"Só a beira do abismo que os seres humanos acham forças para mudar."... E isso me da nojo... ¬¬

"Insanity is doing the exact... same fucking thing... over and over again expecting... shit to change... That. Is. Crazy." -Vass/Einstein

 

lokzina2

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 02/10/10Posts: 9

Aqui o .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)

  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 o .xml

 

<?xml version="1.0" encoding="UTF-8"?>
<mod name="First Items" version="1.0" author="The Forgotten Server" contact="otland.net" enabled="no">
<config name="firstitems_config"><![CDATA[
 config = {
  storage = 30001,
  items = {2050, 2382}
 }
]]></config>
<event type="login" name="FirstItems" event="buffer"><![CDATA[
 domodlib('firstitems_config')
 if(getPlayerStorageValue(cid, config.storage) > 0) then
  return
 end
 for _, id in ipairs(config.items) do
  doPlayerAddItem(cid, id, 1)
 end  if(getPlayerSex(cid) == PLAYERSEX_FEMALE) then
  doPlayerAddItem(cid, 2651, 1)
 else
  doPlayerAddItem(cid, 2650, 1)
 end
 doAddContainerItem(doPlayerAddItem(cid, 1987, 1), 2674, 1)
 setPlayerStorageValue(cid, config.storage, 1)
]]></event>
</mod>

skype : demontak

fV9jD.png

 

 

 

F2ndw.png

Stigal

don't ever stop...
avatar
Herói
Herói

INFOS

Grupo: HeróiRegistrado: 28/11/10Posts: 3402Gênero: Masculino

Tópico movido para a seção de dúvidas e pedidos resolvidos.

VI6MDIG.png

 

"O fracasso é a oportunidade de se começar de novo inteligentemente"

Minhas Redes Sociais: Youtube | Página & Grupo | Steam  | Discord Xtibia | Skype: @mrooger

 

OTpanel

Stigal

don't ever stop...
avatar
Herói
Herói

INFOS

Grupo: HeróiRegistrado: 28/11/10Posts: 3402Gênero: Masculino
A questão neste tópico de suporte foi encerrada por falta de respostas. Este tópico está fechado e foi movido para Suporte - Tópicos Sem Resposta.

+ Caso a dúvida não tenha sido resolvida você poderá criar outro tópico solicitando ajuda.
* Lembre-se que é permitido dar UP no tópico a cada 24 horas para assim o destacar e manter movimentado.

VI6MDIG.png

 

"O fracasso é a oportunidade de se começar de novo inteligentemente"

Minhas Redes Sociais: Youtube | Página & Grupo | Steam  | Discord Xtibia | Skype: @mrooger

 

OTpanel