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

RunUO Post Archive The Archvie

Reply
 
Thread Tools Display Modes
Old 11-27-2003, 01:20 PM   #1 (permalink)
 
Join Date: Oct 2002
Age: 23
Posts: 4,689
Default Command Handling (Invoking Commands via Script)

Sometimes you may want to invoke an in-game command. And unfortunately I see this in the B36 Distro.

Line 37, Gumps/CategorizedAddGump.cs
[code:1]
Commands.Handle( from, String.Format( "[Add {0}", m_Type.Name ) );
[/code:1]

Nothing majorly wrong, but it should say

[code:1]
Commands.Handle( from, String.Format( "{0}Add {1}", Server.Commands.CommandPrefix, m_Type.Name ) );
[/code:1]

That will fix the bugs with the add gump along with anything else I didnt find.
XxSP1DERxX is offline   Reply With Quote
Old 11-27-2003, 07:29 PM   #2 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

What does this fix exactly.

Invoking a command through a script, is really reason. All you gota do is call the event method.
Phantom is offline   Reply With Quote
Old 12-08-2003, 06:36 PM   #3 (permalink)
Forum Expert
 
Bradley's Avatar
 
Join Date: Oct 2002
Location: Hummelstown, PA
Age: 29
Posts: 487
Send a message via ICQ to Bradley Send a message via AIM to Bradley Send a message via MSN to Bradley Send a message via Yahoo to Bradley
Default

looks like it fixes a place where the command prefix was hard coded as "[". So that if the command prefix was changed to "." for example, this particular command was still using "[".
Bradley is offline   Reply With Quote
Old 12-10-2003, 06:37 PM   #4 (permalink)
 
Join Date: Oct 2002
Age: 23
Posts: 4,689
Default

yeah exactly

didnt ryan reply to this post as well saying it was fixed?... time warp on the boards?
XxSP1DERxX is offline   Reply With Quote
Old 12-11-2003, 03:13 PM   #5 (permalink)
Forum Expert
 
Join Date: Oct 2002
Posts: 1,126
Default

Although it wasn't hardcoded... which is why XxSP1DERxX was able to change it :>
Aenima is offline   Reply With Quote
Old 12-20-2003, 02:18 AM   #6 (permalink)
 
Join Date: Jan 2003
Posts: 45
Send a message via AIM to JHegel
Default

i believe by hardcoded, he meant it wasn't a variable, so if you change the command prefix, it was "hardcoded" into the script to use "[" not commandprefix, no need to get technically anal.
JHegel is offline   Reply With Quote
Old 12-20-2003, 03:24 AM   #7 (permalink)
 
Join Date: Oct 2002
Age: 23
Posts: 4,689
Default

lol
definately true. No need for that. We are all coders (or going to be) and know what they mean.
XxSP1DERxX is offline   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