|
||
|
|||||||
| Custom Script Releases This forum is where you can release your custom scripts for other users to use. Please note: By releasing your scripts here you are submitting them to the public and as such agree to make them public domain. The RunUO Team has made its software GPL for you to use and enjoy you should do the same for anything based off of RunUO. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Forum Expert
|
Cleanup
What is it? Allows players to [cleanup their kills and the area. NOTE: I was over 90% done with this before I even saw there was one very similar using XML, so any similarities between this system and that one are purely coincidental. This one does not require XML or any other addon. CREDITS: The original inspiration for this was the old 1.0 [cleanup script that first combined [grab and [red in one script. (Author: phoo) Installation: - Drop in customs. - If you have conflicting commands or items, make adjustments as necessary. How to use: - "[cleanup" will clean the area near the player of items and corpses to which they have looting rights. - "[cleanop" brings up the Options Gump, allowing players to select which items they wish to collect or not. - Admins using [cleanop will also have buttons allowing them to turn on or off the selected types globally. Recommended: - Provide a means for players to get a MoneyBag and a CleanupBag. Changes/Updates: 6/18/2007 1:28PM - Fixed null reference exception causing Server crash. 11/10/2007 8:11AM - Added check to verify corpses have Owners.
__________________
Advanced Player Gate with Shard Control - My Master Runebook - Linked Books & Bags - Full Toolbar (Fubar) - XML Bible system - Music Box - Enhancement Deeds - House Paints - Light Switch Last edited by Lokai; 11-10-2007 at 09:12 AM. Reason: Hopefully fixed null reference issue |
|
|
|
|
|
#2 (permalink) | |
|
Forum Novice
Join Date: Jan 2006
Posts: 204
|
Not sure what is wrong... i use clean up and says admin needs to start the clean up system, I try to use [cleanop and it crashes.... any reason ?
Now I tried to add a cleanup stone manualy and it crashed and wont start server.... says fatal error...????? Quote:
__________________
You Can Make a Good Living working for someone else, you can make a fortune working for yourself. |
|
|
|
|
|
|
#3 (permalink) | |
|
Forum Novice
Join Date: Jan 2006
Posts: 204
|
server wont even start up !!!!!
Quote:
__________________
You Can Make a Good Living working for someone else, you can make a fortune working for yourself. |
|
|
|
|
|
|
#4 (permalink) |
|
Forum Novice
Join Date: Jan 2006
Posts: 204
|
Again downloading something from ya bro... and it crashed, do i need certian programs for it to compile with ? i had delete all the runuo 2.0 stuff and the folders and extract what i back up and will have to redo what i had done...again.
__________________
You Can Make a Good Living working for someone else, you can make a fortune working for yourself. |
|
|
|
|
|
#10 (permalink) |
|
Forum Novice
Join Date: Jan 2006
Posts: 204
|
got it to work thanks... wish i knew the server would have started up after this fix, i deleted everything and redoing all that i have done in the past 2-3 days... :-( and as ya know... trying to make a shard excellent/kool and awesome... alot of work can be done in -2-3 days.
__________________
You Can Make a Good Living working for someone else, you can make a fortune working for yourself. |
|
|
|
|
|
#12 (permalink) | |
|
Forum Expert
|
Quote:
If you want, change the Redeem method as follows to have Redeemed Corpses pay you in the Moneybag also (this is partial code, only one line was added, and one line changed, as below in RED.): Code:
eable.Free();
Container moneyBag = GetMoneyBag(from); //This one added
foreach (Corpse c in Other)
{
if (c.Owner is PlayerMobile)
{
from.SendMessage("This contains no redeemable soul.");
return;
}
else if (c.CanLoot(from))
{
from.SendMessage("You Redeem the being's soul.");
//This one changed
moneyBag.DropItem(new Gold(Utility.RandomMinMax(1, 99),
Utility.RandomMinMax(100, 100 + (int)Math.Abs(c.Owner.Fame) + (int)Math.Abs(c.Owner.Karma))));
c.Delete();
}
|
|
|
|
|
|
|
#13 (permalink) | |
|
Newbie
Join Date: Jul 2005
Posts: 73
|
Quote:
|
|
|
|
|
|
|
#14 (permalink) | ||
|
Newbie
Join Date: Feb 2006
Posts: 13
|
but how do we add the MoneyBag and CleanupBag to the new players backpack? In CharacterCreation.cs Iv tryed this:
Quote:
Quote:
P.S. Yeah that BrickhouseDeed Isnt working eather. Just thought id try adding that too. |
||
|
|
|
|
|
#17 (permalink) |
|
Forum Expert
|
people are still making changes and mods to the original intent of my fixxed [grab script eh?
but this does seem like a good modification with actual options which is good. one thing though, i remember someone made a system that let you attach variables to a playermobile without changing the actual playermobile. if i were you i would look into a method of storing the variables on the playermobile without modifying the playermobile itself. |
|
|
|
|
|
#18 (permalink) |
|
Forum Novice
|
Thanks... I will look into using it, try it out and what not. Also, I do not know if this is right all the way, but when I read about the ACC package it was supposed to help with that sort of edits... Make it so changes could be done to the playermobile and not have to be done directly to the file... But I might be wrong. I am still pretty new, I just talk alot (hence the high # of posts). If I was write, then I hope using the ACC package might help with improving the files as Murzin was thinking/hoping...
GreyWolf. |
|
|
|
|
|
#19 (permalink) |
|
Forum Expert
|
while this is a good set, one thing i distinctly notice missing is something that may not have even occurred to you.
as a function of what they are, public shards like these typically have a high turn-over. one thing you could do to really make this robust is add a feature for the admin to set an " expire " option like the saved variables for each player will be automatically cleared after a certian period of time. that would cut down on overhead and be a step in the right direction. i would reccomend a default of like after 1 month of not logging in, it would automatically clear their options so you wouldnt be endlessly saving those variables for someone who may never even come back. |
|
|
|
|
|
#20 (permalink) |
|
Forum Novice
|
hey 1st let me say We Love this script I hope you can tell me why it's crashing I'm attatching the 2 reports I have there were 3 crashes but the 1st one restarted my computer thus didn't generate a report. ok it wouldn't let me attatch them as .txt files. so I rared them together please tell me what happened this worked for a week til today.
__________________
Lady Rhia AKA Misty Dain Owner Unicorn Heaven Where Unicorns Are a Specialty! |
|
|
|
|
|
#21 (permalink) | |
|
Forum Expert
|
Quote:
Here is the fix. I changed this line: Code:
else if (c.CanLoot(from)) Code:
else if (c.Owner != null && c.CanLoot(from)) |
|
|
|
|