[unstable] Noob Scriptwriter Mod

Have you made a modification, that isn't finished, or is unstable? Post it here for feedback!

[unstable] Noob Scriptwriter Mod

Postby Brenhein » Sun Jan 10, 2010 8:44 am

PC (Brenhein)'s Noob Scriptwriter Modification
The usage will be at the bottom, so read the whole thing before installing.

Features:
  1. Makes it so you don't have to put the $x-> in front of the command
  2. Brings PCL2-type commands back

Modification:

  1. Make a new PHP file called "mod.php"
  2. Inside "mod.php", add:
    Code: Select all
    <?php
    // This modification was made by PC/Brenhein
    // This software comes "as is" with no expressed
    // or implied warranties.  Use at your own risk.
    // ================================
    // Please note that this modification is still in
    // "Beta" and therefore is not stable.  For updates,
    // please visit http://www.brenhein.com/pcl
    // ================================
    //            AND NOW FOR THE SCRIPT!!

    function say($message){
    $p->sendMessage($message);
    return true;
    }
    function sayblocked($block){
    $p->sendBlocked($block);
    return true;
    }
    function emote($em){
    $p->sendEmote($em);
    return true;
    }
    function joke($joke){
    $p->sendJoke($block);
    return true;
    }
    function safechat($blo){
    $p->sendSafe($blo);
    return true;
    }
    function sendLine($send){
    $p->sendLine($send);
    return true;
    }
    function sendQuick($block){
    $p->sendQuick($block);
    return true;
    }
    function sendGuide($block){
    $p->sendGuide($block);
    return true;
    }
    function gotoPos($x, $y){
    $p->sendPosition($x, $y);
    return true;
    }
    function wait($time){
    sleep($time);
    return true;
    }
    function snowball($x, $y){
    $p->snowBall($x, $y);
    return true;
    }
    function action($block){
    $p->sendAction($block);
    return true;
    }
    function sendFrame($block){
    $p->sendFrame($block);
    return true;
    }
    function sendmail($block){
    $p->sendMail($block);
    return true;
    }
    function additem($block){
    $p->addItem($block);
    return true;
    }
    function igloo($block){
    $p->joinIgloo($block);
    return true;
    }
    function rainbowpuffle(){
    $p->rainbowPuffle();
    return true;
    }
    function coins($coin){
    $p->sendGuide($coin);
    return true;
    }
    function room($block){
    $p->joinRoom($block);
    return true;
    }
    function cpexit(){
    $p->disconnect();
    return true;
    }
    function follow($pengid){
    $p->followBot($pengid);
    return true;
    }
    function cplogin($username, $password, $server){
    $p = new Pickle;
    $p->connect($Username, $Password, $Server);
    return true;
    }
    // END MOD
    // Thank you, thank you very much!
    ?>

Usage:
After the <?php on the top of every script, type:
Code: Select all
require("mod.php");



Commands
THERE IS NO NEED TO MAKE $p-> IN FRONT OF EVERY COMMAND - IT JUST SCREWS IT UP!
cplogin(username, password, server) - Logs into the specified server in $server
say("message") - Makes the penguin say something.
sayblocked("message") - Does the same thing a sendBlocked
emote(emid) - Makes the penguin send the specified emote.
joke(jkid) - Makes the penguin send the joke specified in $joke
safechat(safeid) - Says the specified safe-chat text
sendLine(line) - Does the same thing as sendLine
sendQuick(quick) - Does the same thing as sendQuick
sendGuide(guide) - Does the same thing as sendGuide
gotopos(x, y) - Makes the penguin go to the specified position
wait(seconds) - Makes the script hang for the specified amount of seconds
snowball(x, y) - Sends a snowball to the specified coordinates
action(action) - sends the specified action
sendFrame(frame) - Sends the frame specified
sendMail(pngid) - Sends mail to the specified Penguin ID
additem(id) - Adds the specified item permanently into the penguin's inventory.
Igloo(pngid) - Joins the igloo of the Penguin ID specified.
rainbowpuffle() - Makes you have the rainbow puffle
coins(amount) - Gets coins WARNING: Only use this while in a game
room(rmid) - Joins the specified room.
follow(pngid) - Makes the penguin follow the selected Penguin ID
cpexit() - Logs out of CP and exits the script.

