Ir para conteúdo

Featured Replies

Postado
  • Autor

@Zanrix É que eu tinha editado meu post antes, acho que tu acabou não vendo... Haha!

 

Então, depois de arrumar os quest ids, ficou tudo certo, cada outfit por cada vocação.

Porém, os personagens estão logando no jogo pela primeira vez com o Citizen. Não sei como tirar isso.

 

Meu FirstItens.xml atualizado:

  Citar

<?xml version="1.0" encoding="UTF-8"?>
<mod name="First Items" version="1.0" author="Kaiser" contact="marranas6@gmail.com" enabled="yes">
    <description><![CDATA[
        Custom Fist Items
    ]]></description>
    <config name="firstitems_config"><![CDATA[
        config = {
            storage = 40046,
            items = {}
        }
    ]]></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

        -- All Vocation
            -- BackPack -- Rope -- in Backpack
            doAddContainerItem(doPlayerAddItem(cid, 1988, 1), 2120, 1)
            -- Brass Armor -- Body
            doPlayerAddItem(cid, 2465, 1)
            -- Steel Helmet -- Head
            doPlayerAddItem(cid, 2457, 1)
            -- Bonelord Shield -- Right Hand
            doPlayerAddItem(cid, 2518, 1)

        -- Sorcerer (Weapon) -- Hand
        if isSorcerer(cid) then
            doPlayerAddItem(cid, 2190, 1) -- Wand of Vortex -- Left Hand
            doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT," "..getPlayerName(cid).." now have the first items of "..getPlayerVocationName(cid)..".")

        -- Druid (Weapon) -- Hand
        elseif isDruid(cid) then
            doPlayerAddItem(cid, 2182, 1) -- Snake Bite Rod -- Left Hand
            doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT," "..getPlayerName(cid).." now have the first items of "..getPlayerVocationName(cid)..".")

        -- Paladin - Warrior (Weapon) -- Hand
        elseif isPaladin(cid) then
            doPlayerAddItem(cid, 2389, 5) -- Spear -- Left Hand
            doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT," "..getPlayerName(cid).." now have the first items of "..getPlayerVocationName(cid)..".")

        -- Knight (Weapon) -- Hand
        elseif isKnight(cid) then
            doPlayerAddItem(cid, 8602, 1) -- Jagged Sword -- Left Hand
            doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT," "..getPlayerName(cid).." now have the first items of "..getPlayerVocationName(cid)..".")
        end

if getPlayerVocation(cid) == 3 then
    setPlayerStorageValue(cid, 40003, 1)  
end

if getPlayerVocation(cid) == 4 then
    setPlayerStorageValue(cid, 40004, 1)  
end

if getPlayerVocation(cid) == 2 then
    setPlayerStorageValue(cid, 40002, 1)  
end

if getPlayerVocation(cid) == 1 then
    setPlayerStorageValue(cid, 40001, 1)  
end

        -- All Vocation
            -- Brass Legs -- in Feet
            doPlayerAddItem(cid, 2478, 1)
            -- Leather Boots -- in Boots
            doPlayerAddItem(cid, 2643, 1)
            -- Scarf -- in Necklacke
            doPlayerAddItem(cid, 2661, 1)
            -- Platinum Coin -- in Arrows
            doPlayerAddItem(cid, 2152, 1)
            -- Health Potion -- in Backpack
            doPlayerAddItem(cid, 7618, 10)
            -- Shovel -- in Backpack
            doPlayerAddItem(cid, 2554, 1)
            -- Crystal Ring -- in Ring
            doPlayerAddItem(cid, 2124, 1)
            -- Mana Potion -- in Backpack
            doPlayerAddItem(cid, 7620, 15)

        -- Knight (Weapon) -- in Backpack
        if isKnight(cid) then
            doPlayerAddItem(cid, 8601, 1) -- Steel Axe
            doPlayerAddItem(cid, 2439, 1) -- Daramanian mace
        end

    setPlayerStorageValue(cid, config.storage, 1)
    ]]></event>
