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 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