Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Deria
Newbie


Joined: 06 Jul 2010
Posts: 9

PostPosted: 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:)
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4701
Location: Pensacola, FL, USA

PostPosted: 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
Reply with quote
Deria
Newbie


Joined: 06 Jul 2010
Posts: 9

PostPosted: 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.
Reply with quote
Deria
Newbie


Joined: 06 Jul 2010
Posts: 9

PostPosted: 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)
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4701
Location: Pensacola, FL, USA

PostPosted: 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
Reply with quote
Deria
Newbie


Joined: 06 Jul 2010
Posts: 9

PostPosted: 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:)
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: 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?
Reply with quote
robecks
Beginner


Joined: 22 Jun 2010
Posts: 17

PostPosted: 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
Reply with quote
Deria
Newbie


Joined: 06 Jul 2010
Posts: 9

PostPosted: Wed Jul 07, 2010 5:23 am   
 
@robecks

Yeah...but how did you know when one path ended?

Could you maybe post your script?
Reply with quote
Deria
Newbie


Joined: 06 Jul 2010
Posts: 9

PostPosted: 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?
Reply with quote
Deria
Newbie


Joined: 06 Jul 2010
Posts: 9

PostPosted: Wed Jul 07, 2010 10:11 am   
 
Hm..there is th Event OnWalkEnd ... but it seems not to work for #SLOW path.
Reply with quote
Progonoi
Magician


Joined: 28 Jan 2007
Posts: 430

PostPosted: 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
--------------------------------
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: 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.
Reply with quote
Deria
Newbie


Joined: 06 Jul 2010
Posts: 9

PostPosted: 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.
Reply with quote
robecks
Beginner


Joined: 22 Jun 2010
Posts: 17

PostPosted: Thu Jul 08, 2010 11:06 pm   
 
i would post it but looking over my scripts it appears i deleted it -.- im sorry :(
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net