|
||
|
|
#52 (permalink) |
|
Forum Novice
|
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 |
|
|
|
|
#53 (permalink) |
|
Newbie
Join Date: Jun 2005
Age: 35
Posts: 37
|
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 ![]() |
|
|
|
|
#54 (permalink) | |
|
Newbie
Join Date: Jun 2005
Age: 35
Posts: 37
|
Quote:
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 |
|
|
|
|
|
#55 (permalink) |
|
Newbie
Join Date: Jun 2005
Age: 35
Posts: 37
|
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 Code:
Here it is again after i made some modifications by hand to make the same script work PHP Code:
![]() |
|
|
|
|
#56 (permalink) |
|
Forum Novice
Join Date: Mar 2005
Location: Firmly Seated Infront of the Computer.
Age: 26
Posts: 429
|
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.
|
|
|
|
|
#58 (permalink) | |
|
Forum Novice
Join Date: Mar 2005
Location: Firmly Seated Infront of the Computer.
Age: 26
Posts: 429
|
Quote:
|
|
|
|
|
|
#60 (permalink) |
|
Forum Novice
Join Date: Mar 2005
Location: Firmly Seated Infront of the Computer.
Age: 26
Posts: 429
|
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 |
|
|
|
|
#61 (permalink) |
|
Forum Novice
Join Date: Mar 2005
Location: Firmly Seated Infront of the Computer.
Age: 26
Posts: 429
|
The latest updates in, enjoy - now ive used pretty much the same code as before for the item creation, but bear in mind i had to rush the last bit so i could release the monster fix. Ive done a quick visual check and ill compile check some tomorrow(when its NOT 3AM!!!) lol enjoy.
|
|
|
|
|
#62 (permalink) |
|
Lurker
Join Date: Jul 2005
Age: 35
Posts: 10
|
how about adding hue? and maybe robes cloaks and boots?
and i don't know but when i select jewlery and then select any type of jewel it gaves runtime error 424 - object required problem with "daemon dismissIl" type slayer and some other.good idea but still needs implementation. ![]() ![]() ![]() |
|
|
|
|
#63 (permalink) |
|
Forum Novice
Join Date: Mar 2005
Location: Firmly Seated Infront of the Computer.
Age: 26
Posts: 429
|
Hue's in there, just has to be enabled(later it was 3am when i rushed this fix out) - checking on those errors - and its been previously completly implimented - its under reconstruction.
EDIT: Updated the top post, fixed that jewlery error. Also one of you testers want to give me some feedback on that slayertype? I dont have time to test myself atm - running around town all day looking for a new apprentice or one i can borrow off another resturant. |
|
|
|
|
#64 (permalink) |
|
Forum Novice
Join Date: Mar 2005
Location: Firmly Seated Infront of the Computer.
Age: 26
Posts: 429
|
ok im putting the hue in now, but i really need more ideas guys, all my staff are happy now so its upto you to think of what you want in here. Pretty much if you can think of it, well it can be coded in - although somethings wont(like a color chart for hues, im just not goign todo it lol, you have pandoras box for that)
|
|
|
|
|
#65 (permalink) |
|
Lurker
Join Date: Jul 2005
Age: 35
Posts: 10
|
i can see that the hue is only enabled for monsters but not for weapons in my case.
and i offered adding cloaks and robes and shirts, pants and the silly samurai empire variations of this. and how about adding fields for modify the damage type(cold fire physical and energy) for the weapon in %....... adding field for artifact rarity? and adding the real min damage and max damage not bonusdamage(with bonusdamage it wont compile on my testcenter).adding luck, lrc, lmc, fcr,fc, atack and defend chance,int, dex, str...well you have mana stam and hits bonus(i think) but that is missing (: . adding working speed factor for the weapon, and range for the weapon. and skill bonuses too. i have run out of ideas (: BTW the jewel crash is really now fixed. 10x. |
|
|
|
|
#66 (permalink) | |
|
Forum Novice
Join Date: Mar 2005
Location: Firmly Seated Infront of the Computer.
Age: 26
Posts: 429
|
Quote:
|
|
|
|
|
|
#69 (permalink) |
|
Forum Novice
Join Date: Mar 2005
Location: Firmly Seated Infront of the Computer.
Age: 26
Posts: 429
|
alright had to duck out last night, im working on it again today - i will be posting in the LearnUO forums(more space which im running close to- and thats mainly where it will be usefull) - so keep an eye out for a post there about the program(to find leanuo check out the runuo newbies forum - these are the guys that run that section)... *hopefully* i can find this F#@$ing bug - either that or im going to take a bat to it lol. oh and feel free to kick in those ideas of yours anytime, even if i cannot impliment them strait away - somebody else reading the post might be able to improve upon that idea (which will save me coding it twice :P)
|
|
|
|
|
#70 (permalink) |
|
Forum Novice
Join Date: Mar 2005
Location: Firmly Seated Infront of the Computer.
Age: 26
Posts: 429
|
ok i found that gremlin - little bastards in hell burning right about... now. Ive put the second page option back into weapons(yay). Ive found there's still 2 fields missing in weapons - HitFireball and HitLowerDefence, ill add those later - i have to sort out moving to the LearnUO forums - so check for updates there.
|
|
|
|
|
#71 (permalink) | ||
|
Newbie
Join Date: Jul 2005
Location: Next Door
Age: 37
Posts: 83
|
When I try making an item, it gives me this on a pop-up:
Quote:
Quote:
|
||
|
|
|
|
#72 (permalink) | |
|
Forum Expert
|
Quote:
![]() |
|
|
|
|
|
#73 (permalink) | |
|
Lurker
Join Date: Jul 2005
Age: 20
Posts: 7
|
Quote:
|
|
|
|
|
|
#74 (permalink) |
|
Forum Novice
Join Date: Mar 2005
Location: Firmly Seated Infront of the Computer.
Age: 26
Posts: 429
|
hmm ive been trying to repeat that error, but i cannot(most likely because mine are all installed). Hmm the only thing i can think of(if anyone else has an idea feel free to say it here lol) is maby finding a different copy fo the .dll - and registering that one. Sorry guys but ive never had that idea.
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|