Natan Beckman
Well-Known Member
Anyone have solution for this problem?
I'm not sure what OTX is or what version of tibia this is for but this bug does not work in the version of 0.4 I use (for 8.6)
Yes, I use it, but I want to adjust the problem, because any item count can do this.If the problem is just when adding money to slots then you can do that it's not possible to add these items there. You can do this in movements, slot hand/ammo and let the lua script return false.
I'm using!put on your config.lua
tibiaClassicSlots = false
And this solve your problem.
function onMoveItem(cid, item, fromPosition, toPosition, fromItem, toItem, fromGround, toGround, status)
if(status.inInv == 1 and status.slot == 5 or status.slot == 6) then
local iInfo = getItemInfo(item.itemid)
if(iInfo and iInfo.slotPosition == 2608) then
local otherHand = getPlayerSlotItem(cid, ((status.slot == 5 and 6) or 5))
if(otherHand.uid > 0) then
doPlayerSendDefaultCancel(cid, RETURNVALUE_BOTHHANDSNEEDTOBEFREE)
return false
end
end
end
return true
end
this? https://github.com/mattyx14/otxserver/commit/076b0e0fc9e69e062cf3649e0989ed53e3a5e14f
Idk.
What otx are you using? talk with martyx, send a private msg
In member function 'virtual Item* Container::clone() const':
51 C:\Users\Natan\Desktop\OTX TESTE\source\container.cpp invalid use of member (did you forget the '&' ?)
51 C:\Users\Natan\Desktop\OTX TESTE\source\container.cpp base operand of '->' is not a pointer
51 C:\Users\Natan\Desktop\OTX TESTE\source\container.cpp *** [obj/container.o] Error 1
_item->totalWeight = totalWeight;