Every little (balron) helps?

Locked
pgi
Apprentice Scribe
Posts: 11
Joined: Sat Jul 28, 2012 6:16 am

Every little (balron) helps?

Post by pgi »

This is my first ever look at the RunUO code. A while ago when i used to play on OSI servers one my biggest complain was against the magery summons. How cheap is that a Legendary Mage cannot summon but meager elementals and demons?

What if the summons reflected the actual "power" of the mage when it is over 110 or even a legend?

It turns out that changing RunUO to spice up a bit the summoning spells is quite easy. Every elemental spell in the Scripts/Eighth/ folder has a OnCast method and i simply changed those calls to factor in the caster skill. There is a zip attached with the code but basically what I did was to turn the OnCast method into this:

Code: Select all

public override void OnCast()
	{
		if ( CheckSequence() )
		{
			BaseCreature creature = SummonSupport.GetElemental(Caster, SummonSupport.ElementalType.AIR);
			TimeSpan duration = TimeSpan.FromSeconds( (2 * Caster.Skills.Magery.Fixed) / 5 );
			SpellHelper.Summon(creature, Caster, 0x217, duration, false, false );
		}
		FinishSequence();
	}
or GetDaemon for the Daemon spell. The SummonSupport class simply checks the caster's magery against some thresholds and returns:

100 Mage:
Daemon
Air Elemental
Earth Elemental
Water Elemental
Fire Elemental

110 Mage
Ice Fiend
Toxic Elemental
Bronze Elemental
Crystal Elemental
... Fire elemental

120 Mage
Balron
Poison Elemental
Valorite Elemental
Blood Elemental
... Fire elemental (again...)


Of course one has to check out how balanced the new creatures really are: maybe a valorite elemental should take two slots instead of one and a balron five but it works.

I have a little issue with the Fire branch: there is nothing firy but the fire elemental in the default RunUO and i don't know if, by chance, the client we use here supports the Lava Elemental (that shouldn't be hard to add, i'll take a look at that tomorrow).

Anyway, it's great fun.

The attached zip contains the code.
Attachments
summon_mod.zip
(10.56 KiB) Downloaded 211 times
User avatar
Xavian
Legendary Scribe
Posts: 485
Joined: Sun Dec 25, 2011 4:09 pm

Re: Every little (balron) helps?

Post by Xavian »

I wouldn't use it, but I think it is a pretty good idea. Give some sort of benefit to going up to 120. Kinda need to make stuff worth while sometimes
Locked