Go Back   RunUO - Ultima Online Emulation > RunUO > Custom Script Release Archive

Custom Script Release Archive This is a pre-script database archive of what our users had released.

 
 
Thread Tools Display Modes
Old 09-03-2005, 02:00 PM   #1 (permalink)
Forum Expert
 
Join Date: Nov 2002
Posts: 630
Default Weapon spells (Old school) (Ghouls touch etc..)

Post contents removed by author.

Last edited by Static Loader; 12-17-2005 at 12:09 AM.
Static Loader is offline  
Old 10-10-2005, 01:00 PM   #2 (permalink)
Forum Newbie
 
Join Date: Mar 2003
Posts: 67
Default

Code:
 - Error: Scripts\Items\Weapons\BaseWeapon.cs: CS0103: (line 1474, column 12) The name 'CheckResisted' does not exist in the class or namespace 'Server.Items.BaseWeapon'
 - Error: Scripts\Items\Weapons\BaseWeapon.cs: CS0103: (line 1481, column 17) The name 'GetDamageScalar' does not exist in the class or namespace 'Server.Items.
BaseWeapon'
That error repeats for every CheckResisted and GetDamageScalar
spluffy is offline  
Old 10-23-2005, 04:43 AM   #3 (permalink)
Forum Novice
 
Person's Avatar
 
Join Date: Jan 2005
Age: 28
Posts: 106
Default

Nice work. I did something similar to this. I don't think I added in the ability to resist the weapon effects though. Thanks for the post so I could catch my error.
Person is offline  
Old 11-01-2005, 08:09 AM   #4 (permalink)
Forum Expert
 
Join Date: May 2004
Age: 29
Posts: 358
Default

I think this would be alot better if we had actual example scripts to go by, I'd like to use it but I just get too many errors because of existing edits in both scripts Is really good work though. and I know alot more people would use it.
MetallicSomber is offline  
Old 11-01-2005, 03:54 PM   #5 (permalink)
Forum Expert
 
Packer898's Avatar
 
Join Date: Dec 2004
Location: Tulsa, Oklahoma
Age: 35
Posts: 2,378
Send a message via ICQ to Packer898 Send a message via MSN to Packer898
Default

And where is this code supposed to go?

Code:
if ( 0.01 > Utility.RandomDouble() ) //1% chance for a spellweapon
					{
						int temp = Utility.RandomMinMax(1, 10);
						weapon.WeaponsSpell = (WeaponSpell)temp;
						
						switch (temp)
						{
							case 1: weapon.SpellCharges = Utility.RandomMinMax( 5, 70); break;
							case 2: weapon.SpellCharges = Utility.RandomMinMax( 5, 70); break;
							case 3: weapon.SpellCharges = Utility.RandomMinMax( 5, 50); break;
							case 4: weapon.SpellCharges = Utility.RandomMinMax( 5, 70); break;
							case 5: weapon.SpellCharges = Utility.RandomMinMax( 5, 50); break;
							case 6: weapon.SpellCharges = Utility.RandomMinMax( 1, 10); break;
							case 7: weapon.SpellCharges = Utility.RandomMinMax( 5, 30); break;
							case 8: weapon.SpellCharges = Utility.RandomMinMax( 5, 70); break;
							case 9: weapon.SpellCharges = Utility.RandomMinMax( 5, 50); break;
							case 10: weapon.SpellCharges = Utility.RandomMinMax( 5, 30); break;
						
						}
					}
Packer898 is offline  
Old 11-01-2005, 04:36 PM   #6 (permalink)
 
Join Date: Apr 2004
Posts: 242
Default

Now I'm getting errors on check resisted each time it is mentioned.
Corbo6969 is offline  
Old 11-01-2005, 05:21 PM   #7 (permalink)
Forum Expert
 
Packer898's Avatar
 
Join Date: Dec 2004
Location: Tulsa, Oklahoma
Age: 35
Posts: 2,378
Send a message via ICQ to Packer898 Send a message via MSN to Packer898
Default

Read the error and then go to the line it tells you and add a } at the end of it. All errors are pretty muchin plain english. Just read what it says and then fix it. Also if you are going to modify any scripts then you NEED to download SharpDevelop and use that to edit/create the files. It will stop alot of the stupid errors like this because it will autoindent the code for you and show you when you are missing a closing brace etc...
Packer898 is offline  
Old 11-01-2005, 06:14 PM   #8 (permalink)
 
Join Date: Apr 2004
Posts: 242
Default

If I add } it still gives the same error.
Corbo6969 is offline  
Old 11-01-2005, 06:32 PM   #9 (permalink)
Forum Expert
 
Packer898's Avatar
 
Join Date: Dec 2004
Location: Tulsa, Oklahoma
Age: 35
Posts: 2,378
Send a message via ICQ to Packer898 Send a message via MSN to Packer898
Default

Ok then you probably have an extra opening brace somewhere. Just download SharpDevelop and load the file in it and then rightclick and choose Indent. It will then show you where you messed it up. Asking other poeple to do simple things like this is really uncalled for. Get the correct tools and fix the simple stuff yourself. I have gave you more then enough information to get this fixed in less time then it took to make these posts.
Packer898 is offline  
Old 11-01-2005, 07:03 PM   #10 (permalink)
 
Join Date: Apr 2004
Posts: 242
Default

I fixed the expected error now there's another one. The same one that spluffy first posted.
Corbo6969 is offline  
Old 11-01-2005, 07:09 PM   #11 (permalink)
Forum Expert
 
Packer898's Avatar
 
Join Date: Dec 2004
Location: Tulsa, Oklahoma
Age: 35
Posts: 2,378
Send a message via ICQ to Packer898 Send a message via MSN to Packer898
Default

Well it doesnt look as if Static Loader is currently supporting his release/modification. That means you will need to post in script support and/or fix it yourself. I believe you just need to define those methods in order for it to work.
Packer898 is offline  
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5