Thank you, Brenhein/PC
Brenhein
Trusted User
 
Posts: 10
Joined: Wed Nov 25, 2009 3:55 pm
Cash on hand: 300.00
Programming Skills: C++, PHP, Java, VB6, VB.NET, HTML, C#, ASP, SQL, Visual Studio

Re: [unstable] Noob Scriptwriter Mod

Postby Billybob1234 » Sun Jan 10, 2010 10:08 am

So, you copied tasks.php, and gave the functions different names? So impressive! (Sarcasm)
Image
Billybob1234
Support Team
Support Team
 
Posts: 153
Joined: Sun Jul 26, 2009 8:49 pm
Cash on hand: 43.09
Bank: 19,004.91
Location: Wisconsin
Programming Skills: PHP, HTML, CSS

Re: [unstable] Noob Scriptwriter Mod

Postby Brenhein » Sun Jan 10, 2010 10:30 am

It just makes it easier for noobs to code.
Brenhein
Trusted User
 
Posts: 10
Joined: Wed Nov 25, 2009 3:55 pm
Cash on hand: 300.00
Programming Skills: C++, PHP, Java, VB6, VB.NET, HTML, C#, ASP, SQL, Visual Studio

Re: [unstable] Noob Scriptwriter Mod

Postby bedbed » Sun Jan 10, 2010 10:32 am

It's pretty useful if you used PCL, and your not use to PCL.
Image
^^Online Moneymaker, Mascot Tracker, Item DB, Penguin DB/tracker, and my favorite, Virtual View, all bundled up together to make the greatest site ever, PenguinVault.org
bedbed
Trusted User
 
Posts: 129
Joined: Sun Jul 26, 2009 8:15 am
Cash on hand: 113.90
Bank: 35,287.25
Programming Skills: PHP and C++

Re: [unstable] Noob Scriptwriter Mod

Postby Brenhein » Sun Jan 10, 2010 10:39 am

Like me, lol.
Brenhein
Trusted User
 
Posts: 10
Joined: Wed Nov 25, 2009 3:55 pm
Cash on hand: 300.00
Programming Skills: C++, PHP, Java, VB6, VB.NET, HTML, C#, ASP, SQL, Visual Studio

Re: [unstable] Noob Scriptwriter Mod

Postby blackninja » Sun Jan 10, 2010 10:43 am

The rainbow puffle function is not going to work.
User avatar
blackninja
Trusted User
 
Posts: 153
Joined: Wed Aug 05, 2009 12:17 pm
Cash on hand: 363.48
Location: Massachusetts
Programming Skills: PHP

Re: [unstable] Noob Scriptwriter Mod

Postby Brenhein » Sun Jan 10, 2010 10:45 am

Try it, it works.
Brenhein
Trusted User
 
Posts: 10
Joined: Wed Nov 25, 2009 3:55 pm
Cash on hand: 300.00
Programming Skills: C++, PHP, Java, VB6, VB.NET, HTML, C#, ASP, SQL, Visual Studio

Re: [unstable] Noob Scriptwriter Mod

Postby Happehwalrus » Mon Jan 11, 2010 4:49 pm

Wow, great job. Wish I would've thought of this.
Image
The thing about guilt is that the only person you can't justify it to is yourself. If some one else blames you for something you will stick up for yourself and make excuses. It will probably go away if another person keeps bringing it up. Only when you are the only one who blames yourself will the guilt be there.
User avatar
Happehwalrus
Support Team
Support Team
 
Posts: 202
Joined: Sun Aug 09, 2009 1:36 pm
Cash on hand: 175.22
Bank: 57,071.51
Location: My own personal Hell-- Alabama.
Programming Skills: PHP, HTML

Re: [unstable] Noob Scriptwriter Mod

Postby Brenhein » Mon Jan 11, 2010 4:52 pm

Thank you ;)
Brenhein
Trusted User
 
Posts: 10
Joined: Wed Nov 25, 2009 3:55 pm
Cash on hand: 300.00
Programming Skills: C++, PHP, Java, VB6, VB.NET, HTML, C#, ASP, SQL, Visual Studio


Return to Beta Releases

Who is online

Users browsing this forum: No registered users and 1 guest

cron