johnsamir
Advanced OT User
Hi
I use this script, the problem is that the table is broken, and i don't know where or whyit is not giving error in console but it does not work 100%
for example in the table there are items id that are not being giving to players, example the paladin vocation is not receiving sd or uh rune even when the items are listed in the table for that vocation, and if i add by example, an item to the druid table it work, I'm using this as main firstitems.lua file.
EDIT : Found out that this is related to client as my otcv8 is displaying capacty in this way "2.2" for the server it's like the player does not have capacity, how to solve this? i was trying this C++ - OTCV8 - OTX.2 - 7.72 FreeCapacity problem. (https://otland.net/threads/otcv8-otx-2-7-72-freecapacity-problem.274509/#post-2644306) but it does not work im using latest otcv8 downloaded almost a month ago and tfs 1.4 downgraded by nekiro
I use this script, the problem is that the table is broken, and i don't know where or whyit is not giving error in console but it does not work 100%
for example in the table there are items id that are not being giving to players, example the paladin vocation is not receiving sd or uh rune even when the items are listed in the table for that vocation, and if i add by example, an item to the druid table it work, I'm using this as main firstitems.lua file.
Lua:
-- Without Rookgaard
local config = {
[1] = {
--equipment
items = {{2456, 1}, {2656, 1}, {2491, 1}, {2647, 1}, {2195, 1}, {2546, 100}, {2171, 1}},
--container
container = {{2120, 1}, {2554, 1}, {2789, 100}, {2167, 1}, {2169, 1}, {2006, 7}, {2261, 1}, {2305, 1}, {2293, 1}, {2268, 1}, {2304, 1}, {2273, 1}}
},
[2] = {
--equipment
items = {{2456, 1}, {2656, 1}, {2491, 1}, {2647, 1}, {2195, 1}, {2546, 100}, {2171, 1}},
--container
container = {{2120, 1}, {2554, 1}, {2789, 100}, {2167, 1}, {2169, 1}, {2006, 7}, {2261, 1}, {2305, 1}, {2293, 1}, {2268, 1}, {2304, 1}, {2273, 1}}
},
[3] = {
--equipment
items = {{2455, 1}, {2476, 1}, {2475, 1}, {2647, 1}, {2195, 1}, {2543, 100}, {2171, 1}},
--container rope, shovel, health potion, bow, 50 arrow
container = {{2120, 1}, {2554, 1}, {2789, 100}, {2167, 1}, {2169, 1}, {2006, 7}, {2261, 1}, {2305, 1}, {2293, 1}, {2268, 1}, {2304, 1}, {2273, 1}}
},
[4] = {
--equipment
items = {{2536, 1}, {2407, 1}, {2487, 1}, {2497, 1}, {2477, 1}, {2195, 1}, {2562, 1}, {2171, 1}},
--container rope, shovel, health potion, bow, 50 arrow
container = {{2120, 1}, {2554, 1}, {2789, 100}, {2167, 1}, {2169, 1}, {2006, 7}, {2261, 1}, {2305, 1}, {2304, 1}, {2273, 1}}
}
}
function onLogin(player)
local targetVocation = config[player:getVocation():getId()]
if not targetVocation then
return true
end
if player:getLastLoginSaved() ~= 0 then
return true
end
for i = 1, #targetVocation.items do
player:addItem(targetVocation.items[i][1], targetVocation.items[i][2])
end
local backpack = player:addItem(1988)
if not backpack then
return true
end
for i = 1, #targetVocation.container do
backpack:addItem(targetVocation.container[i][1], targetVocation.container[i][2])
end
return true
end
Post automatically merged:
EDIT : Found out that this is related to client as my otcv8 is displaying capacty in this way "2.2" for the server it's like the player does not have capacity, how to solve this? i was trying this C++ - OTCV8 - OTX.2 - 7.72 FreeCapacity problem. (https://otland.net/threads/otcv8-otx-2-7-72-freecapacity-problem.274509/#post-2644306) but it does not work im using latest otcv8 downloaded almost a month ago and tfs 1.4 downgraded by nekiro
Last edited: