Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Tiberian Technologies / Blackhand Studios » Other Products » Creating BRenBot plugins
Creating BRenBot plugins [message #318870] Mon, 25 February 2008 07:33 Go to next message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma: 0
General (1 Star)
I was trying to make a Plugin for BRenBot to give with ONE single command all the weapons (!allguns) Sarcasm

Now i got already a AllGuns.pm and a AllGuns.xml file and i know a bit of programming, but i get stuck. Sneaky
How do i give the Plugin access to these guns and the player character to add the guns to him?

I hope someone can help me out Dont Get It Huh


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg
Re: Creating BRenBot plugins [message #318873 is a reply to message #318870] Mon, 25 February 2008 08:14 Go to previous messageGo to next message
gkl21
Messages: 238
Registered: May 2006
Karma: 0
Recruit
That'd have to be a SSGM Plugin ... unless there is some command that I'm not seeing...
Re: Creating BRenBot plugins [message #318876 is a reply to message #318870] Mon, 25 February 2008 08:22 Go to previous messageGo to next message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma: 0
General (1 Star)
Neh my problem is that i don't know what i must add into the AllGuns.pm file.

I don't know the signatures of all weapons in BRenBot.
I studied the one of !destroyveh and it comes out with yhis code:

-------------------------------------------------------------
sub destroyveh
{
my ( $kernel, $session, $heap, $args ) = @_[ KERNEL, SESSION, HEAP, ARG0 ];
my %args = %{$args};

if ( $args{arg} =~ m/^\!\S+\s(.+)$/i )
{
my ( $result, %player ) = plugin::getPlayerData ( $1 );
if ( $result == 1 )
{
plugin::RenRemCMD ( "destroy_vehicle $player{id}" );
plugin::RenRemCMD("ppage $player{id} Your vehicle was destroyed by request.");
}
else { doMsg("Error: $args{arg1} was not found ingame, or is not unique",$args{nicktype}, "A"); }
}
else
{
doMsg("Syntax: !destroyveh <player>",$args{nicktype}, "A");
}
}

-----------------------------------------------------

I don't know what i have to fill in by the --> if ( $args{arg} =~ m/^\!\S+\s(.+)$/i ) <-- for all weapons. This should be a check for the vehicle but now i want the code for the weapons.

So my problem really lies in the 'programming' part.


PS. That's not a miracle i'm just 15 Huh


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg
Re: Creating BRenBot plugins [message #318885 is a reply to message #318876] Mon, 25 February 2008 08:54 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
Omar007 wrote on Mon, 25 February 2008 15:22

I don't know what i have to fill in by the --> if ( $args{arg} =~ m/^\!\S+\s(.+)$/i ) <-- for all weapons. This should be a check for the vehicle but now i want the code for the weapons.



Actually all that does is extract the playername from the command line ('!destroyveh danpaul88' for example). BRenBot itself cannot give players weapons, unless you add a console command to the FDS that allows it.


http://steamsignature.com/card/1/76561197975867233.png
Re: Creating BRenBot plugins [message #318888 is a reply to message #318870] Mon, 25 February 2008 08:57 Go to previous messageGo to next message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma: 0
General (1 Star)
How should i do that?

BTW. If i get this command working is adding a second one easier to make? Or needs a new command whole new codes.


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg
Re: Creating BRenBot plugins [message #319078 is a reply to message #318888] Tue, 26 February 2008 05:44 Go to previous messageGo to next message
Hex is currently offline  Hex
Messages: 858
Registered: March 2004
Karma: 0
Colonel
You would need to use a chat command from ssgm and grant the player a powerup for each weapon, this can't be done with BR


Commands->Give_Powerup(obj,WEAPON POWERUP PRESET,true);


goztow wrote on Tue, 11 May 2010 08:00

If we had to ban all who ever cheated or ever created a cheat (obj3cts and such) then I don't think there would be many members left here (sad fact).


reborn wrote on Fri, 29 January 2010 23:37

std is for pro's. Razz
Re: Creating BRenBot plugins [message #319132 is a reply to message #318870] Tue, 26 February 2008 10:07 Go to previous message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma: 0
General (1 Star)
So that meens i won't be able to make such plugin?
There is no other option to make it work?

BTW. I got really fun with this plugin. If i use the !allguns command now BRenBot shuts down Big Grin Big Grin Huh


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg
Previous Topic: Jukebox Plugin for Brenbot
Next Topic: Latest Scripts.dll ERROR ERROR! Plz help
Goto Forum:
  


Current Time: Wed Nov 27 08:51:48 MST 2024

Total time taken to generate the page: 0.00704 seconds