Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :?:/fi::
- :?:/afish::
- {
- number := 0
- release := 0
- cheapestFish := 0
- cheapestFishValue := 5000
- loop 30 {
- SendChat("/fish")
- Sleep, 20
- chat := readChatLine(0)
- if (RegExMatch(chat, "Du hast ein\/e (.+) mit (\d+) LBS gefangen.", fishMatch)) {
- number ++
- fishValue := getFishValue(fishMatch1, fishMatch2)
- SetChatLine(0, ADM colorSecond "(" number ") " colorWhite fishMatch1 " (" fishMatch2 " LBS) gefangen - Wert: " colorSecond FormatNumber(fishValue) "$")
- if (cheapestFishValue > fishValue) {
- cheapestFish := number
- cheapestFishName := fishMatch1
- cheapestFishValue := fishValue
- }
- }
- else if (RegExMatch(chat, "Du hast eine Geldtasche mit ([0-9]+)\$ gefangen\.", fishMatch)) {
- moneyWin += fishMatch1
- IniWrite, %currentFishMoney%, Stats.ini, Stats, FishMoney
- IniWrite, %currentFishMoney%, Stats.ini, Stats, MonthFishMoney[%A_MM%:%A_YYYY%]
- IniWrite, %currentFishMoney%, Stats.ini, Stats, DayFishMoney[%A_DD%:%A_MM%:%A_YYYY%]
- IniRead, FishMoney, Stats.ini, Stats, FishMoney
- SetChatLine(0, ADM "Geldtasche gefangen - Verdienst: " colorSecond FormatNumber(fishMatch1) "$" colorWhite " - Gesamt: " secondColor FormatNumber(FishMoney) "$")
- }
- else if (RegExMatch(chat, "Du kannst erst in ([0-9]+) (\S+) wieder angeln\.", fishMatch)) {
- CheckFishes()
- if (fishMatch2 == "Minuten") {
- SetTimer, FishTimer, 1000
- fishCooldown := Floor(fishMatch1/60)
- }
- break
- }
- else if (RegExMatch(chat, "Du kannst nur 5 Fische bei dir tragen.")) {
- if (release) {
- break
- }
- SendChat("/releasefish " cheapestFish)
- Sleep, 200
- SetChatLine(0, ADM colorSecond " (" cheapestFish ") " colorWhite cheapestFishName " im Wert von " colorSecond FormatNumber(cheapestFishValue) "$" colorWhite " wurde weggeschmissen!")
- release := 1
- }
- else if (RegExMatch(chat, "Du bist an keinem Angelplatz")) {
- SetChatLine(0, ADM "Du kannst hier nicht fischen, begib dich zu einem Angelsteg!")
- break
- }
- Sleep, 750
- }
- }
- return
Advertisement
Add Comment
Please, Sign In to add comment