Page 3 of 3

Re: Energy of Justice easily earned

Posted: Sun Feb 02, 2014 6:26 am
by spyfromsiochain
In sum, this event can be botted or not?

And noobbotter:
keyboardPress( key.VK_I ) <!-- Presses the i key which is where my macro is for this event -->
This is the part where I get lost, wich macro and where in the action bar I have to place.

tyvm
regards
(sorry the noobness)

Re: Energy of Justice easily earned

Posted: Sun Feb 02, 2014 11:32 am
by noobbotter
Yes, this event can be botted. Beware, though, that people will watch for bots here. I seldom let mine run through more than once without checking in and making sure that nobody's talking to me, or that my bot didn't decide to stand where someone else is standing.

As for the macro, there are a couple examples of what to use in the macro in the first few posts under this topic. You can find more on the runesofmagic forums. Once you create a macro, drag it to a location on your hotbar. Then whatever key is assigned to that spot on the hotbar, that's the key you want to use in keyboardPress( key.VK_# ) where # is the key you are using.

Re: Energy of Justice easily earned

Posted: Wed Feb 05, 2014 12:20 am
by mowit
Babysitting is a must with this. GM's do watch & want to talk.

Re: Energy of Justice easily earned

Posted: Sun Feb 09, 2014 9:09 pm
by AnitsNZ
a quick dirty way of checking event status is to monitor an address and if it turns to a specific value then you can use that to trigger your timers or w.e i make my stuff in vb so it probs wont help directly but the address is for the current nexon server and you can use it in whatever language floats your boat

Code: Select all


'//put a timer on an interval to check every second......(1000) for event start
 
If ReadLongPointer(&H400000 + &H605AC8, &H0, 4) = 1768383826 Then '// jump on event start

'// pause timer1 and trigger a second timer for 30 seconds where what you want to do is acomplished
'//in my case sending keystrokes to the rom window to an already made macro cos i'm lazy.
'// that address will change so when the 30 seconds is completed simply reactivate the first timer and bam wait for it to trigger again


oh and just cos here is static addy of total eoj ReadLong(&HA02670)

Re: Energy of Justice easily earned

Posted: Sun Feb 09, 2014 11:48 pm
by lisa
to translate that to the type of code the bot uses.

memoryReadRepeat("intptr", getProc(), 0xA05AC8,0x4)

The address itself is the actual text on screen, I can't test if it will still work when the event display bugs as it never does that for me.

So the address is the actual text and you could use it like this.

Code: Select all

if memoryReadStringPtr(getProc(), 0xA05Ac8,0) == "Time remaining" then

-- means event is not active and timer is counting down for event to start. So on screen it displays Time remaining.
I can't confirm if this is different for different languages of course but you could always use
getTEXT("SC_PE_ZONE16_DW_21")

That address is for the private server though as stated by AnitsNZ

Might be able to use

Code: Select all

-- private server
if memoryReadStringPtr(getProc(), addresses.eggPetBaseAddress + 0x6728,0) == "Time remaining" then

--official server
if memoryReadStringPtr(getProc(), addresses.eggPetBaseAddress + 0x6728 + 0x4,0) == "Time remaining" then

official server is 4 bytes away from eggpet, people would need to test if it still works when the event display bugs though.

Code: Select all

Command> print(memoryReadStringPtr(getProc(), addresses.eggPetBaseAddress + 0x6728 + 0x4,0))
Positive Effect

Re: Energy of Justice easily earned

Posted: Mon Feb 10, 2014 2:26 am
by AnitsNZ
that address i posted does work without a display the only message i ever get is that the event has started and then the 3 winners i have no timer or anything. when the event starts it picks up on the "regional event has started" text then after you do the quest once it changes to some dribble from the quest you are doing at the time at the end i do believe the message is there that the event has ended but i don't use it. interestingly enough it works on the juice festival event aswell asin the things they say it will show the latest one. also picks up on things like "such and such guild has been formerly established" or has built a castle and the like

Re: Energy of Justice easily earned

Posted: Mon Feb 10, 2014 4:26 am
by lisa
I can confirm the address is also the text that appears middle of screen when you go near a tower or castle crystal in siege war.
I suspect it might be the splash screen message or what ever it's called.

Re: Energy of Justice easily earned

Posted: Thu Feb 13, 2014 7:57 pm
by whitewiz
Sooo i was just starting to add GM detection to my Papp Hessoff script when i got banned.... :/

Re: Energy of Justice easily earned

Posted: Mon Feb 17, 2014 1:13 pm
by darkjack

Code: Select all

function doquest()               
      local endmsg = getTEXT("SC_ZONE_PE_3TH_ST1OVER")
      -- Keep doing quest until end message
      repeat
         yrest(10)
         quest()
      until getLastWarning(endmsg, 10)
      
      -- Change to next active channel
      local currentchannel = RoMScript("GetCurrentParallelID()")
      local newChannel = currentchannel
      repeat
         newChannel = newChannel - 1
         if newChannel > RoMScript("GetNumParalleZones()") then
            newChannel = 1
         end
      until RoMScript("IsZoneChannelOnLine("..newChannel..")") or newChannel == currentchannel
      
      -- New channel found. Change to it
      if newChannel ~= currentchannel then
         sendMacro("ChangeParallelID("..newChannel..");");
         player:rest(30)
         local id = RoMScript("GetCurrentParallelID()")
         if id ~= newChannel then
            RoMScript("ChangeChar(\"current\",nil,"..newChannel..")")
            waitForLoadingScreen()
            yrest(100)
         end
      end
   end
i make channel 3>2>1. bot spam macro all the time till got end msg. how to input back on channel 3 and reapet all? coz after event done on channel 1 bot do notihng

Re: Energy of Justice easily earned

Posted: Mon Feb 17, 2014 6:00 pm
by lisa
After

Code: Select all

newChannel = newChannel - 1
add in a check if it is = 0 and if it is then change it to 3

Code: Select all

newChannel = newChannel - 1
if newChannel == 0 then newChannel = 3 end
As for the making it wait for event to start again, there are plenty of ways to do it, maybe now you have it changing back to channel 3 you will think of something ;)

Re: Energy of Justice easily earned

Posted: Thu Feb 20, 2014 7:28 am
by wilifox
Hii i have one problem, this is my code:

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
<onLoad>

      function EOJCrysalia()
  
         player:target_NPC(120273) -- Papp Hesof
         AcceptQuestByName("Energía desconocida");
         
         yrest(500)
         AcceptQuestByName("Análisis definitivo");
         yrest(500)
         
      	 CompleteQuestByName("Energía desconocida");
      RoMScript("DeleteQuestByID(425598)");
         EOJCrysalia()
      end   
</onLoad>
   <!-- #  1 --><waypoint x="-9407" z="-18349" y="945">
         player:target(120273) -- Papp Hesof
         EOJCrysalia()
   </waypoint>
</waypoints>


Note: This one:

Image


Thx very much ;)

Re: Energy of Justice easily earned

Posted: Tue Mar 25, 2014 3:41 am
by svh1
Anyone can confirm if this is still working or if they fixed this one already?

Re: Energy of Justice easily earned

Posted: Tue Mar 25, 2014 6:03 am
by L33t_Of_Lag
Mine works fine on official and nexon still.

Re: Energy of Justice easily earned

Posted: Tue Mar 25, 2014 10:47 am
by sauhard
i am still looking for a script that autochabges channels too.. if anyone made? and working?