Quote Originally Posted by smoq View Post
Hello guys. I am playing on OT Server and need simply script to drop item on ground or stop looter when cap is below than X. I got many situations when my character stay near dead body and try to take item when i dont have cap for it. If possible to do simply lua script to repair it. I think It should look like below than X cap - stoop looter or if "This item it is too heavy" drop "ID, ID, ID..." on ground.

Peace!
Quote Originally Posted by Mvm1 View Post
This scripted worked somehow but not as intended, I had cap limit = 120 cap, once it reach or passes that cap it throws the items in your backpack to the ground, in this case local drop = {"royal helmet", "dragon scale mail", "tower shield"}


He wanted a script that once he reach "x" cap, it stops looting.
lua code:

local MinCap = 200
Module.New("loot dropper", function(mod)
if (Self.Cap() < MinCap) then
Looter.Stop()
else
Looter.Start()
end
end
mod:Delay(math.random(1500,3000))
end)


:>