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!

2.0 Evil Attacks

2.0 Evil Attacks

This a type of custom region that remove spawns from location and sets up legions for a war type of games or quest please read the read me enclosed


I take no credit for this script just an update, this contains old version and redo just some edits in first and second hope you like

Thanks to Lord_Greywolf For great fix with chest prob just download and drop in file
 

Attachments

  • evilattack.zip
    30.6 KB · Views: 323
  • EvilAttackReward.cs
    5.3 KB · Views: 263
HellRazor;646321 said:
What exactly does this script do? The description is pretty vague.

Code:
HOW TO ADD CUSTOM LEGION TYPES

If you are new in the scripting or programming please read the WHOLE text 
carefully and follow all instructions !

This small text file will explain how to add custom legion types to the script.
First of all you need to decide wich types of monsters you will have in the 
legion. For example you decide to have some kind Ogre legion type consist of:

Ogre lord as a leader,
Ogres as a minions,
Trolls as a support and
Ettins as an infantry.

You need to find class names for the mobiles you decided to include. This is
really simple if you are know what to do. Just search for the corresponding
file names in the runuo monster subfolders (\Scripts\Mobiles\Monsters) because
all standart monster classes is there.

You will find:

Ogre Lord in \Scripts\Mobiles\Monsters\Humanoid\Melee\OgreLord.cs
Ogre in \Scripts\Mobiles\Monsters\Humanoid\Melee\Ogre.cs
Troll in \Scripts\Mobiles\Monsters\Humanoid\Melee\Troll.cs
Ettin in \Scripts\Mobiles\Monsters\Humanoid\Melee\Ettin.cs

Almost always the filename will inform you about the mobile defined in the file.
To be sure just open and view the script to see the Name or corpse name of the
mob. If you sure this is the mob you need look at the class name. For example
lets see the Ettin.cs:

namespace Server.Mobiles
{
	[CorpseName( "an ettins corpse" )]
	public class Ettin : BaseCreature
	{
		[Constructable]

See this line:

public class Ettin : BaseCreature

The class name is Ettin :)

Now take a look in the all over files. Yes, the Ogre Lord have OgreLord class
name (Space is removed in the class name, dont forget this !).

Ok, now you know all the class names of all monsters. Time to edit some files :)
I strongly suggest you to make backup copy of the "EvilLegion.cs" and 
"EvilAttackTypes.cs". If something going wrong you will always have ability
to restore this files if you make backup.

Open EvilAttackTypes.cs with notepad for example. See this enumeration:

public enum EvilAttackSpawnType
{

Scroll to the end of enum and put a comma after the last type in the enum 
and add a new line named Ogre. This should look like this:

	public enum EvilAttackSpawnType
	{
		UndeadLow,
		UndeadAdv,
		OrcKinLow,
		OrcKinAdv,
		Savage,
		Juka,
		Meer,
		Ophidian,
		Terathan,
		Ratman,
		Elemental,
		AbyssLow,
		AbyssAdv,
		Dragon,
		Forest,
		Ogre
	}

Dont worrie if the last type of your enum was not the "Forest" because i write 
this howto based on version 1.0beta release. In the future versions this enum
may grow :) So, just put a comma at the last type and add another line named 
Ogre. Save the file.

Open EvilLegion.cs (again with notepad). Scroll down one or two page and look
for the this code:

public static Type[] spawnTypes = new Type[]
{
	typeof( Lich ), typeof( SkeletalKnight ), typeof( Zombie ), typeof( Skeleton ),
	typeof( LichLord ), typeof( Lich ), typeof( RottingCorpse ), typeof( SkeletalKnight ),
	typeof( OrcishLord ), typeof( OrcishMage ), typeof( OrcBomber ), typeof( Orc ),

This is the legions definition. Find the end line, possible look like this:

	typeof( Treefellow ), typeof( Treefellow ), typeof( Unicorn ), typeof( Pixie )
};

Again, you need put a comma after last line with typeof() things, press enter
and form the new line as i show below:

	typeof( OgreLord ), typeof( Ogre ), typeof( Troll ), typeof( Ettin )

Notice: first typeof() is for leader, second for minions and others is for the
support and infantry.

Now the end of this thing should look this:

	typeof( Treefellow ), typeof( Treefellow ), typeof( Unicorn ), typeof( Pixie ),
	typeof( OgreLord ), typeof( Ogre ), typeof( Troll ), typeof( Ettin )
};

Save the file. Now, if all is done correctly just start the server and have
a fun with new legion types. If you make the mistakes its highly 
possible the server will wont start and show error message at the script 
compiling. If you are expirenced or even newby programmer i dont think you 
will get any errors :) Anyway if you got them and dont know what this 
mean just restore the backup and try again. Believe me, its simple. Just
dont miss anything from this manual.

If you want add non standart monsters form the legions the procedure is
the same. But before add new legion type you need to install the custom mobiles.
Or you already have them installed ? :) Good :) Now just follow all procedures
described above and you will done :)

