Log in

View Full Version : Simple script to use rune, not on self but only "use"



kojootti69
04-12-2016, 11:31 PM
Hi guys first post and its application :( well I just started out and I need a script that uses rune when hp is below 80% or so. It doesnt need to use on self just "Use" it. Its OT and the rune works without using it onself.

Thank you very much if u can help me!

Proteus
04-12-2016, 11:43 PM
while true do
if ((Self.Health()/Self.MaxHealth())*100) < 80 then
Self.UseItem(PutTheRuneIDHere)
end
wait(1000,1200)
end

That should work, just make sure to update the ID or it won't do anything :p

Also theres probably a better way to get health percent, but I've never really checked lol

kojootti69
04-13-2016, 02:02 AM
Thanks for your reply mate! :) But how do I use it? Im trying to put it on copy of example scripts and load it from ingame but it only opens notepad when I double click it :S even when its .lua

kojootti69
04-13-2016, 02:15 AM
Ah found it, btw it doesnt work properly, it heals only when its 90% hp, if it goes under it doesnt bother. Btw whats that wait time? why is there 2 numbers. Ty alot for ur script tho<3

desche188
04-13-2016, 02:22 AM
Ah found it, btw it doesnt work properly, it heals only when its 90% hp, if it goes under it doesnt bother. Btw whats that wait time? why is there 2 numbers. Ty alot for ur script tho<3

i think its just a range so its less detectable with when it does it

kojootti69
04-13-2016, 02:23 AM
It just suddendly stops using the rune even when I put 100 there or change the < to >

E: Yeah when my hp gets lower it completely stops

E2: What should I do? :( Its otherwise perfect script..

kojootti69
04-13-2016, 03:00 AM
Also can someone make simple script to do a spell every minute or so? utani hura , after the effect is gone.. I think its minute or two.

sbnztar
04-13-2016, 08:36 AM
Also can someone make simple script to do a spell every minute or so? utani hura , after the effect is gone.. I think its minute or two.

That is already implented in Xenobot's system. If you click "Support" > "Condition Manager" and there it is.