Guard (with no s) should NOT bring guards

For ideas on how to make Second Age a better shard. Can it get any better? Maybe.
Forum rules
Posts in this forum are expected to be constructive, realistic and civil. Inflamatory or off topic posts will be removed.
Post Reply
Fwerp
UOSA Subscriber!
UOSA Subscriber!
Posts: 626
Joined: Wed Feb 04, 2009 12:23 am

Guard (with no s) should NOT bring guards

Post by Fwerp »

Also, hi buy should work (at least in early t2a). It works in the demo.

User avatar
Faust
Posts: 6247
Joined: Mon Sep 22, 2008 7:01 pm

Re: Guard (with no s) should NOT bring guards

Post by Faust »

What do you mean guards should not bring guards?

User avatar
Ronk
UOSA Donor!!
UOSA Donor!!
Posts: 1942
Joined: Mon Aug 04, 2008 10:56 am

Re: Guard (with no s) should NOT bring guards

Post by Ronk »

He's saying if you say:

"Guard me" after being attacked in town, no guards will come to your aid.

You must say "guards" to bring guards. I.E. the S is important.
------------------
The Bloodrock Orcs - http://www.bloodrock.org
Historic Bloodrock

User avatar
Faust
Posts: 6247
Joined: Mon Sep 22, 2008 7:01 pm

Re: Guard (with no s) should NOT bring guards

Post by Faust »

So guards will come if you literally just say the word "guard"?

User avatar
Batlin
wobble llama
wobble llama
Posts: 512
Joined: Fri Dec 19, 2008 4:32 am
Location: Ultima Universe

Re: Guard (with no s) should NOT bring guards

Post by Batlin »

I think fwerp is referring to this:

Code: Select all

on speech<"*guards*">(object speaker, string arg)
{
  if(speaker == this)
  {
    return(0x01);
  }
  if(!isMurderer(this))
  {
    return(0x01);
  }
  if(!inJusticeRegion(getLocation(this)))
  {
    return(0x01);
  }
  callGuards(this, speaker, 0x03E8);
  return(0x00);
}
Saying "guard" is not enough, it must be "guards".
+ORC: If you give a man a crack he'll be hungry again tomorrow, but if you teach him how to crack, he'll never be hungry again.
chumbucket: I don't collect pixels.

Never trust the client. It's in the hands of the enemy : UO Demo internals @ JoinUO

User avatar
Derrick
Posts: 9004
Joined: Thu Dec 13, 2007 7:49 pm
Location: Cove
Contact:

Re: Guard (with no s) should NOT bring guards

Post by Derrick »

Aye, just tested, this is in error in comparison to the demo code.

However, the client keywords whenever introduced, sets 0x0007 to be *guard* and *guards*

At some point, *guard* was also allowed. Not sure when.

User avatar
Faust
Posts: 6247
Joined: Mon Sep 22, 2008 7:01 pm

Re: Guard (with no s) should NOT bring guards

Post by Faust »

Never thought to try just "guard". I was always under the assumption that only "guards" would work. :wink:

User avatar
Batlin
wobble llama
wobble llama
Posts: 512
Joined: Fri Dec 19, 2008 4:32 am
Location: Ultima Universe

Re: Guard (with no s) should NOT bring guards

Post by Batlin »

However, the client keywords whenever introduced, sets 0x0007 to be *guard* and *guards*
Derrick, if the file you are referring to is "speech.mul", the patchlog file indicates this file was added with "Win32_UO_Gold Publish 60".
That's UO:R, client 2.0.7 (gold_win32_2-0-7).
+ORC: If you give a man a crack he'll be hungry again tomorrow, but if you teach him how to crack, he'll never be hungry again.
chumbucket: I don't collect pixels.

Never trust the client. It's in the hands of the enemy : UO Demo internals @ JoinUO

User avatar
Derrick
Posts: 9004
Joined: Thu Dec 13, 2007 7:49 pm
Location: Cove
Contact:

Re: Guard (with no s) should NOT bring guards

Post by Derrick »

Thanks. So the keyword localization was introduced during UO:R. It's probably safe to assume that *guard* and *guards* were equivalent at that time.

It's still unclear if they were equivalent before that time.

Post Reply