• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved First Items

Mister Budex

BudexOT.com
Joined
Jun 22, 2016
Messages
1,547
Solutions
18
Reaction score
378
Hello Ottlanders.. Well, i am making an VenoreWarOT so my problem is next
i'm using first items script it works fine here you go :
local vocation_specific_items = {
[1] = {item_list = { -- sorcerer
[1] = {item_id = 2323, count = 1}, -- helmet
[2] = {item_id = 8871, count = 1}, -- armor
[3] = {item_id = 2187, count = 1}, -- wand of vortex
[4] = {item_id = 8902, count = 1}, -- shield
[5] = {item_id = 7730, count = 1}, -- brass legs
[6] = {item_id = 2195, count = 1}, -- leather boots
}
},
[2] = {item_list = { -- druid
[1] = {item_id = 2323, count = 1}, -- helmet
[2] = {item_id = 8871, count = 1}, -- armor
[3] = {item_id = 2187, count = 1}, -- wand of vortex
[4] = {item_id = 8902, count = 1}, -- shield
[5] = {item_id = 7730, count = 1}, -- brass legs
[6] = {item_id = 2195, count = 1}, -- leather boots
}
},
[3] = {item_list = { -- paladin
[1] = {item_id = 2493, count = 1}, -- brass helmet
[2] = {item_id = 8891, count = 1}, -- range cloak
[3] = {item_id = 2514, count = 1}, -- mastermind shield
[4] = {item_id = 7730, count = 1}, -- brass legs
[5] = {item_id = 2195, count = 1}, -- leather boots
[6] = {item_id = 7368, count = 100}, -- assassin stars
}
},
[4] = {item_list = { -- knight
[1] = {item_id = 2493, count = 1}, -- brass helmet
[2] = {item_id = 2472, count = 1}, -- brass armor
[3] = {item_id = 2514, count = 1}, -- shield
[4] = {item_id = 2400, count = 1}, -- jagged sword
[5] = {item_id = 2470, count = 1}, -- brass legs
[6] = {item_id = 2195, count = 1}, -- leather boots
[7] = {item_id = 2431, count = 1}, -- stonecutter axe
}
}
}

local give_to_all_items = {
[1] = {item_id = 2789, count = 25}, -- 25 mushrooms
[2] = {item_id = 2120, count = 1}, -- rope
[3] = {item_id = 2554, count = 1}, -- shovel
[4] = {item_id = 2160, count = 1}, -- crystal coin
[5] = {item_id = 7620, count = 10}, -- 10 mana potion
[6] = {item_id = 7618, count = 10} -- 10 health potion
}

local experience_to_give = 0 -- level 8 (0 = disable)
local storage = 45002 -- any free storage

function onLogin(cid)

if getPlayerStorageValue(cid, storage) == 1 then
return true
end

for i = 1, 4 do
doRemoveItem(getPlayerSlotItem(cid, i + 2).uid)
end

if experience_to_give > 0 then
doPlayerAddExperience(cid, experience_to_give)
end

local backpack = doPlayerAddItem(cid, 1988, 1, true)
for i = 1, #give_to_all_items do
doAddContainerItem(backpack, give_to_all_items.item_id, give_to_all_items.count)
end

local v = getPlayerVocation(cid)
local voc_table_list = vocation_specific_items[v].item_list
for i = 1, #voc_table_list do
doPlayerAddItem(cid, voc_table_list.item_id, voc_table_list.count, true)
end

setPlayerStorageValue(cid, storage, 1)

return true
end

______________________________________________________________________________So now because its war server and starts with 130 level i want to be like
on sorcerer backpack within sd ,gmp,mwall,firebomb,machete,destroyer field rune (everything for war )
on druid backpack within sd, gmp,mwall,firebomb,machete,destroyer field rune (everything for war)
on paladin great spirit potion, strong mana potion,machete,food, sd ( everything for war )
on knight mana potion, ultimate health potion,machete,food ( everything for war )
Thanks ;)
 
I'm not 100% sure but here set at what lvl is to give items

