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

Lua Moveevent, Keep people from deEquip Backpack

goo_pile

Member
Joined
Mar 12, 2013
Messages
29
Reaction score
7
Hi i've been trying to make a simple script wich keep players original's bp(40slot) from being removed off the Bp slot

First thought It would be simple but I can't get the position where I drop the bp, either its on the map on on an other slot.

well here is my script:
Code:
function onDeEquip(cid, Item, Slot)
doCreatureSay(cid, "I should Not leave all my Items Behind me...", TALKTYPE_ORANGE_1)
local pos = getThingPos(Item.uid)
local Item2 = getThingFromPos(pos)
doPlayerAddItem(cid, Item2.uid, 1)
return true
end

I am using OTServ R6105 for 9.10
Thanks in advance for any tips

PS: OOH I forgot, THis script also create some different mountain boarder under me on deEquip. LOl How strange.
 
Last edited:
Back
Top