Everyone who has never used our Bots before, can test each one for 2 days without any limitation.
The trial is given automatically when you login on the Bot, but in some cases it wouldn't work (security reasons).
If this happens, send me a private message and i will be checking the failed trials manually and adding it for those who didn't get it.
We are looking for resellers who may accept payment methods different from ours, including classictibia's cash, realesta's cash, mastercores' cash, etc. Interested? Click here at anytime.



Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
oil on lamp !
#1
goodnight, @Arkilys I need a script that when the light of the lamp ends he uses the oil on it.
Reply

#2
I tried to copy another script but it didn't work, look at it

local enchanted_helmet_id = 2915 -- Full Helmet of the Ancients (enchanted!)
local helmet_id = 2916 -- Helmet of the Ancients (not enchanted!)
local item_to_enchant = 2874 -- Small Ruby
local mainbp = 'bag' -- Container to move helmet. Index or name

local helmet_item = head()

if helmet_item.id == helmet_id then
moveitems(helmet_id, mainbp, 'arrow slot', 1)
wait(800, 1200)
elseif itemcount(helmet_id) > 0 and itemcount(item_to_enchant) > 0 then
useitemonitem(helmet_id, item_to_enchant, mainbp)
wait(800, 1200)
elseif itemcount(enchanted_helmet_id) > 0 and helmet_item.id ~= enchanted_helmet_id then
moveitems(enchanted_helmet_id, 'arrow slot', mainbp)
wait(500)
end


Where i put this scrip? here is not working , something wrong with "local"
obs: i got the last version.
Reply

#3
Hello.

You should pay attention to OIL_ID, because OIL is a FLUID. So if you place oil fluid inside a vial then the item will be a vial with oil inside, but stills a vial.
So to find the OIL_ID then you move the vial (or any liquid container you use) to your BELT/ARROW slot and run this on Bot's CONSOLE tab:
print(belt())
It will print something like { id = 2874, count = 8 }, the OIL_ID is the value on "count". So using this example, OIL_ID would be 8.


local LAMP_EMPTY_ID = 2916 -- Id of lamp when needs to refill
local LAMP_FULL_ID = 2915 -- Id of lamp after refilling.
local OIL_ID = 11 -- Oil id.
local OIL_BP = 'red backpack'


local belt_item = belt()
if belt_item.id == LAMP_EMPTY_ID then
    moveitems(LAMP_EMPTY_ID, OIL_BP, 'belt', 1)
    wait(800, 1200)
elseif itemcount(LAMP_EMPTY_ID) > 0 and itemcount(OIL_ID) > 0 then
    useitemonitem(OIL_ID, LAMP_EMPTY_ID, OIL_BP)
    wait(800, 1200)
elseif itemcount(LAMP_FULL_ID) > 0 and helmet_item.id ~= LAMP_FULL_ID then
    moveitems(LAMP_FULL_ID, 'belt', OIL_BP)
    wait(500)
    useitem(LAMP_FULL_ID, 'belt')
    wait(500)
end
Reply

#4
good afternoon I checked and really the id is 11, but it does not do any action, and remembering after he uses the fluid on the lamp he must click for it to light up
Reply

#5
|Only Registered members can see download links. | Click here to buy subscription or here to register.
If it doesn't do anything then you setup wrong ids.
Reply

#6
|Only Registered members can see download links. | Click here to buy subscription or here to register.
Can I use a bag instead of a backpack? does arrow slot call belt? is correct ?
Reply

#7
|Only Registered members can see download links. | Click here to buy subscription or here to register.
Yes for both questions.
Reply

#8
|Only Registered members can see download links. | Click here to buy subscription or here to register.
he is pulling the lamp, into the bag that contains the oil
Reply

#9
|Only Registered members can see download links. | Click here to buy subscription or here to register.
Hello.

Yes, that's the script you copied from HOTA and supposed to move to oil bp.

You can try this way, but i didn't tested.
local LAMP_EMPTY_ID = 2916 -- Id of lamp when needs to refill
local LAMP_TURNED_OFF_ID = 2914 -- Id of lamp when filled but turned off.
local OIL_ID = 11 -- Oil id.
local OIL_BP = 'red backpack'


local belt_item = belt()
if belt_item.id == LAMP_EMPTY_ID and itemcount(OIL_ID) > 0 then
    useitemonitem(OIL_ID, LAMP_EMPTY_ID, 'belt', OIL_BP)
    wait(800, 1200)
    belt_item = belt()
    if belt_item.id == LAMP_TURNED_OFF_ID then
        useitem(LAMP_TURNED_OFF_ID, 'belt')
        wait(800, 1200)
    end
end
Reply

#10
|Only Registered members can see download links. | Click here to buy subscription or here to register.
i need him to just use the oil on the lamp when it runs out without moving from the spot
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016