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!

ReRelease - Script Creator(fixed)

Marak

Sorceror
Positive feed backs always appreciated :D lol
BTW - im 1/2 way thru completing the monsters now - ive got most of the boring part done(typing ALL those bloody names in!) - so give me another hour or two and hopefully ill have it up here(or ill be asleep at the k/b)

Edit: make that tomorrow midday - its almost 3am, time to hit the proverbial sack.
 

Alpha911

Wanderer
just a thought

I know you had stated that this was to help new people and staff so you might want to mention in the instructions what to place in the fields like Nightsight,Blessed ect. or make them check boxes instead, I must say this is a great program and not only for new people cuts item creation time for all who use it.... Great Job and Great idea!!!!!!
 

Marak

Sorceror
Alpha911 said:
I know you had stated that this was to help new people and staff so you might want to mention in the instructions what to place in the fields like Nightsight,Blessed ect. or make them check boxes instead, I must say this is a great program and not only for new people cuts item creation time for all who use it.... Great Job and Great idea!!!!!!

For the fields like nightsight and blessed im going to change them to option box's (0,1), atm im just finalising the monster creation(trying out a new way to process each field) so when ive finished those ill probably go thru and change all the item creations to the same way ive done the monsters(its a lot cleaner). For the moment ive included help text to warn people about that - and if memory serves me correctly, it should still say nightsight = 1 even if you put 27 in the field. Will fix that later tho :).
 

Marak

Sorceror
The Monsters mod is now uploaded. Ive compile tested them but havnt had a chance to test them ingame(hey ive got other work todo as well :p) anyway enjoy, and if you find any errors post them immediatly please.

NOTE: Monsters require MORE fields to be input than the items did, so anything with a value already in there must be used(eg monstername etc) ive also input default values for Damage types and Resistances. In this version the monsters body types are chosen from a list, and the sound ids are based off the pre-existing monsters(note: some did not have values so i left them as 0). There are 6 optional fields for items on the monsters just type in the name as you would add it ingame and the value in the field next to it(they have headings). Those arnt thouroughly tested yet, ive only tried a few item types.
 

Marak

Sorceror
Alright guy's ive got the main portion out, im going to re-write it again(if you cant tell this is my first VB program, im using this to learn.) During the different sections ive learnt faster ways to code it, so im going to strip it all and make Script Creator 3 - using what ive learn with the monsters, and ive just gotten in contact with a bloke who's forgotton more about programming then i will ever learn. So if you have any more ideas, nows the time to list them - it will probably take me about 2 days to finish re-making it, but hopefully it will run a LOT cleaner(atm most of my time during updates is spent error checking - the codes too messy to use naturally). So keep the ideas coming - to the peeps who have been pming me with ideas - their great but post them in here so we can all bounce our ideas off each other - that way i dont have to code them 3 different ways lol.
 

B3PbIB

Wanderer
problem with monster creation !!
runuo types :
 

B3PbIB

Wanderer
// Created by Script Creator
using System;
Server.Items;
Server.Targeting;

namespace Server.Mobiles
{
[CorpseName( "Creature Name")]
public class AddName: BaseCreature
{
[Constructable]
public AddName() : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4
{
Name = "Creature Name";
Body = 76;
Hue = 1;
BaseSoundID = 609;
SetStr( 20 );
SetDex( 20 );
SetInt( 30 );
SetHits( 50 );
SetDamage( 10 );
SetDamageType( ResistanceType.Physical, 100 );
SetDamageType( ResistanceType.Fire, 0 );
SetDamageType( ResistanceType.Cold, 0 );
SetDamageType( ResistanceType.Energy, 0 );
SetDamageType( ResistanceType.Poison, 0 );

SetResistance( ResistanceType.Physical, 12 );
SetResistance( ResistanceType.Fire, 23 );
SetResistance( ResistanceType.Cold, 43 );
SetResistance( ResistanceType.Energy, 32 );
SetResistance( ResistanceType.Poison, 23 );


Fame = -2223;
Karma = -3333;
VirtualArmor = 60;
Tameable = true;
ControlSlots = 2;
MinTameSkill = 4;
}
public override Poison PoisonImmune{ get{ return Poison.Lethal; } }
public override int TreasureMapLevel{ get{ return 4; } }
public override int Meat{ get{ return 1 } }

Public AddName( Serial serial ) : base( serial )
{
}

public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 );
}

public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}


i make it fast just for test and it didn't works =(
 

cuy782002