Lets try on the example. Take a look at the Drow Elves 
(http://www.runuo.com/forum/showthread.php?p=289011#post289011)
by malgrimace. I want to have Drow Legion with the following mobiles:
Drow Lord, Drow Sorceress, Drow Archer and Drow Warrior. I will be brief in the
description because all the steps are the same as i describe before.

As i described above add line to EvilAttackTypes.cs:

	Drow

As i described above add line to EvilLegion.cs:

	typeof( DrowLord ), typeof( DrowSorceress ), typeof( DrowArcher ), typeof( DrowWarrior )

Dont forget about commas at the rigth place and over stuff i mentioned above :)
That is what a read me in down load is for
 

HellRazor

Knight
I read the readme.

All it says is how to add a custom legion to your scripts.

What exactly is a "legion" and what does it do?

The readme doesn't explain ANYTHING about what this system is actually FOR.
 

Pyro-Tech

Knight
pretty much allows you to do stuff such as the trinsic attack on OSI a few years back....i think it disables guard protection and makes it seem as if the city is under seige until all the enimies are killed....and there is a treasure chest at the end of the event.

it's niffty if this is the system i am thinking it is
 

WizardingOne

Sorceror
Yes, you set up the spawner with the legion you want, how many monsters/monster groups, and waypoints then set running to true. It disables guards, makes some body parts/bones, and spawns the monsters at the spawner location. Once the set amount of monsters are killed, a black loot box is created. Adding your own legions is just a bonus that makes it great.
 

dkacz22

Sorceror
Thank You WizardingOne...after reading your post (for the 50th :) time) I finally understood how to get this script running. I couldn't figure out where in the script you configure it until I opened every file and saw the EvilAttackGump.cs and if I read correctly i just [EAC and a gump will allow me to configure it. I will try this when I get home tonight.
 
if this is the script i believe it is - it is a great one - been looking for it for a long time - just never knew its name (saw it on a different shard)

glad you updated it to 2.0!!!!!

might want to seperate your 2.0 and 1.0 downloads though - so people do not have to dpwnload both (or at least clearly mark the zip file to be for runuo 1.0)

it will be implamented tomorrow

then i will start adding in my own sets based on my custom monsters (and i have a lot of those ;)
 

dkacz22

Sorceror
Well I gave it a shot and the menu gump comes up...I can choose type of spawn and what not, but how do you actually spawn it in a specific location. Nothing happens when I do it.

I did notice how the zip folder has another evilspawner.zip file, maybe I am using the wrong one. I am using the first zip file that has a couple files dated 2007 and the other zip doesn't...should be right one I am just missing something.

Any help :)
 
dkacz22;648750 said:
Well I gave it a shot and the menu gump comes up...I can choose type of spawn and what not, but how do you actually spawn it in a specific location. Nothing happens when I do it.

I did notice how the zip folder has another evilspawner.zip file, maybe I am using the wrong one. I am using the first zip file that has a couple files dated 2007 and the other zip doesn't...should be right one I am just missing something.

Any help :)

Pls Ref. to post 5 and 6
 
[add evilattack

then can either props it or us the [eac command and props it that way

the only question i have is that there is a spot in there for a waypoint - but everything i tried to click on says that can not be a waypoint (from map/land tiles to trees to mobiles and other items)
so what can be used as a waypoint, and what does it do?
 

koluch

Sorceror
Lord_Greywolf;649395 said:
[add evilattack

then can either props it or us the [eac command and props it that way

the only question i have is that there is a spot in there for a waypoint - but everything i tried to click on says that can not be a waypoint (from map/land tiles to trees to mobiles and other items)
so what can be used as a waypoint, and what does it do?
Just [add waypoint - think that is it, it makes a little spawner lookin thing, then set the waypoint just target the spawner thing you placed and then any others you have in progression and back to the first.
( little early, but I think I said that correctly )
 
Code:
koluch
, Yes you are correct about way points as far as i know it works ok that way

Code:
Lord_Greywolf
Glad to hear your doing ok with it
 

ABTOP

Sorceror
Have problem.... When i kill all legions and chest appears any players with any skills cant loot anything. Players only can open this chest. And only GMs can loot items and when they(GMs) loot some item they see
Code:
The chest refuses to be filled with treasure again
 
ABTOP;650470 said:
Have problem.... When i kill all legions and chest appears any players with any skills cant loot anything. Players only can open this chest. And only GMs can loot items and when they(GMs) loot some item they see
Code:
The chest refuses to be filled with treasure again

How are you starting this as Admin , Owner, GM i need a little more info here please

Plz try this file and let me know
 

Attachments

  • EvilAttackSpawn.cs
    11.3 KB · Views: 68

Liacs

Sorceror
erm... am I blind? Where is the file? I don't see any in the first post. Or am I supposed to use the one above?

Liacs
 
Lord_Greywolf;650822 said:
not sure why he removed the zip for it - maybe because of the error with the chests


No Sorry about that, i dont know what happened but its there now just may have edited wrong file lol sory but any way it back up
 
Top