Go Back   RunUO - Ultima Online Emulation > RunUO > Custom Script Release Archive

Custom Script Release Archive This is a pre-script database archive of what our users had released.

 
 
Thread Tools Display Modes
Old 06-21-2006, 10:13 AM   #1 (permalink)
Forum Expert
 
Join Date: Feb 2004
Age: 27
Posts: 1,834
Default [2.0] Event Talisman

This is a repost of a script I already submited, but now updated won't work with 1.0 anymore.
(make sure you removed all existing talismans while using RunUO 1.0 in a proper way before you install this. You will know you did it wrong, if you get an exception on world load. I'd explain what to do then, if anyone has the problem, but I doubt there are any.

This script will allow you to set up events, in which the participants temporarily have the same stats and skills.
Usage:
In the script change:
public const AccessLevel MinimumEventHolderAccessLevel = AccessLevel.Counselor;
to whatever you see fit as minimum accesslevel to host an event with the talisman. Do not put AccessLevel.Player in.

[add EventTalisman
will add you a blank Talisman.
[add EventTalisman true
[add EventTalisman false
will add you one of 2 preset talisman.

[set CopiesToCreateOnDoubleClick value
Will set the #value of new EventTalisman with the same skills and stats on it, which will spawn when a staffmember wears and doubleclicks the talisman.

[set AllowToRemove true
Will allow a player, who currently is wearing the Talisman to remove it

The only way for players to equip is by doubleclicking it, and if they do it is no longer movable. And if you doubleclick it in your pack, it swaps skills and stats and becomes equipped. If you wear it as Player and may remove it, it swaps skills back and self-destructs. If you wear it as MinimumEventHolderAccessLevel you create copies in your pack.

When a staffmember creates the copies, he gets a controller talisman too. This one is not equipable. If you doubleclick it, you get a gump. There are buttons for moving stuff to the bank or delete it, set allowtoremove true for all talismans, forcing the event to end and a spiffy rejuvinate button. *lol*
Oh and a button to change every participants current Raw stats to what the gump button presser got.

Any bugs or suggestions go here. If you modify this you do it on your own risk.
Remember my: "Do not install this, if you do not 100% trust your staff." It's no longer an issue anymore. Just don't give it to Counselors, if you think they wouldn't care in the end to get fired, if they abuse it. Admins will be notified, if someone didn't get his skills and stats back, but the talisman was deleted. Players can only use 1 Talisman at once. Admins get informed about how many Mobiles out there are modified.
If you find a possible exploit or it crashes the shard lemme know, I'll have a fix asap.
Attached Files
File Type: cs EventTalisman.cs (20.8 KB, 93 views)

Last edited by Kamuflaro; 06-21-2006 at 10:32 AM.
Kamuflaro is offline  
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5