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!

NinjaAI, Elite Ninja like osi

Erica

Knight
NinjaAI, Elite Ninja like osi

Hi ive had this for a while and decided to share it it's the Elite Ninjas Like osi .
On osi Elite Ninjas can hide with smoke bombs and they can change into any pet
or critter if you already got my OrcScoutAI it's the same process. go to BaseAI and add this line
Code:
AI_Ninja
so it should look like this
Code:
public enum AIType
	{
		AI_Use_Default,
		AI_Melee,
		AI_Animal,
		AI_Archer,
		AI_Healer,
		AI_Vendor,
		AI_Mage,
		AI_Berserk,
		AI_Predator,
		AI_Thief,
	      AI_Necro,
            AI_Necromage,
            [COLOR="Red"]AI_Ninja,[/COLOR]
	      AI_OrcScout
as you see i got the AI of Orc And necro and necromage on mines .
then go to BaseCreature and add this
Code:
case AIType.AI_Ninja:	
                                m_AI = new NinjaAI(this);
                                break;
so it should look like this
Code:
switch ( NewAI )
			{
				case AIType.AI_Melee:
					m_AI = new MeleeAI(this);
					break;
				case AIType.AI_Animal:
					m_AI = new AnimalAI(this);
					break;
				case AIType.AI_Berserk:
					m_AI = new BerserkAI(this);
					break;
				case AIType.AI_Archer:
					m_AI = new ArcherAI(this);
					break;
				case AIType.AI_Healer:
					m_AI = new HealerAI(this);
					break;
				case AIType.AI_Vendor:
					m_AI = new VendorAI(this);
					break;
				case AIType.AI_Mage:
					m_AI = new MageAI(this);
					break;
				case AIType.AI_Predator:
					//m_AI = new PredatorAI(this);
					m_AI = new MeleeAI(this);
					break;
				case AIType.AI_Thief:
					m_AI = new ThiefAI(this);
					break;
			      case AIType.AI_Necro:
					m_AI = new NecroAI(this);
					break;
				case AIType.AI_Necromage:	
                                          m_AI = new NecromageAI(this);
                                          break;
                       [COLOR="Red"] case AIType.AI_Ninja:	
                              m_AI = new NinjaAI(this);
                              break;[/COLOR]
                        case AIType.AI_OrcScout:
					m_AI = new OrcScoutAI( this );
					break;
then replace your EliteNinja Script with mines restart server and you are set.
 

Attachments

  • NinjaAI.cs
    11.5 KB · Views: 195
  • EliteNinja.cs
    2.3 KB · Views: 174

Makaar

Sorceror
Wow, I must say awesome work once again. That's what I get for not finishing the stuff I work on fast enough! :)

I would give you karma but I've exhausted the system and it won't let me anymore...
 

seltor

Sorceror
Great job. Thank you for sharing these. They were on my list of things to do but you just saved me a lot of time.
 

Erica

Knight
Thanks all i am working on the whitewyrm where in the old days he would change to a human back and forth once hes tamed he will stay as whitewyrm but when you see him wild he would change back and forth to a human once i get it done i'll post it as well i tryed peo whitewyrm but has a bug he knows this as well we had spoken about it but will release mines once its done.
 

XenoNeo

Sorceror
Problem

I noticed an issue with this ai... When it is assigned to an npc the npc won't move at all he'll stand in place where he spawns. Also when he is attacked he'll attack but not move when the attacker is too far away. Also also... He doesn't use any of his abilities...

Maybe I am doing something wrong but I have no clue... Any help?:eek:
 

Djego

Wanderer
i tried everything but i can't unzip the NinjaAI.cs file :(

Yes, I also tried the steps described in other threads but they didn't help too...

could someone maybe repost it unzipped? (only the NinjaAi.cs file)

Thank you very much,
Djego
 

haazen

Sorceror
Yes the .rar files is broken. I tried to uncompress it on 2 different computers with 2 different programs. Both say unexpected end of archive.

I do not have it to upload. I am just confirming it is broken.
 

kat20

Sorceror
He is right the NinjaAI is a bad file the elite ninja I was able to extract. Hope you get it fixed it seems like a very cool script. Thanks
 

Erica

Knight
Hmm weird ok well i fixed it since it doesnt want to work as two scripts in one rar so i made it apart each other go back to first post the scripts are both there now.
 

kat20

Sorceror
Erica;761602 said:
Hmm weird ok well i fixed it since it doesnt want to work as two scripts in one rar so i made it apart each other go back to first post the scripts are both there now.

Thanks everything is a go. appreciate it. again thanks.
 
Top