Wanderer
i was trying to make a monster and got some errores that i dont understand
RunUO - [www.runuo.com] Version 1.0.0, Build 36918
Scripts: Compiling C# scripts...failed (4 errors, 0 warnings)
- Error: Scripts\custom\monsters\LoreOfTheNineHells.cs: CS0116: (line 3, column
1) A namespace does not directly contain members such as fields or methods
- Error: Scripts\custom\monsters\LoreOfTheNineHells.cs: CS1026: (line 12, colum
n 91) ) expected
- Error: Scripts\custom\monsters\LoreOfTheNineHells.cs: CS1002: (line 52, colum
n 40) ; expected
- Error: Scripts\custom\monsters\LoreOfTheNineHells.cs: CS1519: (line 52, colum
n 55) Invalid token ')' in class, struct, or interface member declaration
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.


this is the .cs i made hope u can help me underdstand what its not/im doing worng

// Created by Script Creator
using System;
Server.Items;
Server.Targeting;

namespace Server.Mobiles
{
[CorpseName( "Baatezu Traits")]
public class LoreOfTheNine: BaseCreature
{
[Constructable]
public LoreOfTheNine() : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4>
{
Name = "Baatezu Traits";
Body = 792;
Hue = 58;
BaseSoundID = 0x2E9;
SetStr( 225 );
SetDex( 225 );
SetInt( 225 );
SetHits( 10000 );
SetDamage( 600 );
SetDamageType( ResistanceType.Physical, 100 );
SetDamageType( ResistanceType.Fire, 100 );
SetDamageType( ResistanceType.Cold, 100 );
SetDamageType( ResistanceType.Energy, 100 );
SetDamageType( ResistanceType.Poison, 100 );

SetResistance( ResistanceType.Physical, 70 );
SetResistance( ResistanceType.Fire, 70 );
SetResistance( ResistanceType.Cold, 70 );
SetResistance( ResistanceType.Energy, 70 );
SetResistance( ResistanceType.Poison, 70 );


Fame = 90000;
Karma = -90000;
VirtualArmor = 100;
}
public override FoodType FavoriteFood{ get{ return FoodType.Meat }}
public override bool HasBreath{ get{ return true; } }
public override bool AutoDispel{ get{ return true; } }
public override bool BardImmune{ get{ return true; } }
public override bool Unprovokable{ get{ return true; } }
public override bool Uncalmable{ get{ return true; } }
public override Poison PoisonImmune{ get{ return Poison.Lethal; } }
public override int Meat{ get{ return true } }
public override int Hides{ get{ return true; } }
public override HideType HideType{ get{ return HideType.False } }
public override int Scales{ get{ return false; } }

Public LoreOfTheNine( Serial serial ) : base( serial )
{
}

public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 );
}

public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}


thank you
 

Wilcard

Wanderer
minor thing

first off i wanna say this little tool rocks with the new update. I love this thing!!!!!!!


One thing i noticed when creating a weapon ya dont have the option of makeing it spell channeling. I know how to do it in the script and in game but some others may not know how to if this is all they ever use. Just a thought


AWESOME LITTLE SCRIPTING TOOL THOUGH:D :D
 

Wilcard

Wanderer
i was trying to make a monster and got some errores that i dont understand
RunUO - [www.runuo.com] Version 1.0.0, Build 36918
Scripts: Compiling C# scripts...failed (4 errors, 0 warnings)
- Error: Scripts\custom\monsters\LoreOfTheNineHells.cs: CS0116: (line 3, column
1) A namespace does not directly contain members such as fields or methods
- Error: Scripts\custom\monsters\LoreOfTheNineHells.cs: CS1026: (line 12, colum
n 91) ) expected
- Error: Scripts\custom\monsters\LoreOfTheNineHells.cs: CS1002: (line 52, colum
n 40) ; expected
- Error: Scripts\custom\monsters\LoreOfTheNineHells.cs: CS1519: (line 52, colum
n 55) Invalid token ')' in class, struct, or interface member declaration
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.


I get this same thing when i try to create any kind of mobile. Ill see if i can figure it out and let ya know
 

Wilcard

Wanderer
problem fixed

I'm not sure if this will help solve the bug with the mobile creation or not i hope it does.

here is the original script created by the script creator
PHP:
// Created by Script Creator
using System;
Server.Items;
Server.mobiles;

