Booya
collapse collapse

* User Info

 
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

* Search


* Board Stats

  • stats Total Members: 1074
  • stats Total Posts: 18300
  • stats Total Topics: 2487
  • stats Total Categories: 7
  • stats Total Boards: 31
  • stats Most Online: 500

Author Topic: 0.6.x: Rules of Aquisition  (Read 3375 times)

0 Members and 1 Guest are viewing this topic.

Offline screwy

  • BeBot Rookie
  • *
  • Posts: 19
  • Karma: +0/-0
0.6.x: Rules of Aquisition
« on: July 12, 2009, 11:33:07 am »
Hey!

I modded the beer module to list the rules of Aquisition for all the traders our there (DS9).

Enjoy!

-Screwy, RK1.

Code: [Select]
<?
/*
 * Rules of Aquisition - A Social Module, based on th beer Module by Jonas Jax.
 * For BeBot - An Anarchy Online/Age of Conan Chat Automaton Developed by Blondengy (RK1) (beer.php)
 * Copyright (C) 2009 Screwy (RK1)
 * Memory handling Improved Code by Temar
 *
 * As usual place this file in ./modules
 */

$roa= new roa($bot);

/*
The Class itself...
*/
class roa Extends BaseActiveModule
{
        /*
        Constructor:
        Hands over a referance to the "Bot" class.
        */
        function __construct (&$bot)
        {
                parent::__construct(&$bot, get_class($this));

                $this -> register_command('all', 'roa', 'GUEST');
                $this -> help['description'] = 'Shows a random Rule of Aquisition, written by Screwy (Rk1)';
                $this -> help['command']['roa']="Displays a random rule of Aquisition.";
                $this -> help['notes'] = "This module has no settings, it's database is static. So just use it aand don't worry ;)";

        }

                /*
        This function handles all the inputs and returns output
        sutible for send_tell, send_pgroup, and send_gc.
        */
        function command_handler($name, $msg, $origin)
        {
                $this->error->reset(); //Reset the error message so we don't trigger the handler by old error messages.

                return $this -> get_roa($name);
        }

    /*
      Constructor:
        Hands over a referance to the "Bot" class.
    */
        /*
        Build response
        */
    function get_roa($name)
    {
        $roa_db[] = "Rule 1 :Once you have their money, you never give it back.";
        $roa_db[] = "Rule 3 :Never pay more for an acquisition than you have to.";
        $roa_db[] = "Rule 6 :Never allow family to stand in the way of opportunity.";
        $roa_db[] = "Rule 7 :Keep your ears open.";
        $roa_db[] = "Rule 9 :Opportunity plus instinct equals profit.";
        $roa_db[] = "Rule 10 :Greed is eternal.";
        $roa_db[] = "Rule 16 :A deal is a deal.";
        $roa_db[] = "Rule 17 :A contract is a contract is a contract ... but only between Ferengi.";
        $roa_db[] = "Rule 18 :A Ferengi without profit is no Ferengi at all.";
        $roa_db[] = "Rule 21 :Never place friendship above profit.";
        $roa_db[] = "Rule 22 :A wise man can hear profit in the wind.";
        $roa_db[] = "Rule 23 :Nothing is more important than your health ... except for your money.";
        $roa_db[] = "Rule 31 :Never make fun of a Ferengi's mother.";
        $roa_db[] = "Rule 33 :It never hurts to suck up to the boss";
        $roa_db[] = "Rule 34 :War is good for business";
        $roa_db[] = "Rule 35 :Peace is good for business.";
        $roa_db[] = "Rule 45 :Expand or Die.";
        $roa_db[] = "Rule 47 :Never trust a man wearing a better suit than your own.";
        $roa_db[] = "Rule 48 :The bigger the smile, the sharper the knife.";
        $roa_db[] = "Rule 57 :Good customers are as rare as latinum. Treasure them.";
        $roa_db[] = "Rule 59 :Free advice is seldom cheap.";
        $roa_db[] = "Rule 62 :The riskier the road, the greater the profit.";
        $roa_db[] = "Rule 74 :Knowledge equals profit.";
        $roa_db[] = "Rule 75 :Home is where the heart is, but the stars are made of latinum.";
        $roa_db[] = "Rule 76 :Every once in a while, declare peace. It confuses the hell out of your enemies.";
        $roa_db[] = "Rule 94 :Females and finances don't mix.";
        $roa_db[] = "Rule 95 :Expand or Die.";
        $roa_db[] = "Rule 98 :Every man has his price.";
        $roa_db[] = "Rule 102 :Nature decays, but latinum lasts forever.";
        $roa_db[] = "Rule 103 :Sleep can interfere with your lust for latinum.";
        $roa_db[] = "Rule 109 :Dignity and an empty sack is worth the sack.";
        $roa_db[] = "Rule 111 :Treat people in your debt like family ... exploit them.";
        $roa_db[] = "Rule 112 :Never have sex with the boss's sister.";
        $roa_db[] = "Rule 125 :You can't make a deal if you're dead.";
        $roa_db[] = "Rule 139 :Wives serve, brothers inherit.";
        $roa_db[] = "Rule 168 :Whisper your way to success.";
        $roa_db[] = "Rule ? :A man is only worth the sum of his possessions.";
        $roa_db[] = "Rule 190 :Hear all, trust nothing.";
        $roa_db[] = "Rule 194 :It's always good to know about new customers before they walk in your door.";
        $roa_db[] = "Rule 203 :New customers are like razor-toothed gree-worms. They can be succulent, but sometimes they bite back.";
        $roa_db[] = "Rule 208 :Sometimes the only thing more dangerous than a question is an answer.";
        $roa_db[] = "Rule 211 :Employees are the rungs on the ladder of success. Don't hesitate to step on them.";
        $roa_db[] = "Rule 214 :Never begin a negotiation on an empty stomach.";
        $roa_db[] = "Rule 217 :You can't free a fish from water.";
        $roa_db[] = "Rule 229 :Latinum lasts longer than lust.";
        $roa_db[] = "Rule 239 :Never be afraid to mislabel a product.";
        $roa_db[] = "Rule 263 :Never let doubt interfere with your lust for latinum.";
        $roa_db[] = "Rule 285 :No good deed ever goes unpunished. ";

        return $roa_db[rand(0,sizeof($roa_db)-1)];

    }
}
?>

Offline Space

  • BeBot Rookie
  • *
  • Posts: 10
  • Karma: +0/-0
Re: 0.6.x: Rules of Aquisition
« Reply #1 on: April 06, 2010, 11:32:48 am »
thnax m8, i have been changing some mod myself, to salute in GREEK!

Is fun!!

 

* Recent Posts

0.7.0 updates by bitnykk
[May 17, 2020, 04:22:04 pm]


Stats module by bitnykk
[April 16, 2020, 04:45:43 pm]


OnlineOrg by Hell
[February 28, 2020, 11:21:55 pm]


AO Bots - discord server by Kjellis1234
[January 23, 2020, 04:17:04 pm]


Offline AA training timer module by Kjellis1234
[August 29, 2019, 11:12:14 pm]

* Who's Online

  • Dot Guests: 128
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Forum Staff

admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2020, SimplePortal