Make script

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
darkjack
Posts: 19
Joined: Tue Dec 29, 2009 1:44 pm

Make script

#1 Post by darkjack » Mon Jan 03, 2011 7:19 am

Hi. i wanna make script to do daily quest: Helping Them Grow in Elven Island. I dont know how to make accept quest, use quest items, etc . Can any one help me? Thanks

User avatar
jduartedj
Posts: 599
Joined: Sat Dec 19, 2009 12:18 am
Location: Lisbon
Contact:

Re: Make script

#2 Post by jduartedj » Mon Jan 03, 2011 8:19 am

I'm not a moderator but this is not the place to post that. This is for additional resources only. please ask in the main forum
Thanks for reading! :D

Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Make script

#3 Post by rock5 » Mon Jan 03, 2011 9:45 am

Moved.
  • 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

swietlowka
Posts: 316
Joined: Wed Jun 16, 2010 8:16 am

Re: Make script

#4 Post by swietlowka » Mon Jan 03, 2011 10:36 am

besides search first, i ulopaded my working script for this quest somewhere

mayainverse
Posts: 94
Joined: Tue Dec 21, 2010 3:12 am

Re: Make script

#5 Post by mayainverse » Sat Jan 15, 2011 2:27 am

where at exactly? only threads ifound about this quest are posted in09

swietlowka
Posts: 316
Joined: Wed Jun 16, 2010 8:16 am

Re: Make script

#6 Post by swietlowka » Sat Jan 15, 2011 5:00 am

the one posted in 09 still works well, was speaking with another user using that one just a weak ago...
this one is just for the quest

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints type="RUN">
   <onLoad>
    levelupSkills1To10();
   repeat questname=RoMScript("TEXT('Sys422340_name')"); yrest(500) until questname
   changeProfileOption("HARVEST_DISTANCE", 30)
   </onLoad>
      <!-- #  1 --><waypoint x="31841" z="4593" tag="start">
      repeat dailyQuestCount, dailyQuestsPerDay= RoMScript("Daily_count()") until dailyQuestCount and dailyQuestsPerDay
          if (dailyQuestsPerDay - dailyQuestCount) > 0 then
            player:target_NPC("Blinsik"); yrest(1000); sendMacro("AcceptQuest()"); yrest(2000);
            else
            sendMacro("}LoginNextToon=true;a={")
            sendMacro("Logout();"); yrest(3*60*1000) -- wait 3m for next character to load
                  -- Re-initialize player
              player = CPlayer.new();
              settings.load();
              settings.loadProfile("tiering"); -- Profile name
              yrest (4000)
              loadPaths("tier"); -- First script
            end
</waypoint>
   <!-- #  2 --><waypoint x="31897" z="4620">   </waypoint>
   <!-- #  3 --><waypoint x="31932" z="4642">   </waypoint>
   <!-- #  4 --><waypoint x="31923" z="4686">   </waypoint>
   <!-- #  5 --><waypoint x="31846" z="4860">   </waypoint>
   <!-- #  6 --><waypoint x="31814" z="4993">   </waypoint>
   <!-- #  7 --><waypoint x="31784" z="5096">   </waypoint>
   <!-- #  8 --><waypoint x="31718" z="5227">   </waypoint>
   <!-- #  9 --><waypoint x="31644" z="5373">   </waypoint>
   <!-- # 10 --><waypoint x="31561" z="5508">   </waypoint>
   <!-- # 11 --><waypoint x="31472" z="5638">   </waypoint>
   <!-- # 12 --><waypoint x="31419" z="5728" tag="pick">    player:target_Object(112976,7000,true);
       repeat queststate = getQuestStatus(questname); yrest(500) until queststate
        if queststate == "complete" then
          __WPL:setWaypointIndex(__WPL:findWaypointTag("return"));
        else __WPL:setWaypointIndex(__WPL:findWaypointTag("pick"));
      end
        </waypoint>
   <!-- # 11 --><waypoint x="31472" z="5638" tag="return">   </waypoint>
   <!-- # 12 --><waypoint x="31561" z="5508">   </waypoint>
   <!-- # 13 --><waypoint x="31644" z="5373">   </waypoint>
   <!-- # 14 --><waypoint x="31718" z="5227">   </waypoint>
   <!-- # 15 --><waypoint x="31784" z="5096">   </waypoint>
   <!-- # 16 --><waypoint x="31814" z="4993">   </waypoint>
   <!-- # 17 --><waypoint x="31846" z="4860">   </waypoint>
   <!-- # 18 --><waypoint x="31923" z="4686">   </waypoint>
   <!-- # 19 --><waypoint x="31932" z="4642">   </waypoint>
   <!-- # 20 --><waypoint x="31897" z="4620">  </waypoint>
   <!-- # 21 --><waypoint x="31841" z="4593">    
   player:target_NPC("Blinsik"); yrest(1000); sendMacro("CompleteQuest()"); yrest(2000);
      </waypoint>
  <!-- # 21 --><waypoint x="31841" z="4593">
          repeat dailyQuestCount, dailyQuestsPerDay= RoMScript("Daily_count()") until dailyQuestCount and dailyQuestsPerDay
          if (dailyQuestsPerDay - dailyQuestCount) == 0 then
                  sendMacro("}LoginNextToon=true;a={")
            sendMacro("Logout();"); yrest(3*60*1000) -- wait 3m for next character to load
                  -- Re-initialize player
              player = CPlayer.new();
              settings.load();
              settings.loadProfile("tiering"); -- Profile name
              yrest (4000)
              loadPaths("tier"); -- First script
           else
         __WPL:setWaypointIndex(__WPL:findWaypointTag("start"));
         end
  </waypoint>
   </waypoints>

darkjack
Posts: 19
Joined: Tue Dec 29, 2009 1:44 pm

Re: Make script

#7 Post by darkjack » Tue Jan 18, 2011 6:12 am

Where in this sricpt i should use this comand:
repeat queststate = getQuestStatus(questname); yrest(500) until queststate
if queststate == "not accepted" then
because i have problem, some times bot dont accept quest and offcorse stuck

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Make script

#8 Post by rock5 » Tue Jan 18, 2011 6:41 pm

darkjack wrote:Where in this sricpt i should use this comand:
repeat queststate = getQuestStatus(questname); yrest(500) until queststate
if queststate == "not accepted" then
because i have problem, some times bot dont accept quest and offcorse stuck
Find this line;

Code: Select all

            player:target_NPC("Blinsik"); yrest(1000); sendMacro("AcceptQuest()"); yrest(2000);
And change it to;

Code: Select all

            repeat
                player:target_NPC("Blinsik"); yrest(1000); sendMacro("AcceptQuest()"); yrest(2000);
                repeat queststate = getQuestStatus(questname); yrest(500) until queststate
            until queststate == "incomplete"
  • 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

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 10 guests