|
Deria Newbie
Joined: 06 Jul 2010 Posts: 9
|
Posted: Tue Jul 06, 2010 6:13 am
Auto Exp Script/Bot |
Hello!
I would like to have an auto-exp-script for Holy Mission(for those who know the mud).
I searched for some scripts and tried some things...but what i miss is :
I make a path, the char walks the path and kills every mob on the way.
But how can i define that when the path ends the char should leave the zone and go to another zone and start a new path.
I dont know how to get the script make on after another.
1) go to zone
2) slow-walk path and kill every mob
3) when finished, leave zone
4) go to next zone
....
Help please:) |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4701 Location: Pensacola, FL, USA
|
Posted: Tue Jul 06, 2010 7:15 am |
Well if the old path ends as you step into the zone you could make use of the onZoneEnter #EVENT to redefine your path
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
Deria Newbie
Joined: 06 Jul 2010 Posts: 9
|
Posted: Tue Jul 06, 2010 7:18 am |
No...the path ends somewhere in the zone.
I would like to have :
1) slow-walk a path and kill every mob
2) speedwalk back to the entrance of the zone and leave it
3) go to next zone
4) start another slow-walk and kill every mob
and so on.
Just an automatic bot which goes from zone to zone and killes mobs which i defined. |
|
|
|
Deria Newbie
Joined: 06 Jul 2010 Posts: 9
|
Posted: Tue Jul 06, 2010 7:21 am |
The "simple combat bot" is the bot i would like to use (http://forums.zuggsoft.com/forums/viewtopic.php?t=17006)
|
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4701 Location: Pensacola, FL, USA
|
Posted: Tue Jul 06, 2010 7:28 am |
You could just adjust the path, or make an onRoomEnter event for the end room to switch locations
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
Deria Newbie
Joined: 06 Jul 2010 Posts: 9
|
Posted: Tue Jul 06, 2010 8:20 am |
No, i cant adjust the path...because that would mean that the char slowalks the whole path.
I want :
1) Speedwalk to first zone and enter
2) slow-path the zone and kill all mobs
3) speed-walk back to zone-entrance, leave zone, go to next zone
4) enter zone, slow-path whole zone
etc
I hope it it clear now:) |
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Tue Jul 06, 2010 2:07 pm |
Well, you could simply write all that into your script. Without knowing more about your actual script and the specific situation in the mud, it's really hard for us to give more specific advice. What exactly do you not know how to do?
|
|
|
|
robecks Beginner
Joined: 22 Jun 2010 Posts: 17
|
Posted: Tue Jul 06, 2010 2:26 pm |
ok when i made the simple combat bot into a more advanced combat bot, once i finished one path i used that path and send out a string like path1isnowcomplete and i triggered off of that as a command input and went to the second area, ect ect ect
|
|
|
|
Deria Newbie
Joined: 06 Jul 2010 Posts: 9
|
Posted: Wed Jul 07, 2010 5:23 am |
@robecks
Yeah...but how did you know when one path ended?
Could you maybe post your script? |
|
|
|
Deria Newbie
Joined: 06 Jul 2010 Posts: 9
|
Posted: Wed Jul 07, 2010 9:39 am |
So..i managed to build some nice script.
The only thing i need now is to know when a path ends.
When i start a path with #SLOW and walk it with #STEP .. is there a possability to know when the path ends? |
|
|
|
Deria Newbie
Joined: 06 Jul 2010 Posts: 9
|
Posted: Wed Jul 07, 2010 10:11 am |
Hm..there is th Event OnWalkEnd ... but it seems not to work for #SLOW path.
|
|
|
|
Progonoi Magician
Joined: 28 Jan 2007 Posts: 430
|
Posted: Wed Jul 07, 2010 12:53 pm |
I don't have enough time atm to dwell deeper on it, but I must ask why use #slow / #step etc at all? I've forgot most of the programming
I did back in a day while writing a similar bot, but the movement gist was basically a String List where you pop off one item each time you've got the confirmation you've reached the room intended. Ie, #exec %item(@move_list, 1), you move say south, once you've confirmation (Exits line or whatnot) you do %pop(move_list) and remove the direction. All this should go even smoothly now with all the excellent scripting additions Zugg has made so far. Though I'm not familiar in a practical level with all this at all anymore because I nor actively MUD nor script.
Anyway, I never used slow walk, seemed rather clunky to me to be honest. |
|
_________________ The Proud new owner of CMud.
--------------------------------
Intel Core i5-650 3,2GHz
4 DD3 RAM
GTX 460 768MB
Win 7 Home Premium 64x
-------------------------------- |
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Wed Jul 07, 2010 1:10 pm |
I have to agree. Popping directions off a stringlist is probably a much better solution for what you are doing.
|
|
|
|
Deria Newbie
Joined: 06 Jul 2010 Posts: 9
|
Posted: Thu Jul 08, 2010 6:16 am |
Ok...i will think about it.
Meanwhile i found a solution for my question. At the end of the path it is possible to add (#SHOW endPath), so we know when the path ends. |
|
|
|
robecks Beginner
Joined: 22 Jun 2010 Posts: 17
|
Posted: Thu Jul 08, 2010 11:06 pm |
i would post it but looking over my scripts it appears i deleted it -.- im sorry :(
|
|
|
|
|
|