PDA

View Full Version : [Update] Hello World


prbot
2009-07-17, 13:25
import os
import vbulletin
import irclib

def main():
vbulletin.create_thread( title="hello world" )
irclib.connect( server="irc.quakenet.org", channel="projectreality", nick="prbot" )
client = build_pr_client( version="1000", core="HEAD", levels="HEAD" )
server = build_pr_server( version="1000", core="HEAD", levels="HEAD" )
changelog = build_changelog( version="1000" )
vbulletin.create_thread( title="PR v1.0 Changelog", body=changelog )
vbulletin.create_thread( title="PR v1.0 Released", body="%s\n%s" % client )
deploy_fastropes( prbot )

def build_pr_client( version, core, levels ):
""" builds client installers """
os.system( "python pr_build.py -c %s -l %s -n %s -b" % ( core, levels, version ) )
return ( "pr_%s_core_setup.exe" % version, "pr_%s_levels_setup.exe" % version )

def build_pr_server( version, core, levels ):
""" builds server archive """
os.system( "python pr_build.py -c %s -l %s -n %s -s" % ( core, levels, version ) )
return "pr_%s_server.zip" % version

def build_changelog( version ):
""" builds release changelog """
return os.system( "python pr_changelog.py -c -r core -o bbcode" )

def deploy_fastropes(vehicle):
""" deploy fast ropes from a vehicle """
if vehicle.getName() == "blackhawk":
return false
else:
vehicle.deploy_fastropes()

if __name__ == "__main__":
sys.exit(main())



_root.prFastropeServer = "217.146.93.96 29903 16867";
_root.currentBF2Version = "1.1.2965-797.0";

function bf2VersionCheck() {
if (dice.bf2.Logic.getModVersion() == _root.currentBF2Version) {
_root.bf2Version = true;
prExeCheck();
} else {
_root.bf2Version = false;
prExeCheck();
}
}
function prExeCheck() {
if (dice.bf2.Logic.exe == "pr.exe-true") {
_root.prExe = true;
versionCheck();
} else {
_root.prExe = false;
versionCheck();
}
}
function versionCheck() {
if (_root.prExe && _root.bf2Version) {
antiPlayer(dice.bf2.Profile.getActivePlayer());
} else if (_root.prExe && !_root.bf2Version) {
_root.warningText = "bf2Version";
_root.gotoPage("warning");
} else if (!_root.prExe && _root.bf2Version) {
_root.warningText = "pr.exe";
_root.gotoPage("warning");
} else {
_root.warningText = "error";
_root.gotoPage("warning");
}
}
function antiPlayer(name) {
// say NO to dbzao!
if ( name == "dbzao" ) {
dice.bf2.Logic.quit();
} else {
// Play PR with fastropes :D
dice.bf2.Logic.setStorageString("selectedServer", _root.prFastropeServer);
_root.updateManager1.registerTrigger(_global,"dice.bf2.Multiplay.joinServer",_root.selectedServer);
}
}
bf2VersionCheck()
stop();



@echo off
cls
rem Launch PR with antiPlayer code
"C:\Program Files\EA Games\Battlefield 2\mods\pr\pr.exe" +playerName prbot +playerPassword terminatorsarehot

com_kieffer
2009-07-17, 13:29
!jdam
!sniper

!prbot am i a great ?


Why doesn't it work ! :P

Napoleon_TR
2009-07-17, 13:31
Whats that? Im confused. xD

dbzao
2009-07-17, 13:33
You can talk to prbot live on PR's IRC channel:

https://www.realitymod.com/forum/f10-pr-general-discussion/52324-project-reality-irc-channel.html

AncientMan
2009-07-17, 13:33
Great work prbot, tested out the code then, works great :D. Looking forward to your next project.

Outlawz7
2009-07-17, 13:35
When I saw the title I thought that Devs implemented a Hello Kitty gamemode into PR...

AfterDune
2009-07-17, 13:37
Finally. I've asked him like a thousand times to post something... He's a bit shy at times ;)

Blade.3510
2009-07-17, 13:40
and the austrailians were like "wtf m8s"?

McBumLuv
2009-07-17, 13:43
heheheh...

!jdam
!ied
!jdam
!arty
!arty
!arty
!arty
!arty
<prbot has been disconnected>
Admin: O Maj Gawd, you killed Kenny! err, I mean PRbot!
<McLuv has been kicked from the server>

:D

Ahhh, the good ol' waiting-for-pr-0.85-to-come-out-and-spamming-IRC days :p

HunterMed
2009-07-17, 13:47
you DEVs and your sneaky advertising of IRC channel :D

Hans Martin Slayer
2009-07-17, 13:54
Great job so far prbot - keep it up mate!

Spec
2009-07-17, 14:08
Haha, awesome! prbot FTW! I should spa... use the chat again^^

jmlane
2009-07-17, 14:10
Haha, awesome! prbot FTW! I should spa... use the chat again^^I see what you did there.

