VoyForums

VoyUser Login optional ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time ]
Subject: Preparatory script for Newbyes


Author:
zavo
[ Next Thread | Previous Thread | Next Message | Previous Message ]
Date Posted: 20:19:25 09/30/04 Thu

Another question for you:

Supposing that there are 3 MOBs in 3 differents rooms, M1,M2 and M3 in room A,B,C, and supposing that the 3 rooms are contiguous, could you please write a script that:

starting from the first room (A), It checks for the presence of M1 and kill him. If M1 is not present, it goes to the next room (B) and checks for M2; if M2 is present, It kills him and so on until also M3 is killed (if present); then it returns to room A and sleeps until next tik.

I ask you this 'cause I think it will be a very preparatory script for the newbyes like me :D

TNX!

[ Next Thread | Previous Thread | Next Message | Previous Message ]

Replies:
[> Subject: Re: Preparatory script for Newbyes


Author:
John
[Edit]

Date Posted: 03:32:45 10/08/04 Fri

Well if you read the bot on the wintin script page you can see how that's done for entire zones. all the mobs are layed out in the script as actions, so if the bot sees that mob it makes a decision on whether to kill it or not. after the mob has finished killing it, it moves to the next room on the path.
the zones in that script are all packed together, so you get the 'map' (a series of moves in a variable array), and the mobs all together. you can read that script to see how decisions are made. if you see a word and it doesn't make sense why it's there, it's probably an alias, so just search for that word and find #alias {} and read what it does. there is a lot to that big script so you might want to start on the 'tarsis bot' script which was an old version that contains only one zone.

when you read the script you'll see that all the paths, or directions in the 'map' are just aliases, so you can actually set them to anything (like the sleep command). when you want to sleep you could jam some commands together like this:
#alias {Test23} {west;west;west;rest;sleep;#ticksize 60}
#alias {Test24} {wake;stand;#ticksize 3;e}
this would allow you to sleep for a minute, then pickup a normal pace after that time.

>Another question for you:
>
>Supposing that there are 3 MOBs in 3 differents rooms,
>M1,M2 and M3 in room A,B,C, and supposing that the 3
>rooms are contiguous, could you please write a script
>that:
>
>starting from the first room (A), It checks for the
>presence of M1 and kill him. If M1 is not present, it
>goes to the next room (B) and checks for M2; if M2 is
>present, It kills him and so on until also M3 is
>killed (if present); then it returns to room A and
>sleeps until next tik.
>
>I ask you this 'cause I think it will be a very
>preparatory script for the newbyes like me :D
>
>TNX!

[ Post a Reply to This Message ]



VoyUser Login ] Not required to post.
Post a public reply to this message | Go post a new public message
* Notice: Posting problems? [ Click here ]
* HTML allowed in marked fields.
Message subject (required):

Name (required):

  Expression (Optional mood/title along with your name) Examples: (happy, sad, The Joyful, etc.) help)

  E-mail address (optional):

* Type your message here:

Choose Message Icon: [ View Emoticons ]

Notice: Copies of your message may remain on this and other systems on internet. Please be respectful.

[ Contact Forum Admin ]


Forum timezone: GMT+0
VF Version: 2.94, ConfDB:
Before posting please read our privacy policy.
VoyForums(tm) is a Free Service from Voyager Info-Systems.
Copyright © 1998-2008 Voyager Info-Systems. All Rights Reserved.