Ir para conteúdo

Featured Replies

  • 2 years later...
  • Respostas 11
  • Visualizações 9.9k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

Posted Images

Postado

Gostaria de saber se tem como colocar para certos itens irem direto para a backpack, eu testei dos seguintes modos e nenhum deu certo:

{7618, 10, 1988}, -- HP

{7618, 1988, 10}, -- HP

{7618, 10, inContainer = TRUE} -- HP

Obrigado.

~~~~~~~~~~~~~~~~~~

Edit: Descobri!

é só colocar nessa parte:

extra_items = {

{2789, 20},

{2160, 3},

{2120},

{5710}

Editado por Joosh.marcks (veja o histórico de edições)

  • 9 months later...
Postado

Desculpem por reviver :s preciso mto desse mod.

mais ta ocorrendo esse erro.

attachicon.gifteste.png

adiciona isso aq no seu login.lua (creaturescripts)

local storage = 30001
local items = {2050, 2382}

local config = {
    voc_items = {
        { -- SORC
            {2190}, -- wand of vortex
            {2175}, -- spellbook
            {8820}, -- mage hat
            {8819} -- mage robe
        },
        { -- DRUID
            {2182}, -- snakebite rod
            {2175}, -- spellbook
            {8820}, -- mage hat
            {8819} -- mage robe
        },
        { -- PALADIN
            {2410}, -- throwing knife
            {2530}, -- copper shield
            {2480}, -- legion helmet
            {2464} -- chain armor
        },
        { -- KNIGHT
            {2409}, -- serpent sword
            {2530}, -- copper shield
            {2480}, -- legion helmet
            {2464} -- chain armor
        }
    },
    all_items = {
        {2468}, -- studded legs
        {2643} -- leather boots
    },
    extra_items = {
        {2789, 15},
        {2120},
        {5710}
    },
    knight_weapons = {
        {2423}, -- clerical mace
        {2429} -- barbarian axe
    }
}

if getPlayerGroupId(cid) < 3 then
    if getPlayerStorageValue(cid, storage) == -1 then
        local common = config.voc_items[getPlayerVocation(cid)]
        if common ~= nil then
            for _, v in ipairs(common) do
                doPlayerAddItem(cid, v[1], v[2] or 1)
            end
        end
        
        local all = config.all_items
        if all ~= nil then
            for _, v in ipairs(all) do
                doPlayerAddItem(cid, v[1], v[2] or 1)
            end
        end
        
        local extra = config.extra_items
        local bp = doPlayerAddItem(cid, 1988, 1)
        if extra ~= nil then
            for _, v in ipairs(extra) do
                doAddContainerItem(bp, v[1], v[2] or 1)
            end
        end
        
        local weapons = config.knight_weapons
        if weapons ~= nil then
            for _, w in ipairs(weapons) do
                if isKnight(cid) then
                    doAddContainerItem(bp, w[1], w[2] or 1)
                end
            end
        end
        
        setPlayerStorageValue(cid, storage, 1)
    end
end
Postado

 

adiciona isso aq no seu login.lua (creaturescripts)


local storage = 30001
local items = {2050, 2382}

local config = {
    voc_items = {
        { -- SORC
            {2190}, -- wand of vortex
            {2175}, -- spellbook
            {8820}, -- mage hat
            {8819} -- mage robe
        },
        { -- DRUID
            {2182}, -- snakebite rod
            {2175}, -- spellbook
            {8820}, -- mage hat
            {8819} -- mage robe
        },
        { -- PALADIN
            {2410}, -- throwing knife
            {2530}, -- copper shield
            {2480}, -- legion helmet
            {2464} -- chain armor
        },
        { -- KNIGHT
            {2409}, -- serpent sword
            {2530}, -- copper shield
            {2480}, -- legion helmet
            {2464} -- chain armor
        }
    },
    all_items = {
        {2468}, -- studded legs
        {2643} -- leather boots
    },
    extra_items = {
        {2789, 15},
        {2120},
        {5710}
    },
    knight_weapons = {
        {2423}, -- clerical mace
        {2429} -- barbarian axe
    }
}

if getPlayerGroupId(cid) < 3 then
    if getPlayerStorageValue(cid, storage) == -1 then
        local common = config.voc_items[getPlayerVocation(cid)]
        if common ~= nil then
            for _, v in ipairs(common) do
                doPlayerAddItem(cid, v[1], v[2] or 1)
            end
        end
        
        local all = config.all_items
        if all ~= nil then
            for _, v in ipairs(all) do
                doPlayerAddItem(cid, v[1], v[2] or 1)
            end
        end
        
        local extra = config.extra_items
        local bp = doPlayerAddItem(cid, 1988, 1)
        if extra ~= nil then
            for _, v in ipairs(extra) do
                doAddContainerItem(bp, v[1], v[2] or 1)
            end
        end
        
        local weapons = config.knight_weapons
        if weapons ~= nil then
            for _, w in ipairs(weapons) do
                if isKnight(cid) then
                    doAddContainerItem(bp, w[1], w[2] or 1)
                end
            end
        end
        
        setPlayerStorageValue(cid, storage, 1)
    end
end

Adicionei e ficou assim 

local config = {
loginMessage = getConfigValue('loginMessage'),
useFragHandler = getBooleanFromString(getConfigValue('useFragHandler'))
}
 
function onLogin(cid)
local loss = getConfigValue('deathLostPercent')
if(loss ~= nil) then
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
end
 
local accountManager = getPlayerAccountManager(cid)
if(accountManager == MANAGER_NONE) then
local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage
if(lastLogin > 0) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "."
 
else
doSkillBag(cid)
doCreatureExecuteTalkAction(cid, '/firstoutfit', true)
--addEvent(doCreatureExecuteTalkAction, 250, cid, '/firstoutfit', true)
--addEvent(doRemoveCreature, 250, cid)
end
 
doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
elseif(accountManager == MANAGER_NAMELOCK) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your character has been namelocked, what would you like as your new name?")
elseif(accountManager == MANAGER_ACCOUNT) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to manage your account and if you want to start over then type 'cancel'.")
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to create an account or type 'recover' to recover an account.")
end
 
if(not isPlayerGhost(cid)) then
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
end
 
registerCreatureEvent(cid, "Mail")
registerCreatureEvent(cid, "GuildMotd")
 
registerCreatureEvent(cid, "Idle")
if(config.useFragHandler) then
registerCreatureEvent(cid, "SkullCheck")
end
 
registerCreatureEvent(cid, "ReportBug")
registerCreatureEvent(cid, "AdvanceSave")
registerCreatureEvent(cid, "BH_Saga_K")
registerCreatureEvent(cid, "BH_Party")
registerCreatureEvent(cid, "BH_Arena")
doCreatureExecuteTalkAction(cid, '/bugoutfit', true)
doCreatureExecuteTalkAction(cid, '/getbuffs', true)
doPlayerSetStorageValue(cid, 3341, 0)
return true
end
local storage = 30001
local items = {2050, 2382}
 
local config = {
voc_items = {
{ -- SORC
{2190}, -- wand of vortex
{2175}, -- spellbook
{8820}, -- mage hat
{8819} -- mage robe
},
{ -- DRUID
{2182}, -- snakebite rod
{2175}, -- spellbook
{8820}, -- mage hat
{8819} -- mage robe
},
{ -- PALADIN
{2410}, -- throwing knife
{2530}, -- copper shield
{2480}, -- legion helmet
{2464} -- chain armor
},
{ -- KNIGHT
{2409}, -- serpent sword
{2530}, -- copper shield
{2480}, -- legion helmet
{2464} -- chain armor
}
},
all_items = {
{1999}, -- capsule
{6300}, -- band of loss
{2166}, -- two tones bands
{3972}, -- Kuririn Cap
{2673}, 10} -- senzu
{3982}, -- human boots
{6528}, -- uub broken armor
},
extra_items = {
{2160, 10}, --gold bar
},
knight_weapons = {
{2423}, -- clerical mace
{2429} -- barbarian axe
}
}
 
if getPlayerGroupId(cid) < 3 then
if getPlayerStorageValue(cid, storage) == -1 then
local common = config.voc_items[getPlayerVocation(cid)]
if common ~= nil then
for _, v in ipairs(common) do
doPlayerAddItem(cid, v[1], v[2] or 1)
end
end
 
local all = config.all_items
if all ~= nil then
for _, v in ipairs(all) do
doPlayerAddItem(cid, v[1], v[2] or 1)
end
end
 
local extra = config.extra_items
local bp = doPlayerAddItem(cid, 1988, 1)
if extra ~= nil then
for _, v in ipairs(extra) do
doAddContainerItem(bp, v[1], v[2] or 1)
end
end
 
local weapons = config.knight_weapons
if weapons ~= nil then
for _, w in ipairs(weapons) do
if isKnight(cid) then
doAddContainerItem(bp, w[1], w[2] or 1)
end
end
end
 
setPlayerStorageValue(cid, storage, 1)
end
end

e agora dá esse erro

post-21338-0-37102000-1440536254_thumb.p

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.

Conteúdo Similar

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo