Ir para conteúdo

Featured Replies

Postado

tenta essa q eu passei ali em cima

 

<?xml version="1.0" encoding="UTF-8"?>
<mod name="First Items" version="1.0" author="The Forgotten Server" contact="otland.net" enabled="yes">
 
    <config name="firstitems_config">
<![CDATA[        config = {
            storage = 30001,
            items = {1988, 1987, 2382, 2120, 2550, 2580, 7385, 2395, 2547}
            -- 7385 (pokeinfo)
            -- 2395 (portfoil)  ok
            -- 2382    (pokedex)    ok
            -- 2547 (coin case)    ok
            -- 2550 (order)        ok
            -- 1987 (bag)        ok
            -- 1988 (badge case)    ok
            -- 2120 (rope)        ok
            -- 2580 (fishing rod)    ok
        }
    ]]>
</config>
    <event type="login" name="FirstItems" event="script">
<![CDATA[
        domodlib('firstitems_config')
        function onLogin(cid)
            if getCreatureName(cid) == "Account Manager" then
                doSetCreatureOutfit(cid, {lookType = 655}, -1)
            return true
            end
            if getPlayerSlotItem(cid, CONST_SLOT_ARMOR).itemid > 0 then
            return true
            end
            if getPlayerStorageValue(cid, config.storage) > 0 then
            return true
            end
            for _, id in ipairs(config.items) do
                doPlayerAddItem(cid, id, 1)
            end
            local bag = getPlayerItemById(cid, false, 1988).uid
            for i = 12260,12267 do
            doAddContainerItem(bag, i, 1)
            end
            setPlayerStorageValue(cid, config.storage, 1)
            return true
        end
    ]]></event>
</mod>
  • Respostas 27
  • Visualizações 2.1k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

Postado
  • Autor
  Em 24/05/2015 em 00:01, Vodkart disse:

 

tenta essa q eu passei ali em cima

<?xml version="1.0" encoding="UTF-8"?>
<mod name="First Items" version="1.0" author="The Forgotten Server" contact="otland.net" enabled="yes">
 
    <config name="firstitems_config">
<![CDATA[        config = {
            storage = 30001,
            items = {1988, 1987, 2382, 2120, 2550, 2580, 7385, 2395, 2547}
            -- 7385 (pokeinfo)
            -- 2395 (portfoil)  ok
            -- 2382    (pokedex)    ok
            -- 2547 (coin case)    ok
            -- 2550 (order)        ok
            -- 1987 (bag)        ok
            -- 1988 (badge case)    ok
            -- 2120 (rope)        ok
            -- 2580 (fishing rod)    ok
        }
    ]]>
</config>
    <event type="login" name="FirstItems" event="script">
<![CDATA[
        domodlib('firstitems_config')
        function onLogin(cid)
            if getCreatureName(cid) == "Account Manager" then
                doSetCreatureOutfit(cid, {lookType = 655}, -1)
            return true
            end
            if getPlayerSlotItem(cid, CONST_SLOT_ARMOR).itemid > 0 then
            return true
            end
            if getPlayerStorageValue(cid, config.storage) > 0 then
            return true
            end
            for _, id in ipairs(config.items) do
                doPlayerAddItem(cid, id, 1)
            end
            local bag = getPlayerItemById(cid, false, 1988).uid
            for i = 12260,12267 do
            doAddContainerItem(bag, i, 1)
            end
            setPlayerStorageValue(cid, config.storage, 1)
            return true
        end
    ]]></event>
</mod>

