Post Reply Home » Forums » EverQuest 2 » EverQuest 2 Premium Discussions

Camp Addon (addon for Pickled Recipe Crafter 1.2) : EverQuest 2 Premium Discussions

Posted: March 5th, 2005
tault_loraik
Here is a addon for Pickled's Recipe Crafter [Version 1.2]. All credit to Pickled for being such a nice guy to write all this cool stuff!

This will camp your toon to the Character Selection Screen after it is "out of resources".

Code: Select all

;Add this anywhere at very top of script 
Global $retryCount = 0 

;Add these anywhere 
Func Retry() 
   ;Retry 20 Times then Quit 
   If($retryCount > 20) Then 
      For $i = 1 to 10 Step 1 
         ClearTarget() 
      Next    
              
      $camp = MsgBox(4, "Logout?", "It appears that you have run out of components for this session"_ 
      & @CRLF _ 
      & @CRLF & "Would you like to Camp out now? (60 seconds before auto camp!)", 60) 
        
      If($camp == 6) Then 
         WinActivate("Everquest II") 
         Sleep(500) 
         Send("/camp") 
         Sleep(50000) 
         MsgBox(0, "Completed!", "Crafting session complete - auto camped out.") 
         Exit(0) 
      Else 
         If($camp == 7) Then 
         MsgBox(0, "Completed!", "Crafting session complete please reload script again to restart!") 
         Exit(0) 
        EndIf 
        
        WinActivate("Everquest II") 
        Sleep(500) 
        Send("/camp")
        Send("{enter}") 
        Sleep(50000) 
        Exit(0) 
       EndIf 
     EndIf
   If(PixelGetColor($xBegin, $yBegin) == $colorGrayedBegin) Then 
      $retryCount = $retryCount + 1 
   EndIf 
EndFunc 

Func ClearTarget() 
   Send("{ESC}") 
   Sleep(500) 
EndFunc 

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 
;Find this code in script and add $retryCount = 0 BELOW $done = 1      ;; 
;                                                      ;; 
;If (($color = $colorBegin) OR ($color = $colorBeginHighlighted)) Then  ;; 
;   $done = 1                                              ;; 
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 
$retryCount = 0 

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 
;Find this code in script and add Retry() BELOW Sleep(2000 + Random(25));; 
;                                                      ;; 
;MouseClick("left", $xBegin, $yBegin) ; Click repeat                ;; 
;      Sleep(2000 + Random(25))                               ;; 
;                                                       ;; 
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 
Retry() 

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;Find this code in script and replace: 
;;;;;;;;If (NOT $strInput=0) OR ($strInput<4) Then
;
;With:
;;;;;;;;If ($strInput>0) AND ($strInput<6) Then
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

This has been tested and working over 10 trys on my machines.

**NOTE** If you have been making adjustments and have been running in Tweak Mode you have to turn Tweak Mode back OFF before this mod will work.

Loraik


Last edited by Guest on March 7th, 2005, 8:03 pm, edited 1 time in total.
Posted: March 5th, 2005
tault_o0ofoulo0o
This will be very helpful!!!!!

I vote for the +100 contest points and $5 to his account :-D
Posted: March 6th, 2005
User avatar
Total Posts:1390 Joined:2004
Well since its an ADD-ON macro, you can have 50 Points.
Nice job Loraik.

[EDIT] - Hrmm, all of a sudden i have gone from 200,000 points to 0 points. O_o
Looks like you'll have to wait on your reward points.
Posted: March 7th, 2005
tault_loraik
I think it is important for you to relise that Pickled did the work here, I just helped trouble shoot since he no longer plays. If anyone deserves the points & credit it is Pickled.

Loraik
Posted: March 21st, 2005
tault_stigma
Im having some real trouble getting this to work...

What exactly is it supposed to trigger on? Can you give a concrete example of when this script would log you out, so I can try it for myself?
Posted: March 21st, 2005
tault_loraik
I have been putting off trying to mod it so it camps out when you finish the "exact" amount of items your suposed to make.

The idea here is if you run out of resources before you reach your set amount of items to make it will start a "camp to char. select" sequence.

When you run out of a resource it will try 20 times (by default) to continue crafting after that it will pop up a msg. box letting you know if you don't select a cancel logout option (button on msg box) then in 60 sec. it will camp out to your char. select screen.

Now when I am just leveling not making the finished items I normally set the amount of items to make to 900 (well over the resources I have) which was the entire purpose for me adding this addon.

You can change the number of times to try to craft by changing this line in the code:

Code: Select all

If($retryCount > 20) Then 
Change the 20 to 1-19. I use 2 for mine as for whatever reason I don't see any faster responce by using 1.

Again this was meant to campout when you run out of resources but I should have linked it so it camps you out also when you have crafted all your items.

Loraik
Ready to join the community? Click here and see all of the benefits!
blue large dotWho is online
Users browsing this forum: No registered users and 28 guests
Post Reply