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

Condition in item

Cash22

New Member
Joined
Sep 5, 2019
Messages
14
Solutions
1
Reaction score
1
I need a condition that when the item is pulled to the arrow it removes the character's hunger, but when the character removes the arrow item the hunger returns.
tfs 0.4
 
You tried this one? only remove the left-hand/right-hand on equip/deequip
 
I tried but when I remove the item the player does not get hungry again, so if I do for example 10 hours of enchantment, the person will use for 1 second to remove the hunger understand?


I need him to be hungry if I remove the item from my hand
 
Try this one
Lua:
function onEquip(cid, item, slot)
  doPlayerFeed(cid, 1400)
  return true
end
function onDeEquip(cid, item, slot)
  doPlayerFeed(cid, -1400)
  return true
end
 
Last edited:
In this case it seems that he no longer feels hungry for long.
I need that: 1- player with men uses the item then becomes hungry. 2- if the player removes the item then the hunger comes back.
ok i will test


I took the test, he starved, but did not return hungry. very strange because it seems logical your script @M0ustafa
 
Last edited:
I can't understand sorry, Anyways I edited my script above I had a "0" typo.
 
Back
Top