View Single Post
  #34  
Old 03-31-2002, 08:31 AM
Malevolent
Hill Giant
 
Join Date: Mar 2002
Posts: 171
Default

A couple design notes.

I have working master-servant code. Currently, you have two options. First, you can depop then repop the zone, which will flag everyone in the zone to look at you as their master. Or, you can use the #spawn command to bring in your own half-pets (not sure what to call these things).

As master of a zone, or small group of NPCs, when famine strikes and blood boils, and then NPCs die you receive a cut. Right now, I have that money routed to the client's bank account. I'm having a heck of a time getting the client to update how much money is in the bank or in the player's inventory (I've got to be missing something obvious), so a zone is required to see how much you have accumulated so far.

E.g., I depop the zone. Then repop it. Here is some old chat lines from a version or so back.

Quote:
[Sat Mar 30 11:44:57 2002] Loyal Commando punches orc emissary for 46 points of damage.
[Sat Mar 30 11:44:57 2002] Orc emissary hits Loyal Commando for 51 points of damage.
[Sat Mar 30 11:44:59 2002] Loyal Commando punches orc emissary for 43 points of damage.
[Sat Mar 30 11:44:59 2002] orc emissary has been slain by Loyal Commando!
[Sat Mar 30 11:44:59 2002] Master, I your loyal servant Loyal_Commando01, have donated 26 food now of a total of 26 food parts to you!
[Sat Mar 30 11:44:59 2002] Master, I your loyal servant Loyal_Commando01, have brought money!
[Sat Mar 30 11:44:59 2002] I shall now donate to you 0 platinum, 5 gold, 2 silver, and 6 copper.
[Sat Mar 30 11:45:05 2002] Orc oracle hits Loyal Commando for 20 points of damage.
...
He later died. However, on a more interesting note is this snippet. It gives an example of one of a couple of the commands I've added.

Quote:
[Sat Mar 30 11:45:37 2002] You say, 'Hail, Loyal Commando'
[Sat Mar 30 11:45:40 2002] You say, 'DO NOT FAIL ME'
[Sat Mar 30 11:46:53 2002] You say, '#gettarget'
[Sat Mar 30 11:46:56 2002] You say, '#getmaster'
[Sat Mar 30 11:46:56 2002] I obey my master Tavin, have you heard of them?
[Sat Mar 30 11:46:56 2002] I don't know how much I've donated
[Sat Mar 30 11:46:57 2002] You say, '#hungry'
[Sat Mar 30 11:46:57 2002] Asking target if they are hungry..
[Sat Mar 30 11:46:57 2002] Hungry!
[Sat Mar 30 11:46:58 2002] You say, '#hungerthreshold'
[Sat Mar 30 11:46:58 2002] Hunger Value: -52
[Sat Mar 30 11:46:59 2002] You say, '#gettarget'
[Sat Mar 30 11:46:59 2002] I must find Ambassador_DVinn00, so that I may eat them.
[Sat Mar 30 11:47:38 2002] Loyal Commando says, 'Master, I have failed you. I shall await you in heaven.'
That last statement is sent to the servant's master whenever they die.

Some other adjustments include making hunger not trigger the entire zone. And some general reordering of things in preparation for the next steps.

I'll discuss this more tomorrow.

-MV
Reply With Quote