RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

[RunUO 2.0 RC1] Explosive Effect Area Plugin 1.0

Vorspire

Knight
Explosive Effect Area Plugin 1.0

//////////////////////////////////////////////////////////////////////////
/////
///// Explosive Effect Area Plugin 1.0 By Vorspire
/////
///// Email: [email protected]
/////
///// Created: 31st July, 2006 :: 18:20
/////
///// For: RunUO Community :: www.runuo.com
/////
//////////////////////////////////////////////////////////////////////////
/////
///// Description:
/////
///// This script will allow you to apply cool explosion effects,
///// that cover an area and damage mobiles within range, to almost
///// anything. Using a target Mobile, the script delivers a powerful
///// ranged explosion that surrounds that mobile.
/////
//////////////////////////////////////////////////////////////////////////
/////
///// Usable Methods:
/////
///// FlameWrath.DoRandomWrath( Mobile source );
/////
///// //Will pick a random range, min & max damage.
/////
///// FlameWrath.DoWrath( Mobile source, int mindmg, int maxdmg );
/////
///// //Manually set min/max damage and pick a random range
/////
///// FlameWrath.DoWrath( Mobile source, int mindmg, int maxdmg, int range );
/////
///// //Manually choose all variables
/////
//////////////////////////////////////////////////////////////////////////
/////
///// Example of usage is included with this script:
/////
///// Usage on a Mobile: Balrog.cs @ Line 49 ( OnGaveMeleeAttack )
/////
///// Usage on a Weapon: WrathOfHell.cs @ Line 16 ( OnHit )
/////
//////////////////////////////////////////////////////////////////////////
 

Attachments

  • Explosive Effect Area Plugin 1.0.zip
    3.4 KB · Views: 266

Joeku

Lord
Good job!

I suggest you compress it as a .zip archive instead of .rar, since that's not the generic standard.
 

Erica

Knight
Shard crashes you need to fix it will crash server heres crash
Code:
Server Crash Report
===================

RunUO Version 2.0, Build 2385.3695
Operating System: Microsoft Windows NT 5.1.2600 Service Pack 2
.NET Framework: 2.0.50727.42
Time: 8/2/2006 9:31:38 PM
Mobiles: 4239
Items: 168706
Clients:
- Count: 1
+ 192.168.0.7: (account = test) (mobile = 0x1 'test')

Exception:
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
   at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
   at System.ThrowHelper.ThrowArgumentOutOfRangeException()
   at System.Collections.Generic.List`1.System.Collections.IList.get_Item(Int32 index)
   at Server.Map.TypedEnumerator.MoveNext()
   at Server.WrathTimer.DoDamage(Item g, Int32 mindmg, Int32 maxdmg)
   at Server.WrathTimer.OnTick()
   at Server.Timer.Slice()
   at Server.Core.Main(String[] args)
 

Nagozi

Sorceror
Nice Script! But My Server Crashes :(

Errors:
+ Custom/Explosive Effect Area/AreaExplosionHandler.cs
CS0117: Line 122: 'Server.Mobiles.BaseCreature' does not contain a definition for 'Controled'

*I fixed the error**** Please add another 'l' to the word 'Controled' >>>it should read: Controlled
thanks.
 
This type of a error might occur because you may have a folder wit ha special character like these `~!@#$%^&*()_-+=\|[]{};:'",<.>/? I know this because I got a Server Error like that before when I tryed converting the evo drags because the Version 2.0 server will even read a Folder as a .cs script if It has a special character as apart of the folder name I am not sure if this is what is wrong but if it is Im glad I could help.

Erica said:
Shard crashes you need to fix it will crash server heres crash
Code:
Server Crash Report
===================

RunUO Version 2.0, Build 2385.3695
Operating System: Microsoft Windows NT 5.1.2600 Service Pack 2
.NET Framework: 2.0.50727.42
Time: 8/2/2006 9:31:38 PM
Mobiles: 4239
Items: 168706
Clients:
- Count: 1
+ 192.168.0.7: (account = test) (mobile = 0x1 'test')

Exception:
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
   at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
   at System.ThrowHelper.ThrowArgumentOutOfRangeException()
   at System.Collections.Generic.List`1.System.Collections.IList.get_Item(Int32 index)
   at Server.Map.TypedEnumerator.MoveNext()
   at Server.WrathTimer.DoDamage(Item g, Int32 mindmg, Int32 maxdmg)
   at Server.WrathTimer.OnTick()
   at Server.Timer.Slice()
   at Server.Core.Main(String[] args)
 

Vorspire

Knight
I've added in more null check protection to the script... should be crash proof (99%) now.

Main Post Updated (x1)
 
Top