local experience_to_give = 0 -- level 8 (0 = disable)

and to give an object on the start line to add and change the id to the id of the item that you want to give:

Sample:

[1] = {item_id = 2493, count = 1}, -- brass helmet


item_id = XXX : id object that you want to give

count = 1 : the amount of a given subject


Oh! That's what you meant?
 
I'm not 100% sure but here set at what lvl is to give items

local experience_to_give = 0 -- level 8 (0 = disable)

and to give an object on the start line to add and change the id to the id of the item that you want to give:

Sample:

[1] = {item_id = 2493, count = 1}, -- brass helmet


item_id = XXX : id object that you want to give

count = 1 : the amount of a given subject


Oh! That's what you meant?
nah i just want to add bp with supplies
 
I tried to tell you before. xD
The starting items script your looking for doesn't exist yet.
There's no easy way to fix this script, it basically needs to be written from scratch.

No need to be fancy with tables, you can just do it "the noob way".
I set-up what you have, just do the extra backpack of stuff you want.

Code:
local storage = 11111

function onLogin(cid)

    -- Check if quest has been completed before.
    if getPlayerStorageValue(cid, storage) == 1 then
        return true
    end

    -- adding this part because I know you specifically need it.
    for i = 1, 4 do
        doRemoveItem(getPlayerSlotItem(cid, i + 2).uid)
    end

    local v = getPlayerVocation(cid)

    -- Sorcerer
    if v == 1 then
        doPlayerAddItem(cid, 1988, 1, true) -- backpack
        doPlayerAddItem(cid, 2323, 1, true) -- helmet
        doPlayerAddItem(cid, 8871, 1, true) -- armor
        doPlayerAddItem(cid, 2187, 1, true) -- weapon
        doPlayerAddItem(cid, 8902, 1, true) -- shield
        doPlayerAddItem(cid, 7730, 1, true) -- legs
        doPlayerAddItem(cid, 2195, 1, true) -- boots

        local backpack = doPlayerAddItem(cid, 1988, 1, true)
        doAddContainerItem(backpack, 1111111, 1)
        doAddContainerItem(backpack, 1111111, 1)

    -- Druid
    elseif v == 2 then
        doPlayerAddItem(cid, 1988, 1, true) -- backpack
        doPlayerAddItem(cid, 2323, 1, true) -- helmet
        doPlayerAddItem(cid, 8871, 1, true) -- armor
        doPlayerAddItem(cid, 2187, 1, true) -- weapon
        doPlayerAddItem(cid, 8902, 1, true) -- shield
        doPlayerAddItem(cid, 7730, 1, true) -- legs
        doPlayerAddItem(cid, 2195, 1, true) -- boots

        local backpack = doPlayerAddItem(cid, 1988, 1, true)
        doAddContainerItem(backpack, 1111111, 1)
        doAddContainerItem(backpack, 1111111, 1)


    -- Paladin
    elseif v == 3 then
        doPlayerAddItem(cid, 1988, 1, true) -- backpack
        doPlayerAddItem(cid, 2493, 1, true) -- helmet
        doPlayerAddItem(cid, 8891, 1, true) -- armor
        doPlayerAddItem(cid, 7368, 1, true) -- weapon
        doPlayerAddItem(cid, 2514, 1, true) -- shield
        doPlayerAddItem(cid, 7730, 1, true) -- legs
        doPlayerAddItem(cid, 2195, 1, true) -- boots

        local backpack = doPlayerAddItem(cid, 1988, 1, true)
        doAddContainerItem(backpack, 1111111, 1)
        doAddContainerItem(backpack, 1111111, 1)


    -- Knight
    elseif v == 4 then
        doPlayerAddItem(cid, 1988, 1, true) -- backpack
        doPlayerAddItem(cid, 2493, 1, true) -- helmet
        doPlayerAddItem(cid, 2472, 1, true) -- armor
        doPlayerAddItem(cid, 2400, 1, true) -- weapon
        doPlayerAddItem(cid, 2514, 1, true) -- shield
        doPlayerAddItem(cid, 2470, 1, true) -- legs
        doPlayerAddItem(cid, 2195, 1, true) -- boots
        doPlayerAddItem(cid, 2431, 1, true) -- an additional weapon

        local backpack = doPlayerAddItem(cid, 1988, 1, true)
        doAddContainerItem(backpack, 1111111, 1)
        doAddContainerItem(backpack, 1111111, 1)

    end
   
    setPlayerStorageValue(cid, storage, 1)

    return true
