Go Back   RunUO - Ultima Online Emulation > RunUO > Custom Script Releases

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.

Reply
 
Thread Tools Display Modes
Old 06-30-2006, 09:10 PM   #1 (permalink)
Forum Expert
 
Erica's Avatar
 
Join Date: Jan 2005
Location: Laramie Wyoming
Age: 43
Posts: 1,279
Send a message via ICQ to Erica Send a message via AIM to Erica Send a message via MSN to Erica Send a message via Yahoo to Erica Send a message via Skype™ to Erica
Smile [RunUO 2.0 RC1] ChampionSpawn Cleaner and left overs

Hi heres another script for those that dont like 250 monsters for those small shards and rather have champion spawn less like 40 or so heres one i edited for my shard all this does is spawns less monsters and when a player is killing a monster that spawns once they kill a monster it deletes so no more lag meaning theres no corpse all over the ground and as you all know when you finish champ and champion comes out hes the only one that corpse will stay on ground once you kill him and this script also deletes the left over creatures that spawned from champion as you know when you finish champion theres always left over of creatures of champ hanging around just replace your original championspawn script with this one and restart server and you are set.*PS* wanted to thank Kamuflaro if it wasnt for him i wouldnt been able to do this script.
Attached Files
File Type: cs ChampionSpawn.cs (23.0 KB, 689 views)
__________________

Last edited by Erica; 08-31-2006 at 11:50 PM.
Erica is offline   Reply With Quote
Old 10-24-2006, 07:56 AM   #2 (permalink)
Forum Newbie
 
Join Date: Oct 2006
Posts: 11
Default

i love your script but have a problem that when i get to the champ
the others keep spawning even more then they did during the build up ??

any ideas how to stop them spawning after the champ comes out
brenton is offline   Reply With Quote
Old 05-12-2007, 02:06 PM   #3 (permalink)
Newbie
 
WoWUO_Scorpion's Avatar
 
Join Date: Mar 2007
Location: Rockford, IL USA
Age: 25
Posts: 41
Default

cool script, thank you. got one question though. is there a way to put some sort of timer like to delete corpses after 1 minute or after every 50 kills or something to that effect so that players can have a chance to loot them?
WoWUO_Scorpion is offline   Reply With Quote
Old 05-12-2007, 07:30 PM   #4 (permalink)
Forum Novice
 
Join Date: Jul 2006
Location: Oklahoma
Age: 29
Posts: 482
Default

Thanks so much for this script. It will make my players very happy since they hunt in small groups .
oiii88 is offline   Reply With Quote
Old 05-12-2007, 10:23 PM   #5 (permalink)
Forum Expert
 
Join Date: Feb 2003
Location: East Coast USA
Posts: 1,364
Default

Quote:
Originally Posted by WoWUO_Scorpion View Post
put some sort of timer like to delete corpses after 1 minute or after every 50 kills or something to that effect so that players can have a chance to loot them?
Or if it put all the loot in a special container that was only revealed after the champion was defeated... That would be pretty cool. ^.^
__________________
the-retelling.org : scripts and tech demo
Alari is offline   Reply With Quote
Old 07-31-2007, 08:31 PM   #6 (permalink)
Newbie
 
Join Date: Jun 2007
Age: 25
Posts: 64
Default

hey there, i installed your new champion spawn, it's great, but i wanted to set the amount of creatures higher, where do i edit that?

Thanks a bunch!
photopunisher is offline   Reply With Quote
Old 07-31-2007, 09:57 PM   #7 (permalink)
Forum Master
 
Lord_Greywolf's Avatar
 
Join Date: Dec 2005
Posts: 6,764
Send a message via Yahoo to Lord_Greywolf
Default

a timer or a loot box would be good idea - becaue of many of the mosters at champ spawns loot player corpses - and if they loot a player, and then it gets killed and poof - then player looses his good stuff (should have been insured, but accidents happen)
so watch out for complaints on that one

or might be better to move the players corpse to a safe spot so that the champ monsters can not get to it - like in a boc by the champ or an ankh
this way monsters can not loot it

but it is a good script, and grats on making one that works so well - i lowered the number down a long time ago - 200 monsters coming out at once was a biut much - in 1.0 was 50 of them
but mine is tweaked also based on the champ spawn - different numbers based on the champ (i have a lot of custom champs lol)
__________________
http://www.AoAUO.com

:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :)
Lord_Greywolf is offline   Reply With Quote
Old 07-31-2007, 11:02 PM   #8 (permalink)
Newbie
 
Join Date: Jun 2007
Age: 25
Posts: 64
Default

