|
||
|
|
#1 (permalink) |
|
Join Date: Oct 2003
Posts: 9
|
Click here to download
Summary: Better Paper Doll Help Menu Description: Changed the Paper Doll Help menu to more sute player run shards! It now only displays The stuck option, Page A GM Option, Take the user to your web site option and a Ressurect Option! Note if you want to disable the Ressurect option Open the HelpGump.cs and scroll down to case 11 and remove it. Also note: To change the Web site Option, Open the HelpGump.cs file and scroll down to case 10 and edit case 10: // Launch your web site <-### By Cl0n3 ###-> { state.LaunchBrowser( "http://www.yourwebsite.com" ); break; } to use you site 0^o And to change the title look for this AddHtml( 110, 265, 450, 58, @"<u>Your Web Site Name</u> Go to this Shards Web site", true, true ); Installation: Go to your \Scripts\Engines\Help Folder and delete/overight your HelpGump.cs file and use this one. |
|
|
|
|
#4 (permalink) |
|
nice script
however i didnt like the res thing so i changed it for a comand list just like [help here it goes: [code:1] case 11: // lista de comandos { Mobile m = from; ArrayList list = new ArrayList(); foreach ( CommandEntry entry in Server.Commands.Entries.Values ) { if ( m.AccessLevel >= entry.AccessLevel ) list.Add( entry ); } list.Sort(); StringBuilder sb = new StringBuilder(); if ( list.Count > 0 ) sb.Append( ((CommandEntry)list[0]).Command ); for ( int i = 1; i < list.Count; ++i ) { string v = ((CommandEntry)list[i]).Command; if ( (sb.Length + 1 + v.Length) >= 256 ) { m.SendAsciiMessage( 0x482, sb.ToString() ); sb = new StringBuilder(); sb.Append( v ); } else { sb.Append( ' ' ); sb.Append( v ); } } if ( sb.Length > 0 ) m.SendAsciiMessage( 0x482, sb.ToString() ); break; } [/code:1] |
|
|
|
|
|
#5 (permalink) |
|
The Spaz
Join Date: Oct 2003
Location: Murray, KY
Age: 26
Posts: 235
|
After adding the bit of code provided by creep to list all help commands I get the following error:
[code:1] Scripts: Compiling C# scripts...failed (16 errors, 5 warnings) - Warning: Scripts\Custom\BaseCreature.cs: CS0660: (line 135, column 19) 'Serve r.Mobiles.HomeBounds' defines operator == or operator != but does not override O bject.Equals(object o) - Warning: Scripts\Custom\BaseCreature.cs: CS0661: (line 135, column 19) 'Serve r.Mobiles.HomeBounds' defines operator == or operator != but does not override O bject.GetHashCode() - Warning: Scripts\Items\Wands\BaseWand.cs: CS0219: (line 211, column 8) The va riable 'number' is assigned but its value is never used - Error: Scripts\Custom\HelpGump.cs: CS0246: (line 249, column 13) The type or namespace name 'ArrayList' could not be found (are you missing a using directive or an assembly reference?) - Error: Scripts\Custom\HelpGump.cs: CS0246: (line 254, column 19) The type or namespace name 'list' could not be found (are you missing a using directive or a n assembly reference?) - Error: Scripts\Custom\HelpGump.cs: CS0246: (line 257, column 13) The type or namespace name 'list' could not be found (are you missing a using directive or a n assembly reference?) - Error: Scripts\Custom\HelpGump.cs: CS0246: (line 259, column 13) The type or namespace name 'StringBuilder' could not be found (are you missing a using direc tive or an assembly reference?) - Error: Scripts\Custom\HelpGump.cs: CS0246: (line 261, column 18) The type or namespace name 'list' could not be found (are you missing a using directive or a n assembly reference?) - Error: Scripts\Custom\HelpGump.cs: CS0103: (line 262, column 42) The name 'li st' does not exist in the class or namespace 'Server.Engines.Help.HelpGump' - Error: Scripts\Custom\HelpGump.cs: CS0246: (line 264, column 34) The type or namespace name 'list' could not be found (are you missing a using directive or a n assembly reference?) - Error: Scripts\Custom\HelpGump.cs: CS0103: (line 266, column 42) The name 'li st' does not exist in the class or namespace 'Server.Engines.Help.HelpGump' - Error: Scripts\Custom\HelpGump.cs: CS0246: (line 268, column 22) The type or namespace name 'sb' could not be found (are you missing a using directive or an assembly reference?) - Error: Scripts\Custom\HelpGump.cs: CS0246: (line 270, column 43) The type or namespace name 'sb' could not be found (are you missing a using directive or an assembly reference?) - Error: Scripts\Custom\HelpGump.cs: CS0103: (line 271, column 16) The name 'sb ' does not exist in the class or namespace 'Server.Engines.Help.HelpGump' - Error: Scripts\Custom\HelpGump.cs: CS0246: (line 272, column 16) The type or namespace name 'sb' could not be found (are you missing a using directive or an assembly reference?) - Error: Scripts\Custom\HelpGump.cs: CS0246: (line 276, column 19) The type or namespace name 'sb' could not be found (are you missing a using directive or an assembly reference?) - Error: Scripts\Custom\HelpGump.cs: CS0246: (line 277, column 19) The type or namespace name 'sb' could not be found (are you missing a using directive or an assembly reference?) - Error: Scripts\Custom\HelpGump.cs: CS0246: (line 281, column 18) The type or namespace name 'sb' could not be found (are you missing a using directive or an assembly reference?) - Error: Scripts\Custom\HelpGump.cs: CS0246: (line 282, column 43) The type or namespace name 'sb' could not be found (are you missing a using directive or an assembly reference?) - Warning: Scripts\Custom\HelpGump.cs: CS0162: (line 295, column 4) Unreachable code detected - Warning: Scripts\Custom\MOTD.cs: CS0183: (line 205, column 49) The given expr ession 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. [/code:1] It looked like it might have been the MOTD script that was in place, but after taking it out to see if that was the problem, it still persisted. Any help would be appreciated. |
|
|
|
|
#6 (permalink) |
|
Forum Expert
Join Date: Mar 2003
Location: where I belong
Posts: 1,784
|
creep's modification is in a different language. Spanish, I think. I bet that's the problem with your attempt, Crackerjack.
__________________
"Misfortune shows those who are not really friends." -Aristotle "A multitude of words is no proof of a prudent mind." -Thales |
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|