i tray make litle randimize waypoint but have problem some error meybe someone know what code be corect
<!-- # 1 --><waypoint x=tostring(-40+math.random(-1, 1)) z=tostring(-17+math.random(-1, 1)) y="62">
Randomize waypoint - what wrong ?
-
- Posts: 446
- Joined: Wed Aug 03, 2011 7:37 pm
Re: Randomize waypoint - what wrong ?
you cannot embed formula's in the <waypoint> attributes.
perhaps something more like:
I havent tested the code of course But you should be able to do something like that.
perhaps something more like:
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<waypoints>
<onLoad>
</onLoad>
<waypoint x="-40" y="62" z="-17" tag="start">
player:moveTo(CWaypoint((-40+math.random(-1,1)), (-17+math.random(-1,1)), 62));
</waypoint>
</waypoints>
Re: Randomize waypoint - what wrong ?
ty for reply
that i cant used variable or code in x="-40" ?
that i cant used variable or code in x="-40" ?
Re: Randomize waypoint - what wrong ?
No, I'm afraid not.kircinek wrote:ty for reply
that i cant used variable or code in x="-40" ?
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Who is online
Users browsing this forum: No registered users and 62 guests