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

[bug]First items in ground!

Taelk

New Member
Joined
Feb 8, 2012
Messages
15
Reaction score
0
> Sorry my bad english.
> this is my first post.
> Sorry if it's not the correct area to my post.

I use tfs 0.3.6.
I was configure the first items to be only a bag.
But when the player enter in game the bag is not in bagslot. It's in ground.
I think it's probably a bug in source...

Can you help?
 
@seminari
this is the my first items, but i have test all i see.
local storage = 23045
function onLogin(cid)
local config = {
voc_items = {
{ -- SORC
{2120}, -- rope
},
{ -- DRUID
{2120}, -- rope
},
{ -- PALADIN
{2120}, -- rope
},
{ -- KNIGHT
{2120}, -- rope
}
},
all_items = {
{2651} -- Coat
},
extra_items = { -- IN BP
{2050}, -- brown mushroom
{2677, 50} -- BlueBerryes
},
knight_weapons = { -- IN BP
{2512} -- shield
}
}
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
return true
end

@ sorbal
no have difference between what item i put in first items.

@info
if i have a character with 50gold coin in hand or in arrow slot, and i no have a bag or backpack. I can't buy things in npc and if i do a quest the item drop in ground.

> Sorry my bad english.
> ty for answers.

Change bag for backpack and give a response here.
nothing changes.

maybe paste script of first items? hm?
the problem is not in first items i have test every i see.
 
Does the player have CAP for the items? Maybe add more CAP for the samples in database.
 
I have the same problem... Also, just for your guys information.. maybe this will help, maybe it won't but when you are wearing nothing and make a backpack (1988) it will drop on the floor instead of going in your backpack slot.
 
Maybe the .oz for the backpack is calculated wrong?
Look at items.xml and check the weight.
XML:
<item id="1988" article="a" name="backpack">
	<attribute key="weight" value="1800" />
	<attribute key="containerSize" value="20" />
	<attribute key="slotType" value="backpack" />
</item>
Supposed to be like that, I guess :p

So 400 cap isn't enough >.<
 
I'm talking about when you first start all the items drop on the floor that you are supposed to start with. But I was saying that it's the same with a GOD if you make an item without a backpack on... It's like the server can't equip a backpack by itself on any character.
 
I got the same problem, and i know Why...... the solution of this is to fix the "stacking solution" in 0.3.6 distros .

I Modified the stack of items in my Crying Damson 0.3.6, before of that i dont had that problem, After of that i Got It ^^ !!!




I hope my experience can be useful for all you
 
I got the same problem, and i know Why...... the solution of this is to fix the "stacking solution" in 0.3.6 distros .

I Modified the stack of items in my Crying Damson 0.3.6, before of that i dont had that problem, After of that i Got It ^^ !!!




I hope my experience can be useful for all you

Could you explain about how to do this?

Thanks
 
Back
Top