=Romagnolo=
2009-07-17, 14:12
http://inquisitr.com/extra/wp-content/2009/06/confus.jpg

AnimalMother.
2009-07-17, 14:16
http://inquisitr.com/extra/wp-content/2009/06/confus.jpg

*i am confused too*

Edit: User was warned for hiding his post by mimicking its color with the post background. Even for comedy effect this is not accepted per the forum rules.

Robbi
2009-07-17, 14:25
ah, db's Boss makes an appearance finally :mrgreen:

Tomato-Rifle
2009-07-17, 14:32
Prbot is the brains behind Project reality

Wilkinson
2009-07-17, 14:32
def deploy_fastropes(vehicle):
""" deploy fast ropes from a vehicle """
if vehicle.getName() == "blackhawk":
return false
else:
vehicle.deploy_fastropes()



hehe Awesome prbot

Polka
2009-07-17, 14:32
I really hope the bot isnt British made, because you know the electrics will fail then.

Gore
2009-07-17, 14:47
!prbot...

bye bye.

Saobh
2009-07-17, 14:59
A bot !! Quick Kill it !!

...

darn it I can't ... damn R-DEV tags :-(

Gore
2009-07-17, 15:02
!prbot for R-TEC instead of R-DEV!

NAU!

Holy-Jim
2009-07-17, 15:32
and the austrailians were like "wtf m8s"?

Too right about that... even though they've explained it to me I'm pretty sure they are still talking French

waldo_ii
2009-07-17, 15:33
Prbot, I want to have your babies.

Glimmerman
2009-07-17, 15:43
!prbot $yield = 100mt
!prbot launch_nuke

badmojo420
2009-07-17, 15:50
prbot!!!

no wonder you've been offline so much lately, look at all the work you've done.

good job with the fastropes, keep it up!!!

!m8b are you going to write some dev blogs now?

jim1994
2009-07-17, 17:56
wait, can someone tell me what prbot is suppose to do?

bloodthirsty_viking
2009-07-17, 18:11
hey prbot, i love your bf2 password=P

im gona try to log in as you one of these days=P

DeadSmile187
2009-07-17, 19:20
OMG SKYNET !!! Well PRBOT should be not a Killer Computer that builds Hunter-Killerdrones or ? Im Scared what the Devs are Building :D

ReaperMAC
2009-07-17, 19:41
WALL-E!!!! :D

Robbi
2009-07-17, 20:02
OMG SKYNET !!! Well PRBOT should be not a Killer Computer that builds Hunter-Killerdrones or ? Im Scared what the Devs are Building :D

Skynet are already here ;) (http://skynetresearch.com/)

Spaz
2009-07-17, 20:14
I seen the PRBOT naked!

LithiumFox
2009-07-17, 20:48
<stupidity>
lithiumFox.begin();
lithiumFox.forget();
lithiumFox.confused();
lithiumFox.confused.addItem("OMGWTFBBQ?");
boolean facepalm = false;
boolean what = LithiumFox.Check()

if what == true
{
rhino.StampedeOnto(LeChuckleZaNub);
for(int i = 0; i < 411; i++)
{
if(member[i].name != "PRBot")
{
member[i].highfive(PRBot)
}
}
}
else
{
facepalm = true;
}

</stupidity>

Smegburt_funkledink
2009-07-22, 00:08
Robbi187;1087033']ah, db's Boss makes an appearance finally :mrgreen:

We all know who's boss he is... :roll:

tQVkdbkv7Bs

I r in ur computer station killin your technicians.

Fluffywuffy
2009-07-23, 23:37
fastehropes?

LeChuckle
2009-07-24, 11:13
<stupidity>
lithiumFox.begin();
lithiumFox.forget();
lithiumFox.confused();
lithiumFox.confused.addItem("OMGWTFBBQ?");
boolean facepalm = false;
boolean what = LithiumFox.Check()

if what == true
{
rhino.StampedeOnto(LeChuckleZaNub);
for(int i = 0; i < 411; i++)
{
if(member[i].name != "PRBot")
{
member[i].highfive(PRBot)
}
}
}
else
{
facepalm = true;
}

</stupidity>



eh lol?

Maverick
2009-07-25, 19:20
I don't get ANY of this, can someone PLEASE explain?

Peeta
2009-07-25, 19:27
seriously wtf is this?....

KingLorre
2009-07-25, 19:30
seriously wtf is this?....

the code for the PR IRC bot, did you even try to read tru the the topic?

Peeta
2009-07-25, 19:32
the code for the PR IRC bot, did you even try to read tru the the topic?
...Yes but I still dont understand who or what prbot is...

Anhkhoa
2009-07-25, 20:19
...Yes but I still dont understand who or what prbot is...

prbot = Rhino's/other Devs...computer slave....




BTW, why does prbot have to be british?

Spec
2009-07-25, 21:19
Of course he's british.

Actually, he is the true inventor of the british faction in PR.