Quote:
Originally Posted by Lord_Greywolf View Post
a timer or a loot box would be good idea - becaue of many of the mosters at champ spawns loot player corpses - and if they loot a player, and then it gets killed and poof - then player looses his good stuff (should have been insured, but accidents happen)
so watch out for complaints on that one

or might be better to move the players corpse to a safe spot so that the champ monsters can not get to it - like in a boc by the champ or an ankh
this way monsters can not loot it

but it is a good script, and grats on making one that works so well - i lowered the number down a long time ago - 200 monsters coming out at once was a biut much - in 1.0 was 50 of them
but mine is tweaked also based on the champ spawn - different numbers based on the champ (i have a lot of custom champs lol)
how do you tweek the numbers on that script
where do you change it?
photopunisher is offline   Reply With Quote
Old 08-01-2007, 03:47 AM   #9 (permalink)
Forum Master
 
Lord_Greywolf's Avatar
 
Join Date: Dec 2005
Posts: 6,764
Send a message via Yahoo to Lord_Greywolf
Default

this is what mine looks like now - but this is where it is changed at - just have to tweak it simular to this:

Code:
		public void Respawn()
		{
			if( !m_Active || Deleted || m_Champion != null )
				return;

			int i_basenumber = 100;
			int i_submult = 20;
			if  (Type == ChampionSpawnType.MightyMouse  || Type == ChampionSpawnType.ClemTheRatMan)
				{
				i_basenumber = 60;
				i_submult = 10;
				}
			if  (Type == ChampionSpawnType.EvilDragon  || Type == ChampionSpawnType.GoodDragon)
				{
				i_basenumber = 25;
				i_submult = 5;
				}
			if  (Type == ChampionSpawnType.SleepingDragon  || Type == ChampionSpawnType.OphidianLair || Type == ChampionSpawnType.UndeadLegion || Type == ChampionSpawnType.RockEles)
				{
				i_basenumber = 50;
				i_submult = 10;
				}

			while( m_Creatures.Count < (i_basenumber - (GetSubLevel() * i_submult)) )
			{
				Mobile m = Spawn();

				if( m == null )
					return;
__________________
http://www.AoAUO.com

:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :)
Lord_Greywolf is offline   Reply With Quote
Old 08-16-2007, 11:33 AM   #10 (permalink)
Newbie
 
Join Date: Dec 2005
Posts: 52
Default

Quote:
Originally Posted by Lord_Greywolf View Post
this is what mine looks like now - but this is where it is changed at - just have to tweak it simular to this:

Code:
		public void Respawn()
		{
			if( !m_Active || Deleted || m_Champion != null )
				return;

			int i_basenumber = 100;
			int i_submult = 20;
			if  (Type == ChampionSpawnType.MightyMouse  || Type == ChampionSpawnType.ClemTheRatMan)
				{
				i_basenumber = 60;
				i_submult = 10;
				}
			if  (Type == ChampionSpawnType.EvilDragon  || Type == ChampionSpawnType.GoodDragon)
				{
				i_basenumber = 25;
				i_submult = 5;
				}
			if  (Type == ChampionSpawnType.SleepingDragon  || Type == ChampionSpawnType.OphidianLair || Type == ChampionSpawnType.UndeadLegion || Type == ChampionSpawnType.RockEles)
				{
				i_basenumber = 50;
				i_submult = 10;
				}

			while( m_Creatures.Count < (i_basenumber - (GetSubLevel() * i_submult)) )
			{
				Mobile m = Spawn();

				if( m == null )
					return;



Look i dont see this ^^ in champion spawns so how i can change this ??:>
kokosbytow is offline   Reply With Quote
Old 08-16-2007, 03:10 PM   #11 (permalink)
Forum Expert
 
Erica's Avatar
 
Join Date: Jan 2005
Location: Laramie Wyoming
Age: 43
Posts: 1,279
Send a message via ICQ to Erica Send a message via AIM to Erica Send a message via MSN to Erica Send a message via Yahoo to Erica Send a message via Skype™ to Erica
Default

Quote:
Originally Posted by kokosbytow View Post
Look i dont see this ^^ in champion spawns so how i can change this ??:>
Thats his Custom Champion the way he has his to make it like his you will have to ask him.
__________________
Erica is offline   Reply With Quote
Old 08-16-2007, 03:16 PM   #12 (permalink)
Forum Master
 
Lord_Greywolf's Avatar
 
Join Date: Dec 2005
Posts: 6,764
Send a message via Yahoo to Lord_Greywolf
Default

find the line:

Code:
		public void Respawn()
		{
it is from there i made the mods to look like that up there

so you have to modify it to match your champs, etc, because i also have a lot of custom champs
__________________
http://www.AoAUO.com

:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :)
Lord_Greywolf is offline   Reply With Quote
Old 08-17-2007, 07:37 AM   #13 (permalink)
Newbie
 
Dudus88's Avatar
 
Join Date: Dec 2005
Location: Poland
Age: 19
Posts: 34
Send a message via MSN to Dudus88
Default

how i can disable Champion Idol Skull? or just remove it from altar?
__________________
Dudus88 is offline   Reply With Quote
Old 07-26-2008, 10:09 AM   #14 (permalink)
Newbie
 
Join Date: Dec 2005
Posts: 52
Default

this is great script but i have one idea and problem ;] who can fix this because if player die this corpse is too clean ... so this is bad anybody can fix this ??
kokosbytow is offline   Reply With Quote
Old 07-26-2008, 10:35 AM   #15 (permalink)
Forum Expert
 
Erica's Avatar
 
Join Date: Jan 2005
Location: Laramie Wyoming
Age: 43
Posts: 1,279
Send a message via ICQ to Erica Send a message via AIM to Erica Send a message via MSN to Erica Send a message via Yahoo to Erica Send a message via Skype™ to Erica
Default

Quote:
Originally Posted by kokosbytow View Post
this is great script but i have one idea and problem ;] who can fix this because if player die this corpse is too clean ... so this is bad anybody can fix this ??
This doesnt delete Human Bodys as you can see .

Code:
//Cleaner
			Map map = this.Map;
			ArrayList onGround = new ArrayList();
			IPooledEnumerable bodies = map.GetItemsInRange(Location, 100/*, m_SpawnArea*/ );
			foreach( Item body in bodies )
			{
				if( body is Corpse )
				{
					Corpse c = (Corpse)body;
					if(!((Body)c.Amount).IsHuman)
					{
						onGround.Add((Corpse)c);
					}
				}
			}

			for( int i = 0; i < onGround.Count; i++ )
			{
				Corpse d = (Corpse)onGround[i];
				d.Delete();
			}
//End Cleaner
__________________
Erica is offline   Reply With Quote
Old 07-27-2008, 12:35 AM   #16 (permalink)
Forum Expert
 
Erica's Avatar
 
Join Date: Jan 2005
Location: Laramie Wyoming
Age: 43
Posts: 1,279
Send a message via ICQ to Erica Send a message via AIM to Erica Send a message via MSN to Erica Send a message via Yahoo to Erica Send a message via Skype™ to Erica
Default

Quote:
Originally Posted by Lord_Greywolf View Post
a timer or a loot box would be good idea - becaue of many of the mosters at champ spawns loot player corpses - and if they loot a player, and then it gets killed and poof - then player looses his good stuff (should have been insured, but accidents happen)
so watch out for complaints on that one

or might be better to move the players corpse to a safe spot so that the champ monsters can not get to it - like in a boc by the champ or an ankh
this way monsters can not loot it

but it is a good script, and grats on making one that works so well - i lowered the number down a long time ago - 200 monsters coming out at once was a biut much - in 1.0 was 50 of them
but mine is tweaked also based on the champ spawn - different numbers based on the champ (i have a lot of custom champs lol)
Hehe just notice this thats true or can change all those creatures that do loot and change line below to false
i know theres a bunch to put false on that line for the ones that loot corpse.
Code:
public override bool CanRummageCorpses{ get{ return true; } }
__________________
Erica is offline   Reply With Quote
Old 07-27-2008, 03:54 AM   #17 (permalink)
Forum Expert
 
Join Date: Dec 2005
Posts: 272
Default

I'm using this script (thanks Erica!) and I don't think that the looting of the players corpse is a big issue. In the standard version it is quit difficult to find your corpse after you have been killed, because of the huge amount of monster corpses. Once you have established that stuff is missing because of rummaging of the monsters it becomes almost impossible to find the corpse of the monster that did that (if it is killed), or the still living monster walking around with it! So it a risk the player takes (uninsured (valuable) equipment). As long as players know that, it's fine; No need to make champion spawns too easy and totally without any risk.
Melchior is offline   Reply With Quote
Old 08-08-2008, 04:52 AM   #18 (permalink)
Newbie
 
Join Date: Dec 2005
Posts: 52
Default

Yes i find problem can't use lich form because corpse is remove anyone can fix this ?
kokosbytow is offline   Reply With Quote
Reply

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