target and choice quest from bullettin

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Sasuke
Posts: 503
Joined: Mon May 17, 2010 3:40 pm
Location: Poland

target and choice quest from bullettin

#1 Post by Sasuke » Sat Nov 23, 2013 1:34 pm

guys i'd like to make a macro where my player target and open bullettin board,choice quest and after do it go to swtich class and deliver it ........i know with change class but i need an help for open bullettin board.....i check some post in site but i read another link where i see one simple command for it.....i try without success any help?

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
	<!-- #  1 --><waypoint x="-14412" z="-365" y="807">	</waypoint>
player:target_Object("bullettin name")

waypoint is where player stay in front of bullettin,i only find how to target bullettin but any windows opr....in bullettin i'd like to choice 5th option when player take and when him delivery it
ty guys

User avatar
Bill D Cat
Posts: 555
Joined: Sat Aug 10, 2013 8:13 pm
Location: Deep in the Heart of Texas

Re: target and choice quest from bullettin

#2 Post by Bill D Cat » Sat Nov 23, 2013 2:02 pm

If you are using the latest createpath.lua it will figure all that out for you. Just move close to the Bulletin Board and press Numpad 1 to register the location, then hover your mouse over the Board and the title bar will show you the ID to use. I believe you can press the period/Del key on the Numpad to have it target the object while the mouse is over it. Then you can use Numpad 6 to pick the quest you want to accept and/or complete.

Basically, you can use player:target_NPC(#####) or player:target_Object(######) where the #'s are the ID of the bulletin board you want to open, and ChoiceOptionByName() to pick the quest.

Sasuke
Posts: 503
Joined: Mon May 17, 2010 3:40 pm
Location: Poland

Re: target and choice quest from bullettin

#3 Post by Sasuke » Sat Nov 23, 2013 3:10 pm

ok work.....now another problem m8 ..when player do a quest i'd like if him complete before the quest and after go where he can delivery (deliver is not bullettin but npc) after come back to switch class ...i'd like player come back to deliver only when quest is complete
which command must i use for it..i check in site and i find section:

<onLeaveCombat><![CDATA[
questname_5 = "quest name";
queststate = getQuestStatus(questname_5)
if queststate == "complete" then
__WPL:setWaypointIndex(__WPL:findWaypointTag("quest1complete"));
end
]]></onLeaveCombat>

i'd liek add this in waypoint not in on levae combat...can you help me pls?

User avatar
Bill D Cat
Posts: 555
Joined: Sat Aug 10, 2013 8:13 pm
Location: Deep in the Heart of Texas

Re: target and choice quest from bullettin

#4 Post by Bill D Cat » Sat Nov 23, 2013 3:55 pm

The basic format that I use when making my waypoint files is something like this:

Code: Select all

<waypoint x="xxxx" z="zzzz" y="yyyy">
   player:target_NPC(######)
   AcceptQuestByName(######)
</waypoint>
<waypoint x="xxxx" z="zzzz" y="yyyy" tag="startQuestHere">
  -- Do stuff here to complete quest, ie: kill mobs, get quest item loot, etc.
   if getQuestStatus(######) == "complete" then
      __WPL:setWaypointIndex(__WPL:findWaypointTag("endQuestHere"));
   end
</waypoint>
<waypoint x="xxxx" z="zzzz" y="yyyy">
  -- Do more stuff here
   if getQuestStatus(######) == "incomplete" then
      __WPL:setWaypointIndex(__WPL:findWaypointTag("startQuestHere"));
   end
</waypoint>
<waypoint x="xxxx" z="zzzz" y="yyyy" tag="endQuestHere">
   player:target_NPC(######)
   CompleteQuestByName(######)
</waypoint>
Of course you may need to have more waypoints in between to allow you to move from where the NPC is to where you have to do the actual quest, but the logic flow works the same. Use the tags as appropriate to define where you want to re-start your hunt and kill if you didn't complete it in the first rotation, and one to say where to do when you do complete it.

Talk to the NPC and get the quest.
Move to where the quest is done, kill mobs, loot items, etc.
Move to where the NPC is again.
Turn in the quest.

Sasuke
Posts: 503
Joined: Mon May 17, 2010 3:40 pm
Location: Poland

Re: target and choice quest from bullettin

#5 Post by Sasuke » Sun Nov 24, 2013 10:40 am

in section"start and end quest here" i must write the name of quest or ?ty m8

User avatar
Bill D Cat
Posts: 555
Joined: Sat Aug 10, 2013 8:13 pm
Location: Deep in the Heart of Texas

Re: target and choice quest from bullettin

#6 Post by Bill D Cat » Sun Nov 24, 2013 3:06 pm

You can name the tags any way you want. As long as you don't duplicate the same name in the waypoint for multiple tags it will be fine.

I personally like to use tag names that relate to the quest that I am doing. So in my waypoint files you will see things like this:

Code: Select all

<waypoint x="xxxx" z="zzzz" y="yyyy" tag="batsBegin">
   -- Code here to do the quest
</waypoint>
<waypoint x="xxxx" z="zzzz" y="yyyy">
   if getQuestStatus(######) == "incomplete" then
      __WPL:setWaypointIndex(__WPL:findWaypointTag("batsBegin"))
</waypoint>
<waypoint x="xxxx" z="zzzz" y="yyyy" tag="batsEnd">
   -- Code here to return to quest giver and turn in
</waypoint>

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 13 guests