Search found 5 matches

by jonmatt
Tue Dec 18, 2012 6:20 pm
Forum: Runes of Magic
Topic: How to use if+useitem+checkbuff command in script
Replies: 10
Views: 2153

Re: How to use if+useitem+checkbuff command in script

here is my code right now, it seems to work fine for the moment ,still waiting for my bag to be full,to check if the return path travel works as i expetc from it ,do U have any idea about how can i improve my code ? and one more question, how can i create a function that contain the killing spot and ...
by jonmatt
Tue Dec 18, 2012 10:32 am
Forum: Runes of Magic
Topic: How to use if+useitem+checkbuff command in script
Replies: 10
Views: 2153

Re: How to use if+useitem+checkbuff command in script

here is my whole code
<?xml version="1.0" encoding="utf-8"?><waypoints>

<!-- # 1 --><waypoint x="-16535" z="190" y="948"> </waypoint>
<!-- # 2 --><waypoint x="-16392" z="344" y="964"> </waypoint>
<!-- # 3 --><waypoint x="-16282" z="580" y="978"> </waypoint>
<!-- # 4 --><waypoint x="-16384" z ...
by jonmatt
Mon Dec 17, 2012 6:00 pm
Forum: Runes of Magic
Topic: How to use if+useitem+checkbuff command in script
Replies: 10
Views: 2153

Re: How to use if+useitem+checkbuff command in script

hey! thanks for those advices ;) i managed to get it work as i wanted.

but now i'm reaching a new problem , how should i do to get this to work , micro macro tells me it's not "well-formed" at line 15

if player:hasBuff("Burrito à la viande") == false then
repeat inventory:useItem("Burrito à la ...
by jonmatt
Mon Dec 17, 2012 9:24 am
Forum: Runes of Magic
Topic: How to use if+useitem+checkbuff command in script
Replies: 10
Views: 2153

Re: How to use if+useitem+checkbuff command in script

Thanks for those advices , I'm trying to apply them to my code , so now it looks like that

local c=0
repeat
c=c+1
player:mount()
yrest(500)
until c > 2;


I tried with the player.Mounted but he keeps trying to mount undefinitely

that way it tryes to mount 2 times then loop to boting spot,but ...
by jonmatt
Sun Dec 16, 2012 7:25 pm
Forum: Runes of Magic
Topic: How to use if+useitem+checkbuff command in script
Replies: 10
Views: 2153

How to use if+useitem+checkbuff command in script

Hi all,
Right now I'm trying to use those 3 fuctions in one step like : checkbuff(X) , if buff (X) return(false) then useitem(X) which is in inventory, but I really dont know how to do it because i barely understand the if fonction and mine isn't working.

I've got something else wich is also not ...