|
Post by Darth Maul on Jan 21, 2015 9:54:32 GMT
Monster counter - count how many monsters you kill auto 100 | listas '[$tname]: $amount' | set $tname 'Rat' | foreach 'newmessages' $m if [$m.content ? '$tname' && $m.color == 33554431] {set $amount '$token."$fileline.'task_info.txt'.1".2' | inc $amount | filedelete 'task_info.txt' | filewriteline 'task_info.txt' '"$tname" $amount' | clear $target | wait 500 | end}
- To set the monster you need to change the 'Rotworm' to whatever you're trying to kill. i.e. 'Rat', 'Dragon'
- To clear the list you need to open your elfbot folder, then open your elfsettings. Find the file called 'task_info', it will be a .txt file. Delete this file.
- You need to have your "On-Screen Info" Enabled, and your "Activated hotkeys/shortkeys" Enabled. These can be found in the HUD panel of elfbot.
Had some difficulties using Darth's script, wasnt working for me, maybe it just wasnt my day or maybe i set it up wrong. So i made this, much less complicated, and not 100% accurate, but works roughly so i'll post it here as an alternative to anyone who had the same problem as me. At hydras you have to kill 650 of them to complete a lap at grizzly. From my experience the script counts around 130% of the kills, so i would set it to return to grizzly at 8-900 counted hydras, which translated to around 650-700 actual kills. auto 200 setpos [$screentop-122] [$screentop+395] | setcolor 256 256 256 | displaytext 'Kill Hydra: $killed' auto 100 dontlist 'killed: [$killed]' | isattacking {if [$target.hppc == 0 && $target.name == 'Hydra'] {inc $killed | wait 400}} cheers
|
|
|
Post by Darth Maul on Oct 16, 2015 5:25:53 GMT
I've updated the script, it should now properly display the correct amounts. It also displays the monster name you're trying to track in the task_info.txt file.
|
|
edu023
Honored Member
Posts: 40 Likes: 4
Currently Offline
Last Online: Oct 7, 2017 23:22:12 GMT
View Profile
Registered On: Oct 28, 2016 15:29:25 GMT
|
Post by edu023 on Jan 30, 2017 17:17:04 GMT
I've updated the script, it should now properly display the correct amounts. It also displays the monster name you're trying to track in the task_info.txt file. AT first works great but when I killed like 10, starts counting each attack and no only the deads
|
|
gansir
New Member
Posts: 2 Likes: 0
Currently Offline
Last Online: Jul 22, 2017 13:28:02 GMT
View Profile
Registered On: Jul 1, 2017 13:42:21 GMT
|
Post by gansir on Jul 1, 2017 13:45:03 GMT
This seems like it is counting the amount of times you attack, not the amount of monsters killed.
Could the new message color be wrong? ($m.color == 33554431)
|
|
denkan
New Member
Posts: 1 Likes: 0
Currently Offline
Last Online: Jul 13, 2017 19:29:41 GMT
View Profile
Registered On: Jul 6, 2017 21:42:59 GMT
|
Post by denkan on Jul 6, 2017 21:45:16 GMT
Monster counter - count how many monsters you kill auto 100 | listas '[$tname]: $amount' | set $tname 'Rat' | foreach 'newmessages' $m if [$m.content ? '$tname' && $m.color == 33554431] {set $amount '$token."$fileline.'task_info.txt'.1".2' | inc $amount | filedelete 'task_info.txt' | filewriteline 'task_info.txt' '"$tname" $amount' | clear $target | wait 500 | end}
- To set the monster you need to change the 'Rotworm' to whatever you're trying to kill. i.e. 'Rat', 'Dragon'
- To clear the list you need to open your elfbot folder, then open your elfsettings. Find the file called 'task_info', it will be a .txt file. Delete this file.
- You need to have your "On-Screen Info" Enabled, and your "Activated hotkeys/shortkeys" Enabled. These can be found in the HUD panel of elfbot.
Script dont work every time i take a hit it count as 1 more kill
|
|
gansir
New Member
Posts: 2 Likes: 0
Currently Offline
Last Online: Jul 22, 2017 13:28:02 GMT
View Profile
Registered On: Jul 1, 2017 13:42:21 GMT
|
Post by gansir on Jul 16, 2017 13:27:40 GMT
Almost 100% sure that the m.color is what is wrong, it seems that i cannot pin point the right msg color, been trying to use $curmsg.color but have yet to get it to tell me the color of the orange (notice of loot from monster) in the default window.
|
|
hyped
Member
Posts: 12 Likes: 11
Currently Offline
Last Online: Jun 11, 2018 7:29:22 GMT
View Profile
Registered On: Jan 4, 2018 19:51:42 GMT
|
Post by hyped on Jan 9, 2018 4:48:24 GMT
I was testing this but apparently, it will count every time the name of the creature appears in the server log or w.e
20:36 A Dragon Lord loses 130 hitpoints due to your attack. 20:37 You lose 14 hitpoints due to an attack by a Dragon Lord. 20:37 You lose 9 hitpoints due to an attack by a Dragon Lord. 20:37 You lose 28 hitpoints due to an attack by a Dragon Lord.
That makes a count 4.. I tried 'gained' instead of the monster's name that way that way it will count everytime you gain experience and it works! but if there's more than 1 people in your spawn and gain experience but not have the last hit it will count it anyways :/ is there a way to combine more than one msg? for example 'gained 2100 experience points'.
Also one more question, how do you reset the count to zero?
|
|
|
Post by Darth Maul on Jan 9, 2018 8:17:47 GMT
Hey, Could you post the script you've got? It's easier and quicker if you post the scripts you've tried/have so we can edit/make one for you.
This can set the count back to 0.
To clear the list you need to open your elfbot folder, then open your elfsettings. Find the file called 'task_info', it will be a .txt file. Delete this file.
|
|
hyped
Member
Posts: 12 Likes: 11
Currently Offline
Last Online: Jun 11, 2018 7:29:22 GMT
View Profile
Registered On: Jan 4, 2018 19:51:42 GMT
|
Post by hyped on Jan 9, 2018 9:18:51 GMT
Hey, Could you post the script you've got? It's easier and quicker if you post the scripts you've tried/have so we can edit/make one for you. This can set the count back to 0. To clear the list you need to open your elfbot folder, then open your elfsettings. Find the file called 'task_info', it will be a .txt file. Delete this file. Ok I will try to explain what I've done and how I did it so I could get some feed back. first I did a Grizzly Adams tasker for Hydras.. but since the monster count didn't work I used the EXPGAINED variable to go report task and kill the boss I think this methods that are not right I guess.. but at least they've worked. It's so lame but I did this.. before the HUNT label I added the LOADSETTINGS action in order to reset the EXP gained. and since I was doing Hydras and had no green stamina I know they give 2100 exp x 650 Hydras = 1365000... so I used this to check the expererience xD haha if [$expgained >= 1365000] gotolabel Lets Go Back I know this is lame but since I was only hunting hydras with no other creatures worked for me. I did 10 task with no problems, however, trying to use this and guess the experience needed for lower chars and all that is a hassle.. Now with your monster count scripted what I did I used it like this. auto 100 | listas 'Monsters Killed: $amount' | set $tname 'gained' | foreach 'newmessages' $m if [$m.content ? '$tname' && $m.color == 33554431] {set $amount '$token."$fileline.'task_info.txt'.1".2' | inc $amount | filedelete 'task_info.txt' | filewriteline 'task_info.txt' '"$tname" $amount' | clear $target | wait 500 | end}
This will save every monster you kill. So its easier to do a tasker but still not the best option.. To make a tasker with this method I doing this: (I haven't tested it yet but seems like a nice idea) Since is saving all monsters is killing and I'm using this for a Pirate Tasker and there's a bunch of different pirates that gives different experience etc etc.. To check how many monsters I killed I made a label checker. First I made my own char saying.. in an action the amount of monster I've killed self PM like this. wait 1000
{pm '$self.name' 'Total Monsters Killed.'}
{pm '$self.name' '[$amount].'} Then with your other script you did that checks what the NPC have said I used it for this shit auto 200 if [$lastmsg.content => '3200' && $lastmsg.isprivate] {gotolabel 'REFILL'} I also used this for the boss option: auto 200 if [$lastmsg.content => 'Perfect' && $curmsg.isnpc] {set $killboss 0'}
auto 200 if [$lastmsg.content == 'Beware' && $curmsg.isnpc] {set $killboss 1'} and a checker before the boss in the spawn: if [$killboss==1] gotolabel 'KILL BOSS' | else gotolabel 'KEEP HUNTING'
and that's pretty much what I've used.. it's not yet tested but seems promising. I not sure if i explain it well but let me know if is confusing or Any advice or thoughts?
|
|
hyped
Member
Posts: 12 Likes: 11
Currently Offline
Last Online: Jun 11, 2018 7:29:22 GMT
View Profile
Registered On: Jan 4, 2018 19:51:42 GMT
|
Post by hyped on Jan 9, 2018 9:23:04 GMT
Oh I also found that you can delete(reset) the file by using this action:
filedelete task_info.txt
So you don't need to be deleting it manually everytime
|
|
|
Post by Darth Maul on Jan 9, 2018 11:07:29 GMT
Hey, Nice. It seems like it should work. When you finish your cavebot file, and when you're not using it anymore, feel free to upload it here so others can use it.
The only thing I noticed about your scripts were a few formatting/syntax errors; typically elfbot will allow these sort of errors to not affect scripts, it's good practice to use the right syntax. auto 200 if [$lastmsg.content => '3200' && $lastmsg.isprivate] {gotolabel 'REFILL'} I also used this for the boss option: auto 200 if [$lastmsg.content => 'Perfect' && $curmsg.isnpc] {set $killboss 0'}
auto 200 if [$lastmsg.content == 'Beware' && $curmsg.isnpc] {set $killboss 1'} and a checker before the boss in the spawn: if [$killboss==1] gotolabel 'KILL BOSS' | else gotolabel 'KEEP HUNTING' These should be: (see the red text)auto 200 if [$lastmsg.content >= '3200' && $lastmsg.isprivate] {gotolabel 'REFILL'} auto 200 if [$lastmsg.content ? 'Perfect' && $ lastmsg.isnpc] {set $killboss '0'} auto 200 if [$lastmsg.content ? 'Beware' && $ lastmsg.isnpc] {set $killboss '1'} if [$killboss = 1] {gotolabel 'KILL BOSS' | end} | if [$killboss = 0] {gotolabel 'KEEP HUNTING' | end}
|
|
hyped
Member
Posts: 12 Likes: 11
Currently Offline
Last Online: Jun 11, 2018 7:29:22 GMT
View Profile
Registered On: Jan 4, 2018 19:51:42 GMT
|
Post by hyped on Jan 10, 2018 7:20:40 GMT
Hey, Nice. It seems like it should work. When you finish your cavebot file, and when you're not using it anymore, feel free to upload it here so others can use it.
Thank you for the feedback I will definitely share some of my scripts in here when they're ready. I wanted to ask you something is there a way In your task script to save the 'task_info.txt' into 'charname_task_info.txt' that way I don't need to modify and have one file for each char lol. I tried to use $self.name before the filename but I didn't work. :/ I'm kinda stuck in that part any suggestions?
|
|
|
Post by Darth Maul on Jan 10, 2018 9:21:24 GMT
Hey, $self.name should work, $name should also work.
If you wanted it to be like 'charname_task_info.txt' without any spaces, you can wrap the variable in these brackets [].
filewrite '[$self.name]_task_info.txt' '"$tname" $amount'
set $amount '$token."$fileline.'[$self.name]_task_info.txt'.1".2'
Alternatively, you can do it with a space.
filewrite '$self.name task_info.txt' '"$tname" $amount'
set $amount '$token."$fileline.'$self.name task_info.txt'.1".2'
|
|
hyped
Member
Posts: 12 Likes: 11
Currently Offline
Last Online: Jun 11, 2018 7:29:22 GMT
View Profile
Registered On: Jan 4, 2018 19:51:42 GMT
|
Post by hyped on Jan 10, 2018 10:30:17 GMT
Hey, $self.name should work, $name should also work. If you wanted it to be like 'charname_task_info.txt' without any spaces, you can wrap the variable in these brackets []. filewrite '[$self.name]_task_info.txt' '"$tname" $amount'
set $amount '$token."$fileline.'[$self.name]_task_info.txt'.1".2' Alternatively, you can do it with a space. filewrite '$self.name task_info.txt' '"$tname" $amount'
set $amount '$token."$fileline.'$self.name task_info.txt'.1".2' LoL I was setting it before the ' stupid me It works now <3
|
|
wesleykhalifa
New Member
Posts: 4 Likes: 0
Currently Offline
Last Online: Mar 8, 2018 4:26:04 GMT
View Profile
Registered On: Feb 28, 2018 3:10:00 GMT
|
Post by wesleykhalifa on Feb 28, 2018 3:46:44 GMT
Ei, você poderia postar o script que você tem? É mais fácil e mais rápido se você postar os scripts que você tentou / ter para que possamos editar / fazer um para você. Isso pode definir a contagem de volta a 0.To clear the list you need to open your elfbot folder, then open your elfsettings. Find the file called 'task_info', it will be a .txt file. Delete this file. Ok vou tentar explicar o que eu fiz e como fiz isso para que eu pudesse obter algum feed back. primeiro eu fiz um Grizzly Adams tasker para Hydras .. mas desde que a contagem monstro não funcionou eu usei a variável EXPGAINED ir tarefa de relatório e matar o chefe Eu acho que isso métodos que não estão certas Eu acho que .. mas pelo menos eles ve trabalhou. É tão ridículo, mas eu fiz isso .. antes do rótulo HUNT eu adicionei a ação LOADSETTINGS, a fim de repor o EXP adquirida. e desde que eu estava fazendo Hydras e não tinha stamina verde Eu sei que eles dão 2,100 exp x 650 hidras = 1365000 ... então eu usei isso para verificar o xD expererience hahaif [$expgained >= 1365000] gotolabel Lets Go Back Eu sei que isso é besteira, mas desde que eu só estava caçando hidras sem outras criaturas funcionou para mim. Eu fiz 10 tarefa sem problemas, no entanto, tentando usar isso e acho que a experiência necessária para caracteres inferiores e tudo o que é um aborrecimento .. Agora, com seu monstro contagem script que eu fiz eu usei-o assim. Isto vai poupar cada monstro que você matar. Assim é mais fácil fazer um tasker mas ainda não é a melhor opção .. Para fazer uma tasker com este método que eu fazer isso: (Eu não testei ainda, mas parece ser uma idéia agradável) Desde está salvando todos os monstros está matando e eu estou usando isso para um Tasker pirata e há um monte de diferentes piratas que lhe dá experiência diferente etc etc .. para verificar quantos monstros eu matei eu fiz um verificador de etiqueta.auto 100 | listas 'Monsters Killed: $amount' | set $tname 'gained' | foreach 'newmessages' $m if [$m.content ? '$tname' && $m.color == 33554431] {set $amount '$token."$fileline.'task_info.txt'.1".2' | inc $amount | filedelete 'task_info.txt' | filewriteline 'task_info.txt' '"$tname" $amount' | clear $target | wait 500 | end}
Primeiro eu fiz o meu próprio carvão dizendo .. em uma ação a quantidade de monstro eu matei auto PM assim. Em seguida, com o seu outro script que você fez que verifica o que o NPC ter dito que eu usei para esta merda Eu também usei isso para a opção chefe: e um verificador antes do chefe na desova: e isso é muito bonito o que eu usei .. ainda não está testado, mas parece promissor. Eu não tenho certeza se eu explicar bem, mas deixe-me saber se é confusa ou Algum conselho ou pensamentos? wait 1000
{pm '$self.name' 'Total Monsters Killed.'}
{pm '$self.name' '[$amount].'} auto 200 if [$lastmsg.content => '3200' && $lastmsg.isprivate] {gotolabel 'REFILL'} auto 200 if [$lastmsg.content => 'Perfect' && $curmsg.isnpc] {set $killboss 0'}
auto 200 if [$lastmsg.content == 'Beware' && $curmsg.isnpc] {set $killboss 1'} if [$killboss==1] gotolabel 'KILL BOSS' | else gotolabel 'KEEP HUNTING'
Enfim achei Esse post, de contador de monstro para tarefa, mas Não entendi Muito Sobre essas teclas de atalho, quería Uma em that apos eu matar 500 Monstros ir Entregar uma tarefa .. me Ajuda porfavor
|
|