-
jdawg78
- Posts: 10
- Joined: Sat Jan 14, 2012 11:40 pm
#1
Post
by jdawg78 » Sun Jan 29, 2012 5:58 pm
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints type="NORMAL">
<!-- # 1 --><waypoint x="6350" z="4620" y="168">
if inventory:itemTotalCount("stuff im farming") > 594 then sendMacro("UseSkill(1,2)"); yrest(30000); loadPaths("mailbox.xml") end
</waypoint>
<!-- # 2 --><waypoint x="6489" z="4454" y="168">
if inventory:itemTotalCount(0) == 0 then loadPaths("merchant.xml")
elseif inventory:itemTotalCount("Razor Tooth Arrow") == 0 then loadPaths("merchant.xml"); end
</waypoint>
<!-- # 3 --><waypoint x="6452" z="4307" y="168"> </waypoint>
<!-- # 4 --><waypoint x="6353" z="4526" y="168"> </waypoint>
</waypoints>
on line 7 im getting an error when i try to add an elseif statement.. what did i do wrong?
Last edited by
jdawg78 on Sun Jan 29, 2012 5:59 pm, edited 1 time in total.
-
jdawg78
- Posts: 10
- Joined: Sat Jan 14, 2012 11:40 pm
#3
Post
by jdawg78 » Sun Jan 29, 2012 6:01 pm
uhm.. i believe i do
if inventory:itemTotalCount(0) == 0
then loadPaths("merchant.xml")
elseif inventory:itemTotalCount("Razor Tooth Arrow") == 0
then loadPaths("merchant.xml"); end
-
Xmen
- Posts: 45
- Joined: Thu Jan 19, 2012 10:18 am
#4
Post
by Xmen » Sun Jan 29, 2012 6:41 pm
remove "type="NORMAL" "
<?xml version="1.0" encoding="utf-8"?><waypoints type="NORMAL">
<!-- # 1 --><waypoint x="6350" z="4620" y="168">
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<!-- # 1 --><waypoint x="6350" z="4620" y="168">
--[[Hi @ll my english is very bad so I have translated the following text with google]]--
-
rock5
- Posts: 12173
- Joined: Tue Jan 05, 2010 3:30 am
- Location: Australia
#5
Post
by rock5 » Sun Jan 29, 2012 6:55 pm
jdawg78 wrote:uhm.. i believe i do
if inventory:itemTotalCount(0) == 0
then loadPaths("merchant.xml")
elseif inventory:itemTotalCount("Razor Tooth Arrow") == 0
then loadPaths("merchant.xml"); end
Did you write it exactly like that? I can't see any errors. Was there any other code in the waypoint?
- 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.”
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 4 guests