Page 1 of 1

SiteBot

PostPosted: Sun Dec 16, 07 6:20 pm
by [FTF]Freedom
Something I started ages ago, but can't get to work (properly).

I stole and edited Allan's adminbot code and modified it so that it does not log a user in when frobbed, but rather takes them to my clan's website.

One teeny weeny little problem - the bot takes ME (and only me) to the FTF site whenever someone frobs it. Also, if there were 6 players on my server, and one person frobbed it, it would open IE to the FTF page.... 6 times.

I've lost the code since a recent hardware failure, so no examples unfortunately. Basically, I'm just asking for someone to do this mod for me if they'd be so kind...

I want a bot (preferably a computerpersonal but dunno if it's possible) to take the player to the FTF website when the player clicks it.

If this is possible could somebody script it for me, please? I'm offering server time in return for those who want it. (I just purchased a fast 8 slot server)

PostPosted: Sun Dec 16, 07 7:10 pm
by Cozmo
Code: Select all
function Frob(Actor Frobber, Inventory frobWith)
{
   DeusExPlayer(Frobber).ConsoleCommand("open www.website.com");
}


?

PostPosted: Sun Dec 16, 07 9:43 pm
by Kaiden
I'm assuming you asked him prior to editing it?

PostPosted: Mon Dec 17, 07 12:14 am
by [FTF]Freedom
Yeah, on this forum actually. Well kinda. Didn't specifically ask him, but didn't specifically base it on his code... I just used the adminbot class file coz as a starting block, and removed all adminlogin functions anyway. His name was kept on it anyway.

Cosmo: I'll try that, thanks.

PostPosted: Mon Dec 17, 07 9:27 am
by Allan
Well, if it makes something worth the while, use the code. I don't mind much.

PostPosted: Tue Dec 18, 07 4:13 pm
by [FTF]Freedom
Thanks. I'm not in the business of stealing code, I just couldn't be bothered to write out my own class file lol. Just replaced adminlogin with open lol