Go Back   RunUO - Ultima Online Emulation > RunUO > RunUO Post Archive

RunUO Post Archive The Archvie

Closed Thread
 
Thread Tools Display Modes
Old 12-23-2003, 05:51 AM   #1 (permalink)
 
Join Date: Oct 2003
Posts: 9
Default Better Help Menu (Paper Doll Help)

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.
Cl0n3 is offline  
Old 12-23-2003, 11:40 AM   #2 (permalink)
 
Join Date: Jun 2003
Posts: 13
Default

Great! I hurry up to try!

Thanks!
richie is offline  
Old 12-23-2003, 12:27 PM   #3 (permalink)
Forum Novice
 
Join Date: Jul 2003
Posts: 229
Default

good shit
wolf is offline  
Old 12-23-2003, 01:19 PM   #4 (permalink)
 
Join Date: Nov 2003
Posts: 79
Send a message via ICQ to creep
Default

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]
creep is offline  
Old 01-26-2004, 07:54 PM   #5 (permalink)
The Spaz
 
Join Date: Oct 2003
Location: Murray, KY
Age: 26
Posts: 235
Default

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.
Crackerjack is offline  
Old 01-27-2004, 01:59 AM   #6 (permalink)
Forum Expert
 
Khaz's Avatar
 
Join Date: Mar 2003
Location: where I belong
Posts: 1,784
Default

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
Khaz is offline  
Old 01-27-2004, 02:22 AM   #7 (permalink)
The Spaz
 
Join Date: Oct 2003
Location: Murray, KY
Age: 26
Posts: 235
Default

Besides
Quote:
lista de comandos
Which is in spanish and commented out, I dont see anything else thats in another language.
Crackerjack is offline  
Old 01-28-2004, 07:28 PM   #8 (permalink)
 
Join Date: Nov 2003
Posts: 79
Send a message via ICQ to creep
Default

my guess is that you forgot some code at the beggining, like
using server.something


i cant remember wich one exactly...
creep is offline  
Old 01-28-2004, 09:24 PM   #9 (permalink)
 
Join Date: Nov 2003
Posts: 17
Default

Maybe you guys should read what the scriptor put about how to get rid of the resurection option if you do not like it... Simply delete the case 11. Makes sence doesnt it?
Owner_Ramses of RoK is offline  
Old 01-29-2004, 05:09 PM   #10 (permalink)
Newbie
 
Join Date: Oct 2002
Posts: 26
Default

or maybe get a few classes and realise thats brazilian portuguese
Mugs is offline  
Old 01-30-2004, 06:14 PM   #11 (permalink)
 
Join Date: Oct 2003
Posts: 9
Default

or i could script it so that you get charged a certan amount of gold for a res, or lose a bunch of fame and karma?? Give some suggestions...
Cl0n3 is offline  
Closed Thread

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