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!

Better Explosion Potion

It has been a while since I posted something new up here for every one
(most that I develop are so encoded with my custom stuff, that they would not work for everyone)
But this one is generic

How to make a better explosion potion - use this replacement script

What it does:
It Allows you to add in different types of damage
So it is not just fire damage, can be any mixture
like the example script has a vile of toxic acid that does 50% phy and 50% poison damage

how to install:
back up current BaseExplosionPotion.cs and replace it with the one here
restart the server
existing ones are not effected by the change :)

How to use:
in making a new explosion potion, just have to modify the 5 numbers to what you want in this line:
(from my example)
public VileOfEnhancedToxicAcid( ) : base( PotionEffect.ExplosionEnhanced, 50, 0, 0, 50, 0 )
the numbers are phy, fire, cold, poison, & energy

can actually use my example for any one you want to make, just change names, numbers, etc around and you have a new type of explosion potion

enjoy :)

ps, can use how ever you want, modify, spindle, mutilate, etc
but if you repost in any way, please give credit where credit is due
 

Attachments

  • BaseExplosionPotion.cs
    8.1 KB · Views: 21
  • VileOfEnhancedToxicAcid.cs
    804 bytes · Views: 14
ps
this has been tested with a 2.0 based system
but should work for all versions, since I do not think the base explosion file has been modified in years :)
 
i pop in now and then, just have not had much to share lately
been working on this new updated shard of mine, that has taken more of my time than anything, so helping others has been on the back burner :)
(have helped a few here and there that message me though)

Have fun everyone
and
Happy Easter
 
Top