namespace Server.Mobiles
{
     [CorpseName( "Arcane Dragon")]
     public class ArcaneDragon: BaseCreature
     {
         [Constructable]
         public ArcaneDragon() : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 
         {
             Name = "Arcane Dragon";
             Body = 46;
             Hue = 10;
             BaseSoundID = 362;
             SetStr( 1500 );
             SetDex( 1500 );
             SetInt( 1000 );
             SetHits( 1000,1300 );
             SetDamage( 20,100 );
             SetDamageType( ResistanceType.Physical, 100 );
             SetDamageType( ResistanceType.Fire, 100 );
             SetDamageType( ResistanceType.Cold, 0 );
             SetDamageType( ResistanceType.Energy, 0 );
             SetDamageType( ResistanceType.Poison, 0 );

             SetResistance( ResistanceType.Physical, 85 );
             SetResistance( ResistanceType.Fire, 85 );
             SetResistance( ResistanceType.Cold, 85 );
             SetResistance( ResistanceType.Energy, 85 );
             SetResistance( ResistanceType.Poison, 85 );


             Fame = 3000;
             Karma = 3000;
             VirtualArmor = 30;
             PackItem( DragonEvoEgg, 1 );
             PackItem( DragonEvoDust, 100 );
             PackItem( ,  );
}
         public override bool HasBreath{ get{ return true; } }
         public override bool AutoDispel{ get{ return true; } }
         public override bool BardImmune{ get{ return true; } }
         public override bool Unprovokable{ get{ return true; } }
             public override bool Uncalmable{ get{ return true; } }
             public override int TreasureMapLevel{ get{ return 6; } }        
            public override int Meat{ get{ return 100 } }
             public override int Hides{ get{ return 50; } }  
             public override HideType HideType{ get{ return HideType.False } }
             public override int Scales{ get{ return 100; } }

 Public ArcaneDragon( Serial serial ) : base( serial )
{
}

public override void Serialize( GenericWriter writer )
     {
         base.Serialize( writer );
         writer.Write( (int) 0 );
     }

public override void Deserialize( GenericReader reader )
     {
         base.Deserialize( reader );
         int version = reader.ReadInt();
     }
   }
}


Here it is again after i made some modifications by hand to make the same script work

PHP:
// Created by Script Creator
using System;
using Server;
using Server.Items;
using Server.Mobiles;

namespace Server.Mobiles
{
     [CorpseName( "Arcane Dragon")]
     public class ArcaneDragon: BaseCreature
     {
         [Constructable]
         public ArcaneDragon() : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
         {
             Name = "Arcane Dragon";
             Body = 46;
             Hue = 10;
             BaseSoundID = 362;
             SetStr( 1500 );
             SetDex( 1500 );
             SetInt( 1000 );
             SetHits( 1000,1300 );
             SetDamage( 20,100 );
             SetDamageType( ResistanceType.Physical, 100 );
             SetDamageType( ResistanceType.Fire, 100 );
             SetDamageType( ResistanceType.Cold, 0 );
             SetDamageType( ResistanceType.Energy, 0 );
             SetDamageType( ResistanceType.Poison, 0 );

             SetResistance( ResistanceType.Physical, 85 );
             SetResistance( ResistanceType.Fire, 85 );
             SetResistance( ResistanceType.Cold, 85 );
             SetResistance( ResistanceType.Energy, 85 );
             SetResistance( ResistanceType.Poison, 85 );


             Fame = 3000;
             Karma = 3000;
             VirtualArmor = 30;
             
            
            

}
         public override bool HasBreath{ get{ return true; } }
         public override bool AutoDispel{ get{ return true; } }
         public override bool BardImmune{ get{ return true; } }
         public override bool Unprovokable{ get{ return true; } }
             public override bool Uncalmable{ get{ return true; } }
             public override int TreasureMapLevel{ get{ return 6; } }        
            public override int Meat{ get{ return 100; } }
             public override int Hides{ get{ return 50; } }  
             public override HideType HideType{ get{ return HideType.Ethereal; } }
             public override int Scales{ get{ return 100; } }

 public ArcaneDragon( Serial serial ) : base( serial )
{
}

public override void Serialize( GenericWriter writer )
     {
         base.Serialize( writer );
         writer.Write( (int) 0 );
     }

public override void Deserialize( GenericReader reader )
     {
         base.Deserialize( reader );
         int version = reader.ReadInt();
     }
   }
}

The changes were in the first four lines also in line 12 and line 54. I included both scripts for full comparison. Hope this helps solve the problem:p
 

Marak

Sorceror
Sorry its taken me so long to reply guys works been hell(got to leave again in 10 mins as well - ill be there for another 12 hours today *sigh). Ok there's a bracket missing off the ai line - and the Server.Items; <- that has been known to cause a few bugs - i just read the email about that from one of my testers - i WILL fix it soon - as soon as i get home from work, atm your going ot have to make those 2 adjustments yourself sorry.
 

Marak

Sorceror
soz guys been hell at work - one of my apprentices quit - little bastard, anyway ive taken tomorrow off so im going to start work on it tonight, hopefully i can get it up by tomorrow(stuck 1/2 way thru a rebuild so i cannot just repair and release). Wish me luck :p

Edit: Just finished the items, going to work on the monsters now - i was closer to finishing then i remembered.

Also i just verified, its the using server.Items; line - it does NOT have to be in there, well at least my testing so far hasnt show it as necessary. Ill remove it completly, i placed that in there for when you manually add items onto the creature - should work without it.. Update in 30 min's
 
Top