Guest User

Untitled

a guest
Jul 26th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.83 KB | None | 0 0
  1. Func AfterRun()
  2.     RndSleep(3000)
  3.     TravelGH()
  4.     RndSleep(1000)
  5.  
  6.     If GetKurzickFaction() < 5000 Then Return
  7.     GoToNPC(GetAgentByName("Kurzick Bureaucrat [Faction Rewards]"))
  8.  
  9.  
  10.     If $Donate = "Raise Alliance Reputation" Then
  11.         $FactionReward = 1
  12.     EndIf
  13.     If $Donate = "Amber Chunks" Then
  14.         $FactionReward = 2
  15.     EndIf
  16.     If $Donate = "Urgoz's Warren Scrolls" Then
  17.         $FactionReward = 3
  18.     EndIf
  19.  
  20.  
  21.     Switch $FactionReward
  22.         Case 1
  23.             Dialog(0x00000086)
  24.             TolSleep(1000, 250)
  25.  
  26.             While GetKurzickFaction() >= 5000
  27.                 DonateFaction("k")
  28.                 TolSleep(1000, 250)
  29.             WEnd
  30.         Case 2
  31.             While GetKurzickFaction() >= 5000
  32.                 Dialog(0x00800101)
  33.                 TolSleep(1000, 250)
  34.             WEnd
  35.         Case 3
  36.             While GetKurzickFaction() >= 1000
  37.                 Dialog(0x00800102)
  38.                 TolSleep(1000, 250)
  39.             WEnd
  40.     EndSwitch
  41.  
  42.     TolSleep(1500, 500)
  43.     LeaveGH()
  44. EndFunc
Add Comment
Please, Sign In to add comment