CloudBotScripts / scripts

Scripts to use in cloudbot https://cloudbot.site
14 stars 60 forks source link

Change it #49

Closed Taga91 closed 3 years ago

Taga91 commented 3 years ago

https://github.com/CloudBotScripts/scripts/blob/4f6f3cbee2a2b82ea3d23cc7894b5ff05de6ad61/lib.py#L971-L972

cutthroats = tracker_text[tracker_text.find("Marauders") + 10:tracker_text.find('Cutthroats')] buccaneers = tracker_text[tracker_text.find("Cutthroats") + 11:tracker_text.find('Buccaneers')]

CloudBotScripts commented 3 years ago

Is it not working? The space is not recognized by bot, so it seems correct the way it is. I am using the one for sea serpent and is working fine.

Taga91 commented 3 years ago

doesnt work, but if you do like i send you its working fine...

19:40:43.151 [Waypoint] label check_monster [Action] Monster found ValueError: invalid literal for int() with base 10: '550Buccaneesand117orsair'

I text you on discord but you arent online. So please, change it and try it

You have a comma (,) on the words, that's why you have 10 and 11 Kill 3000 pirates in total to help the rebels on Meriana. So far, you have killed 1898 Marauders, (10 words with comma) 722 Cutthroats, (11 words with comma) 387 Buccaneers and 48 Corsairs.

CloudBotScripts commented 3 years ago

It is failing to recognize the letters "C" in Corsair and "rs" in Buccaneers. I added a fix, see if it works and I will update here after.

Taga91 commented 3 years ago

Not working, please add 10 and 11, because have a comma, and need to be count too.

09:38:44.134 [Waypoint] label check_monster [Action] Monster found ValueError: invalid literal for int() with base 10: '117C'

CloudBotScripts commented 3 years ago

Only letters and number are recognized.

Strange that the first time it didnt recognize the C and now it did.. Try now and let me know the error message

Taga91 commented 3 years ago

ok, ill try.

So the comma doesnt recognize?

Taga91 commented 3 years ago

yeah! now is working fine :D

CloudBotScripts commented 3 years ago

Great, thanks for the help

Taga91 commented 3 years ago

01:56:27.689 [Waypoint] label check_monster [Action] Monster found ValueError: invalid literal for int() with base 10: '112uccaneesand2'

again :/

CloudBotScripts commented 3 years ago

I will try another approach. Can you send me a screenshot of quest log?

Taga91 commented 3 years ago

Sure, check Discord, i send you there

CloudBotScripts commented 3 years ago

Now should work even if it fails to get some of the letters. Try it and reopen if it fails again.