The Players Corner Archive

Quick Question...

If I want to setup a script to go to a certain person's table upon arrival at an inn...

I can't simply put

move go <person's name> table
move go <person's name> table

or

put go <person's name> table
put go <person's name> table

Since you have to go twice to a table in order to go there...I didn't know how to do it.

could someone help me with that?

Thanks. reg

Might look something like this...

put go %1 table
wait
move go %1 table


%1 is the name of the person you try to go to. So, if this script were called TABLE.CMD, then in the game you would type

.TABLE Caels

or whoever's name it is you are trying to join.

So you were correct in your own post...

------------------
Caels Onae'Rae
==============
"Don't piss off the petty people and you'll prolly get by in life." reg

wait is a foolish command and should not be used very much.

put go %1 table
MATCH go You approach the
MATCH notable You don't see that table.
MATCHWAIT
go:
put go %1 table
notable:
exit
reg

Ok...

I'm trying to make a script to take me from icemule to the rift.

The only problem in doing this is that there is an area that you continually go north (Kind of like the graveyard, when you continually go n, nw, n, nw, until you get to the area where you go path, then go trail).

This one you go n, n, n, n, etc. until you come to a nw or s exit.

How do I setup something like that? Something that will continue to loop in a north direction until it sees a northwest or south exit.

Thanks. reg

Start:
pause 1
put north
match exit south
match exit northwest
match start Obvious
matchwait

Exit:
exit


I assume this will work, not tested.

-=Insomniac=- reg

And I can just enter that into my script just like that right? reg
Well, you'll have to change the script to continue once a direction is met that you wanted, so that it keeps going, I assume there is some more movements after a direction is found... It's not hard, really...

#movements before
Start:
pause 1
put north
match exit south
match exit northwest
match start Obvious
matchwait

Exit:
#rest of the movements here

-=Insomniac=- reg

why do you use pause? reg
Becuase I'm using 'put north', instead of 'move north', and it caters for game lag etc.

-=Insomniac=- reg

Yes, but matching should have the same effect as putting MOVE. reg
Well, MATCHes are unconditionally slow, and some people with slower connections have to use different things for a MATCH command. I use PUT with PAUSE or WAITFOR to get the best speeds out of movement scripts.

------------------
Caels Onae'Rae
==============
"Don't piss off the petty people and you'll prolly get by in life."

[This message has been edited by Caels (edited 06-12-2001).] reg

Actually you're wrong, MATCHES are actually faster than waitfor. Pause/waitfor are worthless commands and have no use. reg
Then explain to me why my PUT/WAITFOR scripts are up to 3 times faster than my MATCH scripts.

------------------
Caels Onae'Rae
==============
"Don't piss off the petty people and you'll prolly get by in life." reg

You're obviously wrong. If you actually take a look at it and try to do a experiment you'll actually see i'm right.

#test
MATCH test Your spell
MATCHWAIT
test:
put cast
exit

.test

[Press the ESCape key to abort script.]
prep 799
You concentrate on the Demonic Gate spell...
cast
[Script finished!]
Your spell is ready.
>You gesture.
Spell not implemented.
(Forcing stance down to guarded)
Cast Roundtime 3 Seconds.
As you may see the cast comes even before the Your spell is read.

#test
waitfor Your spell
put cast
exit

.test
[Press the ESCape key to abort script.]
prep 799
You concentrate on the Demonic Gate spell...
Your spell is ready.
[Script]>cast

[Script finished!]
You gesture.
Spell not implemented.
Cast Roundtime 3 Seconds.

As you may see cast comes after Your spell is read, come up with your own conclusion.

-Pirub reg

It looks to me pirub is right, on his comp, on a single test try, at a single moment in time.

But, has he tried it on diferent computers? At different times of day? Diferent net access solutions? Diferent incoming packet size settings?

There are many factors. Not saying you arent right, match very well could be faster in MOST circumstances, but if caels says waitfor is faster, then maybe it is for him.

reg

On my system, MATCH and MATCHWAIT are notorious for hanging up because my connection or my processor is slower than many peoples. WAITFOR solves that problem for me.

------------------
Caels Onae'Rae
==============
"Don't piss off the petty people and you'll prolly get by in life." reg

<< You concentrate on the Demonic Gate spell... >>

Uh... woah?

- Lord Kranar, human Archwizard reg