Page 1 of 1

macro to exchange golden eggs for enhancement potions?

Posted: Fri Jan 20, 2012 4:02 pm
by lordmata
Can somebody write a macro that I can spam that trades 2 golden eggs for an enhancement potion at the ranch npc? i tried with some scripts from daily quest but just didn't manage to make it work... :P

Re: macro to exchange golden eggs for enhancement potions?

Posted: Fri Jan 20, 2012 5:51 pm
by kuripot
i think you can try to follow the format of this

Code: Select all

   <!-- #  1 --><waypoint x="2500" z="48311" y="132" >
     
     local tobuy = 20;
      local beltname = RoMScript("TEXT('Sys227502_name')") -- Excellent Belt
      repeat
         local beltcount = inventory:getItemCount(227502) -- number of belts you already have
         if beltcount >= tobuy then break end
         player:openStore("Nebular");   
         inventory:storeBuyItem(beltname, tobuy - beltcount)
         yrest(3000)
      until false

Re: macro to exchange golden eggs for enhancement potions?

Posted: Fri Jan 20, 2012 7:06 pm
by lisa
Kanta did have a userfunction for this but I just checked his topic and he removed the files, I guess he stopped working on it.

Re: macro to exchange golden eggs for enhancement potions?

Posted: Sat Jan 21, 2012 12:15 am
by lordmata
yeah but i don't have a need for a script exactly. i was kinda hoping for a macro along the lines of:

Code: Select all

/script OnClick_QuestListButton(3,1);
/script CompleteQuest();
/script OnClick_QuestListButton(1,1);
/script AcceptQuest();
I used this for spamming daily quests, was hoping that a similar macro could be made just to choose the choice option at ranch npc :P

Re: macro to exchange golden eggs for enhancement potions?

Posted: Sat Jan 21, 2012 12:39 am
by lisa
so you didn't try something like this?

Code: Select all

/script ChoiceOption(3)
/script ChoiceOption(1)

Re: macro to exchange golden eggs for enhancement potions?

Posted: Sat Jan 21, 2012 4:27 pm
by lordmata
thank you for the reply, it made my day :D

finished the code like this, i just click the npc and then spam this macro:

Code: Select all

/cast Attack
/wait 0.1
/script ChoiceOption(3)
/wait 0.1
/script ChoiceOption(2)

Re: macro to exchange golden eggs for enhancement potions?

Posted: Sat Jan 21, 2012 10:11 pm
by grande
I used to hate clicking on that npc/option chain to get the friggin potions. Good Q&A!! just hope I remember it next time I go to purchase them again hahaha