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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
CrimsonSkyDrake
Newbie


Joined: 27 Dec 2004
Posts: 4

PostPosted: Mon Dec 27, 2004 8:12 pm   

Script Request! Anyone bored? Read on. Semi-Complicated.
 
I haven't used zMUD in a few years, and i wanted to write a script for a friend, but i find that I can't anymore. The following shows a list of enemy names, a map of the area, and other junk needed to write it.

What I want this script to do, is walk around within the boundaries of the map shown below, and steal from the enemies that are listed below. This is what I have come up with, as a routine:
1)Scan-If any enemies are within sight, move immediately to it.
Example of a scan:
Right here -A gypsy
Right here -Yvonne
1 north from here - the gypsy boy
1 north from here - a local merchant
2 north from here - the gypsy girl
2 north from here - a gypsy woman
1 east from here - the gypsy girl
1 east from here - a gypsy trader
1 east from here - a gypsy woman
***Scan can go up to FOUR rooms in each direction.
2)Stalk the enemy so it doesn't escape.
3)Slip the enemy 24000 coins(Or just make a place where i can change it)
4)Steal the money back from the enemy.
5)Either slip the money back again, and repeat untill caught, OR kill the enemy once all gold is back in my hand.
***Basically, whatever is easiest for the person wroting the script ^.^
6)Scan again, and repeat the process!


Now, the part i am really having trouble with, is getting my character to walk the entire area within the boundaries of the map below, and actually do the steps I have listed above.
Here is some additional information, messages after the use of every skill:
Command Result
Scan: ***Shown Above***
Stalk gypsy: You now stalk a gypsy trader
Slip 320 coin gypsy: You quietly slip a stout ox some gold.
Steal coin gypsy: Alright! You got 320 gold coins.
You receive 9,216 experience points.
Failure on stealing: Oops, you got caught!

**If by some strange chance the steal misses, there is no need to escape, or really do anything. The enemy becomes agressive, and i kill it without getting scratched. So do whatever y'want there.**

And from there the commands should just start all over again. First it would have to check for other enemies in the room, then it would have to do the 'scan' thing again, or continue walkiing through the area.
Another little note on stealing, since exp goes down with each suscessfull steal, i need it to change enemies around every 10 steals. So preferably, after i steal i just backstab it, loot the corpse, and move along.


Enemies
{
A billygoat is munching on some grass.
A stout ox is here ignoring you.
A gray squirrel is here chittering away and making quite a racket.
A gruff and burly gypsy is here watching things.
A local merchant is here hunting for bargains.
A gypsy woman is here doing her chores.
The gypsy man is here arguing about something.
A large black horsefly buzzes through the air.
A wild looking horse is here eating flowers.
A brown bear is here looking for berries.
A gypsy girl is here looking for herbs.
A little gypsy boy is here getting into trouble.
A gypsy trader is trying to interest you in some worthless junk.
}

Map
{
.............R..........R
.............|...........|
........R--R--R--R--R--R
.............|...|...|....|...|
.............R--R--R--R--R--R
.............|...|...|....|...|...|
.........R--R--R--R--R--R--R
.........|...|...|...|...|....|....|
....R--R--R--R--R--R--R--R--R
.........|...|...|...|
.........R--R--R--R

* "--" or "|" both signify a link between a room
*The letter R represents a room (Duh ^.^ )
*The top of the page is north.
*You can NOT move diagonal.
*The script must stay within these boundaries, map wise.
*The periods are in the map to just space it out, only look at R, --, and |.
}

I really appreciate anyone who even attempts to write this script for me, because i sure couldn't figure it out. Anyone who maybe has another method of doing this, or just some completely alternate idea that they know will work, please post it. Oh, and if i left some needed information out just tell me and i will revise.
Thanks! ^.^
_________________
........No
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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