Go Back   RunUO - Ultima Online Emulation > RunUO > Script Support

Script Support Get support for modifying RunUO Scripts, or writing your own!

Reply
 
Thread Tools Display Modes
Old 07-01-2004, 03:36 AM   #1 (permalink)
Cri
Guest
 
Posts: n/a
Unhappy Errors, quick help please... I dont understand Thnx

Well basically I installed the bounty system... Then I went to install the Sickness System *Heh they both have playermobile changes*... Well anyways I merged them and then I got this error

Error:

Code:
Scripts: Compiling C# scripts...failed (2 errors, 2 warnings)
 - Error: Scripts\Custom\Engines\BountySystem\PlayerMobile.cs: CS0246: (line 114
6, column 21) The type or namespace name 'BountyStatusGump' could not be found (
are you missing a using directive or an assembly reference?)
 - Error: Scripts\Custom\Engines\BountySystem\PlayerMobile.cs: CS0246: (line 218
5, column 8) The type or namespace name 'BountyBoard' could not be found (are yo
u missing a using directive or an assembly reference?)
 - Warning: Scripts\Custom\Engines\Tokens\Banking\Abacus.cs: CS0219: (line 159,
column 9) The variable 'valuef' is assigned but its value is never used
 - Warning: Scripts\Custom\Engines\motd.cs: CS0183: (line 201, column 49) The gi