</mod>

 

  • Respostas 19
  • Visualizações 1.3k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Você trocou ali os números na tag "quest", muda pra isso no seu outfits.xml: <?xml version="1.0"?> <outfits> <outfit id="2" quest="40001"> <list gender="0" lookTyp

  • Na parte que mudamos no FirstItens.xml, substitui por isso: if getPlayerVocation(cid) == 3 then setPlayerStorageValue(cid, 40003, 1) if getPlayerSex(cid) == 0 then doCreatureChangeOutfi

  • Você criou um char novo? Que estranho

Postado
  Em 20/02/2017 em 03:49, Exura ATS disse:

@Zanrix É que eu tinha editado meu post antes, acho que tu acabou não vendo... Haha!

 

Então, depois de arrumar os quest ids, ficou tudo certo, cada outfit por cada vocação.

Porém, os personagens estão logando no jogo pela primeira vez com o Citizen. Não sei como tirar isso.

 

Meu FirstItens.xml atualizado:

 

Na parte que mudamos no FirstItens.xml, substitui por isso:

if getPlayerVocation(cid) == 3 then
    setPlayerStorageValue(cid, 40003, 1)
  	if getPlayerSex(cid) == 0 then
  		doCreatureChangeOutfit(cid, 137)
    else
    	doCreatureChangeOutfit(cid, 129)
    end
end
if getPlayerVocation(cid) == 4 then
    setPlayerStorageValue(cid, 40004, 1)  
  	if getPlayerSex(cid) == 0 then
  		doCreatureChangeOutfit(cid, 139)
    else
    	doCreatureChangeOutfit(cid, 131)
    end
end
if getPlayerVocation(cid) == 2 then
    setPlayerStorageValue(cid, 40002, 1)
  	if getPlayerSex(cid) == 0 then
  		doCreatureChangeOutfit(cid, 148)
    else
    	doCreatureChangeOutfit(cid, 144)
    end
end
if getPlayerVocation(cid) == 1 then
    setPlayerStorageValue(cid, 40001, 1)
  	if getPlayerSex(cid) == 0 then
  		doCreatureChangeOutfit(cid, 149)
    else
    	doCreatureChangeOutfit(cid, 145)
    end
end

 

Postado
  • Autor
  Em 20/02/2017 em 03:58, Zanrix disse:

Na parte que mudamos no FirstItens.xml, substitui por isso:


if getPlayerVocation(cid) == 3 then
    setPlayerStorageValue(cid, 40003, 1)
  	if getPlayerSex(cid) == 0 then
  		doCreatureChangeOutfit(cid, 137)
    else
    	doCreatureChangeOutfit(cid, 129)
    end
end
if getPlayerVocation(cid) == 4 then
    setPlayerStorageValue(cid, 40004, 1)  
  	if getPlayerSex(cid) == 0 then
  		doCreatureChangeOutfit(cid, 139)
    else
    	doCreatureChangeOutfit(cid, 131)
    end
end
if getPlayerVocation(cid) == 2 then
    setPlayerStorageValue(cid, 40002, 1)
  	if getPlayerSex(cid) == 0 then
  		doCreatureChangeOutfit(cid, 148)
    else
    	doCreatureChangeOutfit(cid, 144)
    end
end
if getPlayerVocation(cid) == 1 then
    setPlayerStorageValue(cid, 40001, 1)
  	if getPlayerSex(cid) == 0 then
  		doCreatureChangeOutfit(cid, 149)
    else
    	doCreatureChangeOutfit(cid, 145)
    end
end

 

 

Ainda tá nascendo com o Citizen Outfit. ):

Postado
  • Autor
  Em 20/02/2017 em 04:05, Zanrix disse:

Você criou um char novo? Que estranho

 

Pois é.

Dei um Backup no FirstItens e vou editar ele de novo, e testar mais uma vez, por via das dúvidas...

 

Edit:

@Zanrix O personagem que eu crio ainda tá vindo com o Citizen Outfit, e pra piorar agora tá dando um erro no distro e o personagem tá vindo "pelado".

 

Saca só:

 

2djnep.png

 

FirstItens.xml:

  Citar

