PDA

View Full Version : walking around looking for something specific.



Chopad
09-07-2006, 10:13 PM
I'm trying to write a script right now that basically walks around Wehnimers looking for somebody inparticular. The problem I have is I have a set route where it's move <direction> and then after every move I have a match to see if that person is in the room. When they aren't, it moves on.

This is a problem because after 32 moves my Match table apparently becomes full (even though I'm using the same match for everything). The way I have the script now isn't very efficient, and I was trying to look at the rat hunting scripts to make sense of them but it's kind of tough for me to figure out exactly what's goin on.

Can anybody explain an easy way to just cruise around a set path and check every room to see if something is in there, for someone who hasn't really scripted before? Thanks!

Bobmuhthol
09-07-2006, 10:16 PM
;walk

Chopad
09-07-2006, 10:20 PM
sigh - what is the point in replying to a question at all if you have absolutely no relevant information? If I wanted to WALK myself, I wouldn't be trying to make a script for it.

Bobmuhthol
09-07-2006, 10:26 PM
You're retarded.

Chopad
09-07-2006, 10:31 PM
Anybody without the Seattle teenage angst that can give some real answers? Thanks.

Caede
09-07-2006, 10:50 PM
He gave you a serious, good answer: ;walk

Download Lich (http://lich.gs4groups.com).

Example usage: ;walk priestess

EDIT: If you absolutely must use a Wizard-style script, download Lich anyway and run it with ;w <script> -- you now have unlimited matches, instead of 32. I think SF may also give you unlimited? Not sure.

Jorddyn
09-07-2006, 10:51 PM
Make your last match a new match string.

Put look
match here Whoeveryouwanttosee
match room1 You see blah blah
match room2 You see blah blah
...
match nomatch Obvious
matchwait

Here:
(stop or exit or whatever the end script command is)

Nomatch:
Put look
match room46 You see blah blah blah

Jorddyn

Edited to add: Clumsy, but it works. I used to have similar scripts that would take me to the guild, to the park, or to the tower from anywhere in the Landing.

Chopad
09-07-2006, 11:47 PM
Thanks I'll check that out. What I was looking for was something a bit more specific than a command in a program. I had been using the Wizard scripting and when doing a ;walk through that to see if he was serious or not, nothing happened.

I thought I made it clear that I had requested a somewhat specific answer when I had said
Can anybody explain an easy way to just cruise around a set path and check every room to see if something is in there, for someone who hasn't really scripted before? Thanks!

To be 16 again I guess.

Thanks for the replies, I'll give it a try.

Bobmuhthol
09-08-2006, 01:21 AM
Sorry for pointing out a pre-existing script that works very efficiently instead of telling you how to write a piece of shit Wizard script. My bad on that one.


room1:
match room2 Obvious
match person fortuneteller
put look
matchwait

room2:
match room3 Obvious
match person fortuneteller
move w
matchwait

person:
exit

Chopad
09-08-2006, 12:50 PM
The point of it, Bobmuhthol was... I wanted to try to make it myself.

Anyways, here's a dollar twenty five :hands you $1.25: and go fuck yourself.

StrayRogue
09-08-2006, 01:20 PM
sigh - what is the point in replying to a question at all if you have absolutely no relevant information? If I wanted to WALK myself, I wouldn't be trying to make a script for it.

;walk is the solution to your problem, you fucking moron.

Plus if you can't figure out a way of moving around without using matches, you shouldn't be scripting.

Caede
09-08-2006, 01:23 PM
The point of it, Bobmuhthol was... I wanted to try to make it myself.

Anyways, here's a dollar twenty five :hands you $1.25: and go fuck yourself.

Your tone in all of your posts really irritates the fuck out of me for some reason. Please die (non-fatally) with Tool and your circle-jerk of friends. Thanks.

CrystalTears
09-08-2006, 01:30 PM
If you can't take criticism well, then please don't ask for answers to questions, especially when they GIVE you the answer.

No more insulting in this thread please. Thanks.

Chopad
09-08-2006, 07:16 PM
You geniuses are clearly missing the point.

StrayRogue if you BOTHERED to READ, I said that when I was doing the scripting it RAN out of MATCHES after 32. I shouldn't bother scripting? Well there rockstar, I want to LEARN so excuse me for asking a question in the appropriate forum. /Uninstall kthx.

Caede when I asked the question at the very beginning of the post there was NO tone, and it was just looking for a helpful reply. I had asked for somebody to answer as if the person asking the question had no prior knowledge to scripting. Where's the "tone" in that? :rofl:

Hopefully someday I can be as cool as you guys and pick on everyone new to something. Maybe that way I'll be able to actually get an erection :(

Bobmuhthol
09-08-2006, 07:26 PM
<<The point of it, Bobmuhthol was... I wanted to try to make it myself.>>

You also wanted to do it in Wizard. You're retarded.

<<StrayRogue if you BOTHERED to READ, I said that when I was doing the scripting it RAN out of MATCHES after 32. I shouldn't bother scripting? Well there rockstar, I want to LEARN so excuse me for asking a question in the appropriate forum. /Uninstall kthx.>>

You're retarded, and you really shouldn't be programming anything if you have no experience outside of GemStone. You don't understand anything.

Edited to add two more points: You're just now experiencing the 32 match table limit (which I don't know how you could even accomplish given the script you're talking about -- why the FUCK would you ever match 32 different strings at once?), so you're pretty obviously completely new to everything. That's just ridiculous.

What the fuck does "/Uninstall kthx." mean? You are very obviously bad at everything relating to code.

<<Hopefully someday I can be as cool as you guys and pick on everyone new to something.>>

Hopefully someday you'll fucking die.

Latrinsorm
09-08-2006, 07:26 PM
It's not your fault you didn't know what ;walk was.

It is your fault you didn't bother to look into it and immediately went into attack mode instead of investigating. All the name-calling in the world won't change that, so please don't try.

HarmNone
09-08-2006, 07:28 PM
CT just made a post telling you to knock it off with the insults. Following that post with more insults isn't a great idea, Chopad.

Bob gave you a legitimate answer to your question. It wasn't the answer you wanted to hear, so you insulted him for his answer because you didn't understand it. A better method might have been to ask him, nicely, what he meant. He can't be expected to know your level of knowledge regarding things like Lich. None of us can.

Now. CT has said no more insults in this thread. She meant it, and so do I. That means all of you.

Chopad
09-08-2006, 07:47 PM
Bob, Bob, Bob...

I had never scripted in Gemstone before and yes, I wanted to use the Wizard... why is that retarded? Also, again if you bothered to read the first post, I mentioned I had a set path I was walking, and in each room I wanted to check for a particular player. So each room I moved into I would check for the case to see if the player was there. It was the same "match" but it told me I was using it more than 32 times. Thus, I had inquired as to an easier way. ;walk apparently is an easier way but when I TRIED it (Latrinsorm) and it didn't work through the wizard I thought I was being dicked around. Annoyed, I reiterated that I had requested a relevant reply (or one that was maybe a bit more specific. Simply saying ";walk in Lich" would have been pretty significant).

You're retarded, and you really shouldn't be programming anything if you have no experience outside of GemStone. You don't understand anything.

Just an FYI I have a programming degree but I can get any of my friends and tell them... "So... ;walk... get it?" And they would understand exactly what was going on? Hmm... I tend to doubt that. So yes, again, I have programming experience outside of Gemstone which is a reason why I want to mess around with scripting for it... which is why I wanna do this stuff myself instead of using scripts already available. I didn't know people had such moral objections to reinventing the wheel, as it were.

HarmNone
Bob gave you a legitimate answer to your question. It wasn't the answer you wanted to hear, so you insulted him for his answer because you didn't understand it.

If 2 extra words had been added, we wouldn't be discussing this right now. It's not his fault. It turned out it WAS the answer I wanted to hear, albeit extremely vague. And I didn't know that sighing thereafter and requesting a post that had 'actual relevant' information was insulting anybody.

I love this place!

Bobmuhthol
09-08-2006, 07:53 PM
You have "a programming degree"?

LMAO. I bet if I said "You suck at databases" you'd have an ITS degree, right?

Chopad
09-08-2006, 07:55 PM
You have "a programming degree"?

LMAO. I bet if I said "You suck at databases" you'd have an ITS degree, right?

Probably :yes:

Bobmuhthol
09-08-2006, 07:56 PM
<<Also, again if you bothered to read the first post, I mentioned I had a set path I was walking, and in each room I wanted to check for a particular player. So each room I moved into I would check for the case to see if the player was there. It was the same "match" but it told me I was using it more than 32 times.>>

Any not totally inexperienced programmer, regardless of language (in this case, the Wizard, which is *incredibly* simple and understandable so I will not hesitate to say that you are absolutely lying about any sort of programming degree as you would have had to have training in some of the most complex programming languages) will understand how to read error messages pretty quickly. You obviously don't have that ability and don't understand what the 32 match limit really is.

HarmNone
09-08-2006, 07:58 PM
Chopad, let's get something straight here:

As you say, Bob's answer turned out to be the answer you wanted. You accused him of replying with "no relevant information". His information WAS relevant. Your understanding of that information was incomplete. I don't even play GS and I understood what Bob was telling you. So did most others here. Why would Bob assume you didn't?

Again, the better way to have handled this would have been to ask Bob, once you unsuccessfully tried ;walk in the Wizard, what he meant, instead of making the assumption that you were being "dicked around". Making that assumption would give most of us to believe that you've got a chip on your shoulder. If you do, you're not going to find the PC a pleasant place, believe me.

Chopad
09-08-2006, 08:00 PM
Yes, thank you HarmNone I know what I said. As a matter of fact, I'm actually able to click on 'page 1' and re-read it as many times as I want. Shocking isn't it? However let's all please overlook the fact that while I said I requested relevant information (AS WE ALL KNOW WAS RELEVANT! WE GET IT!), I was replied to with 'you're retarded.' While my post wasn't very constructive... neither-the-fuck was that. So much for any civility.

oh and lol no like I said I love this place :fuzzy hug: Rainbow tinted windows are my favorite too.

Ignot
09-08-2006, 09:16 PM
I gotta side with Bob on this one. You keep saying you read your posts on the first page over and over. You can honestly read through all that and think your right?

Im so eager to see how im gonna die!

HarmNone
09-08-2006, 09:26 PM
Yes, thank you HarmNone I know what I said. As a matter of fact, I'm actually able to click on 'page 1' and re-read it as many times as I want. Shocking isn't it? However let's all please overlook the fact that while I said I requested relevant information (AS WE ALL KNOW WAS RELEVANT! WE GET IT!), I was replied to with 'you're retarded.' While my post wasn't very constructive... neither-the-fuck was that. So much for any civility.

oh and lol no like I said I love this place :fuzzy hug: Rainbow tinted windows are my favorite too.


A (mostly) reasonable post will receive a reasonable answer: Two wrongs do not make a right. You reacted badly to Bob's relevant post, and Bob reacted badly to your reaction. We still haven't reached a right, so the old adage is proven.

HarmNone
09-08-2006, 09:30 PM
Several posts have been removed from this thread. The moderator told you to stop with the insults. I reiterated that statement. Any further posts made just for the purpose of continuing the insults will be removed.

Shaelun
09-11-2006, 02:06 AM
SF has a match limit, last I had heard. I think it's 128.

AestheticDeath
09-11-2006, 07:52 AM
I don't really see how you guys can logically side with bob on this one.

Bob gave another incomplete answer, and being incomplete the guy asking for help was unable to understand it. He unlike all of you, has not been reading the PC for years, and therefore had no knowledge of Lich.

BTW, searching for ;walk, gave me nothing even pertaining to the scripting folder, much less Lich.(edit to add, at least in the first three pages of responses outta 500 I didnt bother lookin after that.)

As another person who will be seeking help somewhat often on the subject of scripting (yeah in wizard of all things, Its what I used to begin with, and I am familiar with it) and other things, I tend to sympathize with Chopad.

You guys need to see this from another perspective or something.
When people come asking a question, they become the student. At that point you have to decide whether you wanna be another eager student, the teacher, the class clown, or the bully.

Most people prefer the teacher, but also welcome the other students. If you want to help someone with their question, it seems to me you could make a clear, and complete answer. Caede's response in reply 5 was much more appropriate than bobs.

Some of you people need to go beyond your dislike and either help the person, or stay outta the conversation.

StrayRogue
09-11-2006, 08:04 AM
I imagine this post came about less from disagreeing with Bob, and more from the fact he's disagreed with your own scripting abilities in the other thread.

AestheticDeath
09-11-2006, 08:11 AM
From both actually. I admit I have little to no knowledge in scripting. Never took classes on it. I get by just looking at other scripts and changing them. When I ask for help, thats what I would like to see. Not some degrading remark, or someone telling me my whole script just sucks. Constructive criticism, or critiqueing is great, insulting me or my abilities serves no purpose.

In this thread bobs post just seemed like he was trying to piss off the other guy by giving the shortest answer possible, and still be an answer. It seriously needed more information.

Bobs first post in my thread was good, after I posted my script as it was, he just threw out 3 meaningless posts.

Getting beyond bob, several other people came in here just saying Chopads stupid cause he didnt understand what amounts to an archaic reference. Or because of his response to the reference. People just see someone they dont particularly like, and jump on the bandwagon beating with a stick.

StrayRogue
09-11-2006, 08:14 AM
No, we came in saying he was stupid because he IS stupid. His inane, insulting posts in the Tool thread doesn't give any of us the impetus to treat his requests with any kind of respect or urgency.

Jumping on the bandwagon? Maybe. I don't really like helping people I don't like.