This is the Heumjuuneu Postbox system, conceived by Redunzgofasta (the builder of the Heumjuuneu modules)and GfB. Developed, build en scripted by GfB. You can find us at www.heumjuuneu.nl or visit us in Heumjuuneu It offers a PCs to have a PB to which people can send letters. When the PC collects his mail, he receives a letter, which if used shows him the text on the letter. Other PCs can read the letter too, if they have the letter of course. A PC doesn't have to be playing to receive letters in his PB. A PC doesn't have to own a PB in order to send a letter. The maximum number of characters in a letter is 250. PCs can sell their PBs back at costprice.
Posted by SuperMom ( 152.163.xxx.xxx ) at 2005-04-03 12:56:00
Hello, I tested out the mail functions and I'd like to report a very small spelling mistake. Just letting you know for your next update. In the conversation, gfb_pb_mailman, the last conversation option, Noting, is supposed to be Nothing.
Also, how exactly do I edit the price of a Post Box? Thanks.
This is a compilation of the old system into a single score. There were 3 that made this score of 9.33 then rounded to 9.
Posted by GfB ( ..xxx.xxx ) at 2003-08-08 14:29:00
I'm sorry , I forgot to include more infornation in the zip. I have a new version ready in which the postman give you the letters, rather than having the PC pick them up. But I can't update yet. Here is the about file included in the erf:
This is the Heumjuuneu Postbox system, conceived by Redunzgofasta (the builder
of the Heumjuuneu modules)and GfB. Developed, build en scripted by GfB. You can
find us at Link or visit us in Heumjuuneu
It offers an infinite number PCs to have a PB to which people can send letters.
I know the mailman NPC sais there are only a limited number of PBs available and
that is why they are so expensive. That was true in the first version I made.
The real reason I have made them so expensive is that we did not want every
player that visits our server to buy a PB with every character and polute the
database.
When the PC collects his mail, he receives a letter, which if used shows him the
text on the letter. Other PCs can read the letter too, if they have the letter
of course.
A PC doesn't have to be playing to receive letters in his PB.
A PC doesn't have to own a PB in order to send a letter.
The maximum number of characters in a letter is 250.
PCs can sell their PBs back at costprice.
I have put in two letter systems. You can change the system in gfb_pb_set_up.
In the first system the text on the letter is not persistent, in order to
prevent the database from growing bigger and bigger. It is stored locally on the
item. This means there is text on the letters as long as the letter is in the
world. If a player logs out with the letter in possesion the text is lost.
In the second system the text is persistent. Not all letters are kept. When a
PB owner speaks to the mailman NPC and when he throws letters in the recycle
bin, the database is cleaned of his letters that are not in the world anymore.
The maximum number of characters in a letter is 250.
Letters and only letters can be destroyed in the recycle bin.
DMs get an option to remove the PB when they choose to send someone a letter.
This deletes the PC from the PB list and all the letters that might be in the
PB. The PC with the last PB number is moved to this place on the list.
You can change the price of a PB and sending a letter in gfb_pb_set_up. You
can also change in this script how the letter is presented to the PC. Either in
a private conversation or as a personal message.
For more experienced scripters other things can be changed in the gfb_pb_inc scripts
INSTALLATION
Import the mailmam.erf, ignore message about missing recources (press OK), you
don't have to overwrite any recources and paste the next pieces of script in your
on item activated script of your module events:
if (GetResRef(GetItemActivated()) == "gfb_pb_letter")
{
SetLocalObject(GetItemActivator(),"ITEM",GetItemActivated());
ExecuteScript("gfb_pb_letter",GetItemActivator());
return;
}
if (GetTag(GetItemActivated()) == "gfb_pb_trns_data")
{
ExecuteScript("gfb_pb_trns_data",GetModule());
return;
}
Or use the gfb_pb_act_item script.
If you are using HCR (I don't know about HCM) all you have to do is import the
mailman.erf.
While building the module you will get the following messages:
I keep records of who owns a PB, who is the owner of a PB, the number
of PBs sold, the letters in the PB and the number of letters in each PB. The
last two are deleted when a PC collects his mail. The first two are delete when
a PC sell his PB back or when a DM deletes it (there is a option for DM's in the
conversation of the mailman NPC to delete a PB). If you are using the PW-letter
option there is a record for each letter still in possesion by a PC.
This data is stored making use of the option to save data to an external
database offered by NWN since Patch 1.30.
I used the next Custom Tokens numbers: 1998 (the price of sending a letter),
1999 (the text of the letter when the PC reads his letter), 2000 (the price of
a PB) and 2001 (to show the sender the text for approval)
I used 778 as ListenPatternNumber, which can be changed in script gfb_pb_inc_const.
The NPC listens to all text. Set in the spawn script of the NPC: gfb_pb_spawn. He also has
a custom on conversation script. So as to only let him listen to his customer. gfb_pb_on_conv.
Posted by Anonymous ( ..xxx.xxx ) at 2003-07-17 23:41:00
More info, please
Posted by HappyZergling / Koby the Bold ( ..xxx.xxx ) at 2003-07-02 15:15:00
Uhm... A little more information up front would be nice...
You must be Logged In to post comments in this section.