<?xml version="1.0" encoding="UTF-8"?>
<mod name="First Items" version="1.0" author="Kaiser" contact="marranas6@gmail.com" enabled="yes">
    <description><![CDATA[
        Custom Fist Items
    ]]></description>
    <config name="firstitems_config"><![CDATA[
        config = {
            storage = 40046,
            items = {}
        }
    ]]></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 getPlayerVocation(cid) == 3 then
    setPlayerStorageValue(cid, 40003, 1)
      if getPlayerSex(cid) == 0 then
          doCreatureChangeOutfit(cid, 137)
    else
        doCreatureChangeOutfit(cid, 129)
    end
end
if getPlayerVocation(cid) == 4 then
    setPlayerStorageValue(cid, 40004, 1)  
      if getPlayerSex(cid) == 0 then
          doCreatureChangeOutfit(cid, 139)
    else
        doCreatureChangeOutfit(cid, 131)
    end
end
if getPlayerVocation(cid) == 2 then
    setPlayerStorageValue(cid, 40002, 1)
      if getPlayerSex(cid) == 0 then
          doCreatureChangeOutfit(cid, 148)
    else
        doCreatureChangeOutfit(cid, 144)
    end
end
if getPlayerVocation(cid) == 1 then
    setPlayerStorageValue(cid, 40001, 1)
      if getPlayerSex(cid) == 0 then
          doCreatureChangeOutfit(cid, 149)
    else
        doCreatureChangeOutfit(cid, 145)
    end
end
        -- All Vocation
            -- BackPack -- Rope -- in Backpack
            doAddContainerItem(doPlayerAddItem(cid, 1988, 1), 2120, 1)
            -- Brass Armor -- Body
            doPlayerAddItem(cid, 2465, 1)
            -- Steel Helmet -- Head
            doPlayerAddItem(cid, 2457, 1)
            -- Bonelord Shield -- Right Hand
            doPlayerAddItem(cid, 2518, 1)

        -- Sorcerer (Weapon) -- Hand
        if isSorcerer(cid) then
            doPlayerAddItem(cid, 2190, 1) -- Wand of Vortex -- Left Hand
            doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT," "..getPlayerName(cid).." now have the first items of "..getPlayerVocationName(cid)..".")

        -- Druid (Weapon) -- Hand
        elseif isDruid(cid) then
            doPlayerAddItem(cid, 2182, 1) -- Snake Bite Rod -- Left Hand
            doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT," "..getPlayerName(cid).." now have the first items of "..getPlayerVocationName(cid)..".")

        -- Paladin - Warrior (Weapon) -- Hand
        elseif isPaladin(cid) then
            doPlayerAddItem(cid, 2389, 5) -- Spear -- Left Hand
            doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT," "..getPlayerName(cid).." now have the first items of "..getPlayerVocationName(cid)..".")

        -- Knight (Weapon) -- Hand
        elseif isKnight(cid) then
            doPlayerAddItem(cid, 8602, 1) -- Jagged Sword -- Left Hand
            doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT," "..getPlayerName(cid).." now have the first items of "..getPlayerVocationName(cid)..".")
        end

        -- All Vocation
            -- Brass Legs -- in Feet
            doPlayerAddItem(cid, 2478, 1)
            -- Leather Boots -- in Boots
            doPlayerAddItem(cid, 2643, 1)
            -- Scarf -- in Necklacke
            doPlayerAddItem(cid, 2661, 1)
            -- Platinum Coin -- in Arrows
            doPlayerAddItem(cid, 2152, 1)
            -- Health Potion -- in Backpack
            doPlayerAddItem(cid, 7618, 10)
            -- Shovel -- in Backpack
            doPlayerAddItem(cid, 2554, 1)
            -- Crystal Ring -- in Ring
            doPlayerAddItem(cid, 2124, 1)
            -- Mana Potion -- in Backpack
            doPlayerAddItem(cid, 7620, 15)

        -- Knight (Weapon) -- in Backpack
        if isKnight(cid) then
            doPlayerAddItem(cid, 8601, 1) -- Steel Axe
            doPlayerAddItem(cid, 2439, 1) -- Daramanian mace
        end

    setPlayerStorageValue(cid, config.storage, 1)
    ]]></event>
</mod>

 

Editado por Exura ATS (veja o histórico de edições)

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