|
||
|
|||||||
| Custom Script Release Archive This is a pre-script database archive of what our users had released. |
|
|
Thread Tools | Display Modes |
|
|
#2 (permalink) |
|
Forum Newbie
Join Date: Mar 2003
Posts: 67
|
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' |
|
|
|
|
#4 (permalink) |
|
Forum Expert
Join Date: May 2004
Age: 29
Posts: 358
|
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. |
|
|
|
|
#5 (permalink) |
|
Forum Expert
|
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;
}
}
|
|
|
|
|
#7 (permalink) |
|
Forum Expert
|
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...
|
|
|
|
|
#9 (permalink) |
|
Forum Expert
|
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.
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|