ven expression is always of the provided ('Server.Mobiles.PlayerMobile') type
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.
Now I wont bother placing my whole PlayerMobile.cs up here (It'll be chaos ) So i'll just place *chunks* around the errored lines

Line 1146:

Code:
//bounty system
			PlayerMobile player = (PlayerMobile) from;

			if( player.ShowBountyUpdate )
			{
				m.SendGump( new BountyStatusGump( from, player.BountyUpdateList ) );
				player.BountyUpdateList.Clear();
				player.ShowBountyUpdate = false;
			}
//end bounty system
Line 2185:

Code:
//bounty system
			if( BountyBoard.Attackable( this, target ) )
				return false;
//end bounty system
And YES! I have the bountyboard and gump and YES! they are the same names as those that are on the PlayerMobile.cs error spots Any1 see why I don't get it?

**Edit: If you need me to post any script in particular please reply asking so! Thanx!
  Reply With Quote
Old 07-01-2004, 05:11 AM   #2 (permalink)
Dream a little dream
 
Architect's Avatar
 
Join Date: Apr 2004
Location: Finland
Age: 27
Posts: 180
Send a message via ICQ to Architect
Default

what is the namespace of that gump?
is your player mobile using that namespace?
Architect is offline   Reply With Quote
Old 07-01-2004, 05:21 AM   #3 (permalink)
Cri
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Cri
And YES! I have the bountyboard and gump and YES! they are the same names as those that are on the PlayerMobile.cs error spots Any1 see why I don't get it?
Yuppers!
  Reply With Quote
Old 07-01-2004, 05:27 AM   #4 (permalink)
GoldDraco13
Guest
 
Posts: n/a
Default

Can you post the top 50 lines of your playermobile.cs please.
  Reply With Quote
Old 07-01-2004, 05:36 AM   #5 (permalink)
Cri
Guest
 
Posts: n/a
Default

Yup gimme a sec please. Thnx
  Reply With Quote
Old 07-01-2004, 05:43 AM   #6 (permalink)
Cri
Guest
 
Posts: n/a
Default

Code:
using System;
using System.Collections;
using Server;
using Server.Misc;
using Server.Items;
using Server.Gumps;
using Server.Multis;
using Server.Engines.Help;
using Server.ContextMenus;
using Server.Network;
using Server.Spells;
using Server.Spells.Fifth;
using Server.Spells.Seventh;
using Server.Targeting;
using Server.Engines.Quests;

namespace Server.Mobiles
{
	[Flags]
	public enum PlayerFlag // First 16 bits are reserved for default-distro use, start custom flags at 0x00010000
	{
		None				= 0x00000000,
		Glassblowing		= 0x00000001,
		Masonry				= 0x00000002,
		SandMining			= 0x00000004,
		StoneMining			= 0x00000008,
		ToggleMiningStone	= 0x00000010,
		KarmaLocked			= 0x00000020,
		AutoRenewInsurance	= 0x00000040,
		UseOwnFilter		= 0x00000080,
		PublicMyRunUO		= 0x00000100,
		PagingSquelched		= 0x00000200,
////////////////////////////////////////////////////////////////////////////////////
//Start Sickness Edit///////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////
                Sick            		= 0x00010000,
                Sickness         		= 0x00020000,
                SickContagious        		= 0x00040000
	}

   	public enum SickFlag
   	{
      		None,
      		TempImmunity,
      		PermImmunity,
     		Cold,
     		Flu,
      		Headache,
      		Virus,
      		VampTurn
Top 50 Lines exact
  Reply With Quote
Old 07-01-2004, 05:46 AM   #7 (permalink)
Dream a little dream
 
Architect's Avatar
 
Join Date: Apr 2004
Location: Finland
Age: 27
Posts: 180
Send a message via ICQ to Architect
Default

using Server.BountySystem;

?
Architect is offline   Reply With Quote
Old 07-01-2004, 05:51 AM   #8 (permalink)
Cri
Guest
 
Posts: n/a
Default

*sigh* lets pray that i even put Server.BountySystem in teh script right im shit tired 23 hours up and counting to 24 to pull a day lol but ill see

**Edit: Err I forgot the ; lol
  Reply With Quote
Old 07-01-2004, 05:52 AM   #9 (permalink)
Dream a little dream
 
Architect's Avatar
 
Join Date: Apr 2004
Location: Finland
Age: 27
Posts: 180
Send a message via ICQ to Architect
Default

so does it work?
Architect is offline   Reply With Quote
Old 07-01-2004, 05:53 AM   #10 (permalink)
Cri
Guest
 
Posts: n/a
Default

Yay were down to 1 error!!!

Code:
Scripts: Compiling C# scripts...failed (1 errors, 2 warnings)
 - Error: Scripts\Custom\Engines\BountySystem\PlayerMobile.cs: CS0246: (line 114
7, column 5) The type or namespace name 'm' could not be found (are you missing
a using directive or an assembly reference?)
 - Warning: Scripts\Custom\Engines\Tokens\Banking\Abacus.cs: CS0219: (line 159,
column 9) The variable 'valuef' is assigned but its value is never used
 - Warning: Scripts\Custom\Engines\motd.cs: CS0183: (line 201, column 49) The gi
ven expression is always of the provided ('Server.Mobiles.PlayerMobile') type
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.
  Reply With Quote
Old 07-01-2004, 05:55 AM   #11 (permalink)
GoldDraco13
Guest
 
Posts: n/a
Default

It should...it is whats missing...you need to referance the system in order to call on the methods.

  Reply With Quote
Old 07-01-2004, 05:55 AM   #12 (permalink)
Dream a little dream
 
Architect's Avatar
 
Join Date: Apr 2004
Location: Finland
Age: 27
Posts: 180
Send a message via ICQ to Architect
Default

So thank you for overlooking my first advice since it seemed to be absolutely correct

Quote:
Originally Posted by Architect
what is the namespace of that gump?
is your player mobile using that namespace?
Architect is offline   Reply With Quote
Old 07-01-2004, 05:56 AM   #13 (permalink)
Cri
Guest
 
Posts: n/a
Default

Nevermind it was the
Code:
m.SendGump( new BountyStatusGump( from, player.BountyUpdateList ) );
Was just too tired too look there i just posted first lmfao...

just changed the m. to from.
  Reply With Quote
Old 07-01-2004, 05:56 AM   #14 (permalink)
GoldDraco13
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Cri
Yay were down to 1 error!!!

Code:
Scripts: Compiling C# scripts...failed (1 errors, 2 warnings)
 - Error: Scripts\Custom\Engines\BountySystem\PlayerMobile.cs: CS0246: (line 114
7, column 5) The type or namespace name 'm' could not be found (are you missing
a using directive or an assembly reference?)
 - Warning: Scripts\Custom\Engines\Tokens\Banking\Abacus.cs: CS0219: (line 159,
column 9) The variable 'valuef' is assigned but its value is never used
 - Warning: Scripts\Custom\Engines\motd.cs: CS0183: (line 201, column 49) The gi
ven expression is always of the provided ('Server.Mobiles.PlayerMobile') type
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.

Please post line 114, plus you should really take care of those warnings
  Reply With Quote
Old 07-01-2004, 05:57 AM   #15 (permalink)
Cri
Guest
 
Posts: n/a
Default

Ooh yeh thank you all who replied here and helped me out even though im grumpy/tired i couldn't really be bothered reading most of ur guys replys cuz my eyes hurt
  Reply With Quote
Old 07-01-2004, 05:58 AM   #16 (permalink)
Cri
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by GoldDraco13
Please post line 114, plus you should really take care of those warnings
Ahh warnings harm me in no way Guess im just too lazy to fix em but ooh well they'll warn me till i decide to be warned


**Edit: Well I got some caffeine (or however u spell it) into me now i guess ill take care of them warnings!

Err my warnings disappeared... Im gettin scared now this is like quantum oddysee shit happenin here.. first my tvs turn on and everys1 asleep now this?
  Reply With Quote
Old 07-01-2004, 06:02 AM   #17 (permalink)
Dream a little dream
 
Architect's Avatar
 
Join Date: Apr 2004
Location: Finland
Age: 27
Posts: 180
Send a message via ICQ to Architect
Default

Warnings do not show normally. They show only when you have errors!
Architect is offline   Reply With Quote
Old 07-01-2004, 06:07 AM   #18 (permalink)
Cri
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Architect
Warnings do not show normally. They show only when you have errors!
Heh well then i got double quantum shit then cuz my warnings do but my warnins r like Cannot find such and such in oreinfo.cs, basecreature.cs etc...
  Reply With Quote
Reply

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 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5