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

First items bug,start health/mana bug

Mister Budex

BudexOT.com
Joined
Jun 22, 2016
Messages
1,547
Solutions
18
Reaction score
378
Hello everyone , well im making an VenoreWAR OT and this is my first ot, so im using tfs 0.3.6 Tibia 8,60
and my problem is now.
When i make character i be 130 level and 70 m lvl ( i change it ) so i like it..
now health and mana are same like 8 level.. so how to change start health and mana and where ?
second problem is first items
im using a script saw from otland few 3-4 tried it .. some works but i dont really like it.
so im using this one
data>crreaturescripts>scripts>firstitems.lua
local firstItems_storage = 30001
local commonItems = {
{itemid=2554, inContainer = TRUE}, -- shovel
{itemid=2120, inContainer = TRUE}, -- rope
{itemid=2789, count=20, inContainer = TRUE}, -- meat
}
local firstItems = {
{ -- Sorcerer
{itemid=1988, container = TRUE}, -- backpack
{itemid=8902}, -- spellbook of mind control
{itemid=2187}, -- wand of inferno
{itemid=8871}, -- focus cape
{itemid=2323}, -- hat of the mad
{itemid=7730}, -- blue legs
{itemid=2195}, -- boots of haste
},
{ -- Druid
{itemid=1988, container = TRUE}, -- backpack
{itemid=8902}, -- spellbook of mind control
{itemid=8910}, -- underworld rod
{itemid=8871}, -- focus cape
{itemid=2323}, -- hat of the mad
{itemid=7730}, -- blue legs
{itemid=2195}, -- boots of haste
},
{ -- Paladin
{itemid=1988, container = TRUE}, -- backpack
{itemid=7368}, -- assassin stars
{itemid=2514}, -- mastermind shield
{itemid=8891}, -- paladin armor
{itemid=2493}, -- demon helmet
{itemid=7730}, -- blue legs
{itemid=2195}, -- boots of haste
},
{ -- Knight
{itemid=1988, container = TRUE}, -- backpack
{itemid=2400, inContainer = TRUE}, -- magic sword
{itemid=2431, inContainer = TRUE}, -- stonecutter axe
{itemid=2514}, -- mastermind shield
{itemid=2472}, -- magic plate armor
{itemid=2493}, -- demon helmet
{itemid=2470}, -- golden legs
{itemid=2195}, -- boots of haste
}
}
for _, items in ipairs(firstItems) do
for _, item in ipairs(commonItems) do
table.insert(items, item)
end
end
function onLogin(cid)
if getPlayerGroupId(cid) < 2 and getPlayerStorageValue(cid, firstItems_storage) <= 0 then
local currvoc = getPlayerVocation(cid)
local vocation = 5 > currvoc and currvoc or currvoc - 4
local giveItems = firstItems[vocation]
if giveItems then
for _, v in ipairs(giveItems) do
if v.container == TRUE then
backpack = doPlayerAddItem(cid, v.itemid, 1)
elseif v.inContainer == TRUE then
doAddContainerItem(backpack, v.itemid, v.c

______________________________________________________________________________ So now it dont works :( also i want for every vocation to be in backpack like potions,runes,food,shovel,rope etc.
Thanks !

Anyone :( ?
 
Last edited by a moderator:
Back
Top