end
 
I tried to tell you before. xD
The starting items script your looking for doesn't exist yet.
There's no easy way to fix this script, it basically needs to be written from scratch.

No need to be fancy with tables, you can just do it "the noob way".
I set-up what you have, just do the extra backpack of stuff you want.

Code:
local storage = 11111

function onLogin(cid)

    -- Check if quest has been completed before.
    if getPlayerStorageValue(cid, storage) == 1 then
        return true
    end

    -- adding this part because I know you specifically need it.
    for i = 1, 4 do
        doRemoveItem(getPlayerSlotItem(cid, i + 2).uid)
    end

    local v = getPlayerVocation(cid)

    -- Sorcerer
    if v == 1 then
        doPlayerAddItem(cid, 1988, 1, true) -- backpack
        doPlayerAddItem(cid, 2323, 1, true) -- helmet
        doPlayerAddItem(cid, 8871, 1, true) -- armor
        doPlayerAddItem(cid, 2187, 1, true) -- weapon
        doPlayerAddItem(cid, 8902, 1, true) -- shield
        doPlayerAddItem(cid, 7730, 1, true) -- legs
        doPlayerAddItem(cid, 2195, 1, true) -- boots

        local backpack = doPlayerAddItem(cid, 1988, 1, true)
        doAddContainerItem(backpack, 1111111, 1)
        doAddContainerItem(backpack, 1111111, 1)

    -- Druid
    elseif v == 2 then
        doPlayerAddItem(cid, 1988, 1, true) -- backpack
        doPlayerAddItem(cid, 2323, 1, true) -- helmet
        doPlayerAddItem(cid, 8871, 1, true) -- armor
        doPlayerAddItem(cid, 2187, 1, true) -- weapon
        doPlayerAddItem(cid, 8902, 1, true) -- shield
        doPlayerAddItem(cid, 7730, 1, true) -- legs
        doPlayerAddItem(cid, 2195, 1, true) -- boots

        local backpack = doPlayerAddItem(cid, 1988, 1, true)
        doAddContainerItem(backpack, 1111111, 1)
        doAddContainerItem(backpack, 1111111, 1)


    -- Paladin
    elseif v == 3 then
        doPlayerAddItem(cid, 1988, 1, true) -- backpack
        doPlayerAddItem(cid, 2493, 1, true) -- helmet
        doPlayerAddItem(cid, 8891, 1, true) -- armor
        doPlayerAddItem(cid, 7368, 1, true) -- weapon
        doPlayerAddItem(cid, 2514, 1, true) -- shield
        doPlayerAddItem(cid, 7730, 1, true) -- legs
        doPlayerAddItem(cid, 2195, 1, true) -- boots

        local backpack = doPlayerAddItem(cid, 1988, 1, true)
        doAddContainerItem(backpack, 1111111, 1)
        doAddContainerItem(backpack, 1111111, 1)


    -- Knight
    elseif v == 4 then
        doPlayerAddItem(cid, 1988, 1, true) -- backpack
        doPlayerAddItem(cid, 2493, 1, true) -- helmet
        doPlayerAddItem(cid, 2472, 1, true) -- armor
        doPlayerAddItem(cid, 2400, 1, true) -- weapon
        doPlayerAddItem(cid, 2514, 1, true) -- shield
        doPlayerAddItem(cid, 2470, 1, true) -- legs
        doPlayerAddItem(cid, 2195, 1, true) -- boots
        doPlayerAddItem(cid, 2431, 1, true) -- an additional weapon

        local backpack = doPlayerAddItem(cid, 1988, 1, true)
        doAddContainerItem(backpack, 1111111, 1)
        doAddContainerItem(backpack, 1111111, 1)

    end
  
    setPlayerStorageValue(cid, storage, 1)

    return true
