• 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] Help

conde2

Active Member
Joined
Jun 22, 2008
Messages
348
Reaction score
44
I need some function for the player can not remove the item =S
Exemple the player have a ring and he can't remove rhe ring for nothing !!
How can i do this?

I try use function onDeEquipeItem and onRemoveItem but I fail !!
If someone know plz tell me i need so much !!
 
??
I don't understand u Chojrak
My idea is: The player have the item but he cant remove it.
Where i use this for do what i need?
 
Hes trying to make it so you cant De-Equip an item from your inventory, And the way i think you might be able to do this is in movements make it Return FALSE when you try and De-Equip.
 
@Choj,
If he put ring in slot, he want it to stay FOREVER.
Cannot remove it.

Example:
LUA:
local ring = XXXX
function onDeEquip(cid)
	if(getPlayerSlotItem(cid, CONST_SLOT_RING).itemid == ring) then
		print("You cannot remove this.")
		return false
	end
end

@Everyone Else,
Don't be a bunch of asswipes, Choj doesn't understand english well.
 
Last edited:
If FALSE doesn't work, then false won't work either. Unless he's using 0.2.x, but even then it's unlikely to work.
 
@Cykotitan

No i'm using the 0.3.5
And doesn 't work =X
I think this is impossible if i use LUA =S

I found the aswer thx for all xD
 
Back
Top