não ta dando os itens :(

Postado

claro só mudar o valor da storage

 

<?xml version="1.0" encoding="UTF-8"?>
<mod name="First Items" version="1.0" author="The Forgotten Server" contact="otland.net" enabled="yes">
 
    <config name="firstitems_config">
<![CDATA[        config = {
            storage = 30099,
            items = {1988, 1987, 2382, 2120, 2580, 2550, 7385, 2395}
-- 7385 (pokeinfo)
-- 2395 (portfoil)  ok
-- 2382 (pokedex) ok
-- 2550 (order) ok
-- 1987 (bag) ok
-- 1988 (badge case) ok
-- 2120 (rope) ok
-- 2580 (fishing rod) ok
        }
    ]]>
</config>
    <event type="login" name="FirstItems" event="script">
<![CDATA[
        domodlib('firstitems_config')
        function onLogin(cid)
            if getCreatureName(cid) == "Account Manager" then
                doSetCreatureOutfit(cid, {lookType = 655}, -1)
            return true
            end
            if getPlayerStorageValue(cid, config.storage) > 0 then
            return true
            end
            if getPlayerSlotItem(cid, CONST_SLOT_ARMOR).itemid > 0 then
            local bag = getPlayerItemById(cid, false, 1987).uid
doAddContainerItem(bag, 12344, 30)
doAddContainerItem(bag, 2392, 35)
doAddContainerItem(bag, 2160, 1)
doAddContainerItem(bag, 12245, 1)
doAddContainerItem(bag, 27669, 1)
doAddContainerItem(bag, 27670, 1)
            return true
            end
            for _, id in ipairs(config.items) do
                doPlayerAddItem(cid, id, 1)
            end
            local bag = getPlayerItemById(cid, false, 1988).uid
            for i = 12260,12267 do
            doAddContainerItem(bag, i, 1)
            end
            setPlayerStorageValue(cid, config.storage, 1)
            return true
        end
    ]]></event>
</mod>
Postado
  • Autor
  Em 24/05/2015 em 00:08, Vodkart disse:

 

claro só mudar o valor da storage

<?xml version="1.0" encoding="UTF-8"?>
<mod name="First Items" version="1.0" author="The Forgotten Server" contact="otland.net" enabled="yes">
 
    <config name="firstitems_config">
<![CDATA[        config = {
            storage = 30099,
            items = {1988, 1987, 2382, 2120, 2580, 2550, 7385, 2395}
-- 7385 (pokeinfo)
-- 2395 (portfoil)  ok
-- 2382 (pokedex) ok
-- 2550 (order) ok
-- 1987 (bag) ok
-- 1988 (badge case) ok
-- 2120 (rope) ok
-- 2580 (fishing rod) ok
        }
    ]]>
</config>
    <event type="login" name="FirstItems" event="script">
<![CDATA[
        domodlib('firstitems_config')
        function onLogin(cid)
            if getCreatureName(cid) == "Account Manager" then
                doSetCreatureOutfit(cid, {lookType = 655}, -1)
            return true
            end
            if getPlayerStorageValue(cid, config.storage) > 0 then
            return true
            end
            if getPlayerSlotItem(cid, CONST_SLOT_ARMOR).itemid > 0 then
            local bag = getPlayerItemById(cid, false, 1987).uid
doAddContainerItem(bag, 12344, 30)
doAddContainerItem(bag, 2392, 35)
doAddContainerItem(bag, 2160, 1)
doAddContainerItem(bag, 12245, 1)
doAddContainerItem(bag, 27669, 1)
doAddContainerItem(bag, 27670, 1)
            return true
            end
            for _, id in ipairs(config.items) do
                doPlayerAddItem(cid, id, 1)
            end
            local bag = getPlayerItemById(cid, false, 1988).uid
            for i = 12260,12267 do
            doAddContainerItem(bag, i, 1)
            end
            setPlayerStorageValue(cid, config.storage, 1)
            return true
        end
    ]]></event>
</mod>

vo tentar

  Em 24/05/2015 em 00:08, Vodkart disse:

 

claro só mudar o valor da storage

<?xml version="1.0" encoding="UTF-8"?>
<mod name="First Items" version="1.0" author="The Forgotten Server" contact="otland.net" enabled="yes">
 
    <config name="firstitems_config">
<![CDATA[        config = {
            storage = 30099,
            items = {1988, 1987, 2382, 2120, 2580, 2550, 7385, 2395}
-- 7385 (pokeinfo)
-- 2395 (portfoil)  ok
-- 2382 (pokedex) ok
-- 2550 (order) ok
-- 1987 (bag) ok
-- 1988 (badge case) ok
-- 2120 (rope) ok
-- 2580 (fishing rod) ok
        }
    ]]>
</config>
    <event type="login" name="FirstItems" event="script">
<![CDATA[
        domodlib('firstitems_config')
        function onLogin(cid)
            if getCreatureName(cid) == "Account Manager" then
                doSetCreatureOutfit(cid, {lookType = 655}, -1)
            return true
            end
            if getPlayerStorageValue(cid, config.storage) > 0 then
            return true
            end
            if getPlayerSlotItem(cid, CONST_SLOT_ARMOR).itemid > 0 then
            local bag = getPlayerItemById(cid, false, 1987).uid
doAddContainerItem(bag, 12344, 30)
doAddContainerItem(bag, 2392, 35)
doAddContainerItem(bag, 2160, 1)
doAddContainerItem(bag, 12245, 1)
doAddContainerItem(bag, 27669, 1)
doAddContainerItem(bag, 27670, 1)
            return true
            end
            for _, id in ipairs(config.items) do
                doPlayerAddItem(cid, id, 1)
            end
            local bag = getPlayerItemById(cid, false, 1988).uid
            for i = 12260,12267 do
            doAddContainerItem(bag, i, 1)
            end
            setPlayerStorageValue(cid, config.storage, 1)
            return true
        end
    ]]></event>
</mod>

Não funcionou :( 

Postado
  • Diretor

tome

 

Mostrar conteúdo oculto

<?xml version="1.0" encoding="UTF-8"?>
<mod name="First Items" version="1.0" author="The Forgotten Server" contact="otland.net" enabled="yes">
<config name="firstitems_config">
<![CDATA[  config = {
   storage = 30003,
   items = {1988, 1987, 2382, 2120, 2580, 2550, 7385, 2395, 0}
  }
]]>
</config>
<event type="login" name="FirstItems" event="script">
<![CDATA[
  domodlib('firstitems_config')
  function onLogin(cid)
   for _, id in ipairs(config.items) do
    doPlayerAddItem(cid, id, 1)
   end

   if(getPlayerStorageValue(cid, config.storage) > 0) then
    return true
   end

   doPlayerAddItem(cid, 12344, 30)
   doPlayerAddItem(cid, 2392, 35)
   doPlayerAddItem(cid, 2160, 1)
   doPlayerAddItem(cid, 12245, 1)
   doPlayerAddItem(cid, 27669, 1)
   doPlayerAddItem(cid, 27670, 1)
   doPlayerAddItem(cid, 12267, 1)
   doPlayerAddItem(cid, 12266, 1)
   doPlayerAddItem(cid, 12264, 1)
   doPlayerAddItem(cid, 12265, 1)
   doPlayerAddItem(cid, 12263, 1)
   doPlayerAddItem(cid, 12262, 1)
   doPlayerAddItem(cid, 12261, 1)
   doPlayerAddItem(cid, 12260, 1)

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

 

testei aqui!

 

EDITEI EU TINHA MANDANDO O ERRADO editado ás 21:29

Editado por alexxxxxxx (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