vexler222
Active Member
- Joined
- Apr 22, 2012
- Messages
- 714
- Solutions
- 15
- Reaction score
- 46
Hi, i have problem with this script, it removing more than 1 item, when i has 3 banana skins under me, then script removed 2 of 3, if i has 100 banana skins, then script removed ~10.. why? Where is problem?
Lua:
local bs = MoveEvent()
function bs.onStepIn(creature, item, outfit, position)
if creature:isPlayer() then
item:remove() -- when i set here item:remove(1) is same situation, removing more than 1 if under me is more than 2 skins
creature:say("Opps!", TALKTYPE_MONSTER_SAY)
doAddCondition(creature, fight) -- this i got from older script for tfs 0.3.6 i think, cuz i don;t know how to set fight in tfs 1.5
doCreatureSetNoMove(creature, true) -- same like ^^
addEvent(function()
doCreatureSetNoMove(creature, false)
end, 3000)
else
return false
end
end
bs:id(2219)
bs:register()