end
the boss <3
 
I tried to tell you before. xD
The starting items script your looking for doesn't exist yet.
There's no easy way to fix this script, it basically needs to be written from scratch.

No need to be fancy with tables, you can just do it "the noob way".
I set-up what you have, just do the extra backpack of stuff you want.

Code:
local storage = 11111

function onLogin(cid)

    -- Check if quest has been completed before.
    if getPlayerStorageValue(cid, storage) == 1 then
        return true
    end

    -- adding this part because I know you specifically need it.
    for i = 1, 4 do
        doRemoveItem(getPlayerSlotItem(cid, i + 2).uid)
    end

    local v = getPlayerVocation(cid)

    -- Sorcerer
    if v == 1 then
        doPlayerAddItem(cid, 1988, 1, true) -- backpack
        doPlayerAddItem(cid, 2323, 1, true) -- helmet
        doPlayerAddItem(cid, 8871, 1, true) -- armor
        doPlayerAddItem(cid, 2187, 1, true) -- weapon
        doPlayerAddItem(cid, 8902, 1, true) -- shield
        doPlayerAddItem(cid, 7730, 1, true) -- legs
        doPlayerAddItem(cid, 2195, 1, true) -- boots

        local backpack = doPlayerAddItem(cid, 1988, 1, true)
        doAddContainerItem(backpack, 1111111, 1)
        doAddContainerItem(backpack, 1111111, 1)

    -- Druid
    elseif v == 2 then
        doPlayerAddItem(cid, 1988, 1, true) -- backpack
        doPlayerAddItem(cid, 2323, 1, true) -- helmet
        doPlayerAddItem(cid, 8871, 1, true) -- armor
        doPlayerAddItem(cid, 2187, 1, true) -- weapon
        doPlayerAddItem(cid, 8902, 1, true) -- shield
        doPlayerAddItem(cid, 7730, 1, true) -- legs
        doPlayerAddItem(cid, 2195, 1, true) -- boots

        local backpack = doPlayerAddItem(cid, 1988, 1, true)
        doAddContainerItem(backpack, 1111111, 1)
        doAddContainerItem(backpack, 1111111, 1)


    -- Paladin
    elseif v == 3 then
        doPlayerAddItem(cid, 1988, 1, true) -- backpack
        doPlayerAddItem(cid, 2493, 1, true) -- helmet
        doPlayerAddItem(cid, 8891, 1, true) -- armor
        doPlayerAddItem(cid, 7368, 1, true) -- weapon
        doPlayerAddItem(cid, 2514, 1, true) -- shield
        doPlayerAddItem(cid, 7730, 1, true) -- legs
        doPlayerAddItem(cid, 2195, 1, true) -- boots

        local backpack = doPlayerAddItem(cid, 1988, 1, true)
        doAddContainerItem(backpack, 1111111, 1)
        doAddContainerItem(backpack, 1111111, 1)


    -- Knight
    elseif v == 4 then
        doPlayerAddItem(cid, 1988, 1, true) -- backpack
        doPlayerAddItem(cid, 2493, 1, true) -- helmet
        doPlayerAddItem(cid, 2472, 1, true) -- armor
        doPlayerAddItem(cid, 2400, 1, true) -- weapon
        doPlayerAddItem(cid, 2514, 1, true) -- shield
        doPlayerAddItem(cid, 2470, 1, true) -- legs
        doPlayerAddItem(cid, 2195, 1, true) -- boots
        doPlayerAddItem(cid, 2431, 1, true) -- an additional weapon

        local backpack = doPlayerAddItem(cid, 1988, 1, true)
        doAddContainerItem(backpack, 1111111, 1)
        doAddContainerItem(backpack, 1111111, 1)

    end
  
    setPlayerStorageValue(cid, storage, 1)

    return true
end
Xikini rules, was looking for this
 
Back
Top