View unanswered posts | View active topics It is currently Sat Apr 18, 2026 9:50 pm



Reply to topic  [ 4 posts ] 
 M()MBot Qset 
Author Message
Veteran Op
User avatar

Joined: Sat Dec 29, 2007 5:06 pm
Posts: 2059
Location: Oklahoma
Unread post M()MBot Qset
I have heard about this for a while now and finally decided to fix it. if you typed the qset command in the correct order it would crash mom.

qset [damage] {a|s}

- [damage] Amount of damage, or stength of Cannon
- {a|s} Indicates Atmosphere or Sector Cannon

<bot> qset 50000 a/s <-- Normal way
<bot> qset a/s 50000 <-- would crash mom

Here is the fix, around line 1800 or search for ":doQsetProtections" and change the line I highlighted, it was $parm1, change to $damage.
Code:
:doQsetProtections
    setVar $cannonType $type
    isNumber $test $damage
    if ($test)
        setVar $cannonDamage $damage  <--- THIS is where the problem was. FIXED!
    else
        send "'{" $bot_name "} - Invalid damage amount entered. *"
        goto :wait_for_command
    end

_________________
T0yman (Permanently Retired since 2012)
Proverbs 17:28 <-- Don't know it, most should it would stop a lot of the discussions on here.


Wed Feb 08, 2012 8:04 pm
Profile ICQ YIM WWW
Lieutenant Commander

Joined: Thu Dec 08, 2005 3:00 am
Posts: 903
Location: USA
Unread post Re: M()MBot Qset
T0yman wrote:
I have heard about this for a while now and finally decided to fix it. if you typed the qset command in the correct order it would crash mom.

qset [damage] {a|s}

- [damage] Amount of damage, or stength of Cannon
- {a|s} Indicates Atmosphere or Sector Cannon

<bot> qset 50000 a/s <-- Normal way
<bot> qset a/s 50000 <-- would crash mom

Here is the fix, around line 1800 or search for ":doQsetProtections" and change the line I highlighted, it was $parm1, change to $damage.
Code:
:doQsetProtections
    setVar $cannonType $type
    isNumber $test $damage
    if ($test)
        setVar $cannonDamage $damage  <--- THIS is where the problem was. FIXED!
    else
        send "'{" $bot_name "} - Invalid damage amount entered. *"
        goto :wait_for_command
    end


Bounty fixed it for the updated version he has been working on.

_________________
Image
ImageImage
**Helix, guess who called me today? Thats right, The Partridge Family they want Danny Bonaduces picture back! ROFLMAO!**


Thu Feb 09, 2012 12:27 am
Profile ICQ
Veteran Op
User avatar

Joined: Sat Dec 29, 2007 5:06 pm
Posts: 2059
Location: Oklahoma
Unread post Re: M()MBot Qset
Great News, I am just putting this out for those that use the option and can't wait on a release.

_________________
T0yman (Permanently Retired since 2012)
Proverbs 17:28 <-- Don't know it, most should it would stop a lot of the discussions on here.


Thu Feb 09, 2012 5:16 am
Profile ICQ YIM WWW
Gameop
User avatar

Joined: Tue Nov 19, 2002 3:00 am
Posts: 1050
Location: USA
Unread post Re: M()MBot Qset
T0yman wrote:
Great News, I am just putting this out for those that use the option and can't wait on a release.


Or choose not to use a .cts version, thanks Toy.

_________________
Dark Dominion TWGS
Telnet://twgs.darkworlds.org:23
ICQ#31380757, -=English 101 pwns me=-
"This one claims to have been playing since 1993 and didn't know upgrading a port would raise his alignment."


Thu Feb 09, 2012 5:54 pm
Profile ICQ
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 19 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by wSTSoftware.