Player level

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Alleexx
Posts: 120
Joined: Sun May 15, 2011 4:28 am
Location: Sweden

Player level

#1 Post by Alleexx »

Hi I have a problem.
I have a level 43 char but when I use this code:

Code: Select all

	<!-- # 17 --><waypoint x="2844" z="11641" y="132" tag="stonecheck">
	if player.Level > 42 then
	__WPL:setForcedWaypointType("RUN")
__WPL:setWaypointIndex(__WPL:findWaypointTag("BackToCamp"))
end
	if inventory:getItemCount(209457) > 29 then -- Stone Gift
	__WPL:setForcedWaypointType("RUN")
	__WPL:setWaypointIndex(__WPL:findWaypointTag("StoneGiftTurnin"))
	end
	</waypoint>
it won't go to the waypoint with tag "BackToCamp" even if it's above level 42.

Any ideas to why it doesn't work?
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Player level

#2 Post by rock5 »

I'm assuming it's because inventory:getItemCount(209457) > 29 so those settings overide the previous settings. Maybe you want

Code: Select all

   if player.Level > 42 then
   __WPL:setForcedWaypointType("RUN")
__WPL:setWaypointIndex(__WPL:findWaypointTag("BackToCamp"))
   elseif inventory:getItemCount(209457) > 29 then -- Stone Gift
   __WPL:setForcedWaypointType("RUN")
   __WPL:setWaypointIndex(__WPL:findWaypointTag("StoneGiftTurnin"))
   end
  • 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
Alleexx
Posts: 120
Joined: Sun May 15, 2011 4:28 am
Location: Sweden

Re: Player level

#3 Post by Alleexx »

Ok thanks alot for the fast answer. I will be away this weekend so can't try it out until monday but I'm sure it will work.
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Player level

#4 Post by rock5 »

Alleexx wrote:Ok thanks alot for the fast answer. I will be away this weekend so can't try it out until monday but I'm sure it will work.
Ah, so you're not aware of my habit of posting with syntax errors? You'll learn. :D
  • 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
Alleexx
Posts: 120
Joined: Sun May 15, 2011 4:28 am
Location: Sweden

Re: Player level

#5 Post by Alleexx »

Ok now I've finally tested this and it works just fine. Thx rock :)
Post Reply