View Full Version : script to open bags in OTServer
xegadebot
03-05-2013, 09:31 AM
could someone post here a script to open bags that falls in OTServer of monsters, I think it will help many people.
thank you.
This is the suggestions section... Not the request section.
Blanz420
03-18-2013, 01:09 AM
6861
This is a script I use on OT's to loot and open the bags inside of monsters, I found it on the forum not sure who its made by but credits aren't mine.
I haven't used it in awhile because I haven't been that active on OT's but I'm sure it still works, test it out and see whats upp.
Throw it in your scripts folder, inject xeno n open the script in the scripter.
Enjoyy!
Daniel-Sp
08-02-2013, 02:30 AM
Edit:
Using the script you mentioned I think that it`s enough.. I just don`t know how to add this code when the corpose is open..
for spot = 0, cont:ItemCount() --Running through spots in cont that have an item
local item = cont:GetItemData(spot) --Making a table containing item data from spot.
if Item.isContainer(item.id) then --Checking if the item in that spot is a container.
cont:UseItem(spot, true) -- Using the item to open it in the same window.
break
end
end
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.