This will help you prevent players transferring items from one of their characters to another one. Players will still be able to trade or sell items with other players and merchants. Once a character has possessed an item it is tagged with the player's information. If the player tries to transfer items that have been tagged to another one of their characters, this script will force them to drop the item(s) on the ground and make the player "tell" on themselves. All DMs will be notified when the event takes place as well as a message in the event log.
If you incorporate this system as it is in the example mod it is close to 100% effective. Gold cannot be tagged so that can still be transferred. Also if a player is picking up a stackable item, and they have some of the stackable item in their inventory, it will not fire the script.
I have had this system running on my module for over 2 years and have hardly ever had a problem with it. You need to add the functions TagAllItems() and ItemTransferring() to your OnAcquireItem event of your module.
Enjoy,
harv711
NOTE: This will only work on multiplayer games. If you use Leto to change a character�s name it will make the character drop all the items in their inventory.
I am not quite sure what your asking. If you are wanting the script to post both characters names in the log, it does that. If you look at what the PC says when he drops the item, it identifies what character the item originated from. If you are wanting me to go ahead and post that in the logs let me know and I will make an update.
Tom
Posted by hympyke at 2006-09-11 09:30:33 Voted 10.00 on 08/21/06
This system is really great. I want to ask a little thing for you. You able to write in this script the following thing: when the server writes in the log, writes name of the "pick-upper" character, and the another character? In this time writes only the pick-upper.
If you have any trouble with this system, please contact me and I will try to help you solve any conflicts you are having with any other system that you might be using, or atleast help you trouble shoot it. I made this script with only my module in mind so who knows what other scripts it may conflict with.
Posted by hympyke at 2006-08-21 21:20:49 Voted 10.00 on 08/21/06
Ok, i'm forgot this line:
// Make sure this script only runs on PC's.
if(!GetIsPC(oPC) || GetIsDM(oPC))return;
in onAcquire. I vote 10 ;)
Posted by hympyke at 2006-08-21 09:55:08 Voted 10.00 on 08/21/06
I'm sorry. I want to vote 10 but this system incompatible with the deathsystem of Hard Core Ruleset :(((((
When a PC dies, the mod sends warning for all items in the invertory.
You must be Logged In to post comments in this section.