View Full Version : refill ring slot?
killerfanges
08-09-2012, 11:08 PM
Does the bot have that option like im using a sword ring right now can it replace it once the time exspires?
Hendy
08-09-2012, 11:13 PM
function equipRing(ID)
BackpackName = 'ENTERYOURBPHERE'
local Backpack = Container.GetByName(BackpackName)
while (Backpack:CountItemsOfID(ID) > 0) and (Backpack:isOpen() == true) and (Self.Ring().id == 0) do
for Spot = 0, Backpack:ItemCount() do
local Ring = Backpack:GetItemData(Spot)
if (Ring.id == ID) then
Backpack:MoveItemToEquipment(Spot, "ring")
return true
end
end
end
return false
end
while (true) do
equipRing(ENTERRINGIDHERE)
wait(1000,1500)
end
killerfanges
08-09-2012, 11:24 PM
How do i put tht into the script?
dexter killer
08-09-2012, 11:45 PM
Copy all code in the "code lua box" and then paste in the notepad. Click File > Save as. Save type: All files and put de lua extension in the file. E.g: swordring.lua
Go to My Docs\xenobot\scripts and put the lua file inside the folder.
killerfanges
08-10-2012, 03:21 AM
i dont understand how do i put it in the script ? im sorry
Crown Royal
08-10-2012, 04:08 AM
This is for people like you, Thanks to Floppy Jimmy!
http://forums.xenobot.net/showthread.php?970-Tutorial-How-to-use-the-Scripter
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.