Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!
Most of the plugins here are made by B3 users and the authors may not visit frequently. If you need support for plugins or if questions remain unanswered, you will have to contact the author directly. Read the full Support Disclaimer here

NOTE: Do not attach plugins to your forumtopics! Attachements are periodically removed by maintenance tasks. Upload your plugins to our Downloads section instead!

Author Topic: Custom Commands  (Read 12175 times)

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Custom Commands
« on: March 09, 2013, 03:33:04 PM »
Description :

With this plugin you will be able to create simple commands easily. There is a set of placeholders you can use to specify parameters for your command or reference the player you killed last or the player who killed you last, and more.

Example of command definition :

Code: [Select]
[guest commands]
sry = tell <LAST_VICTIM:PID> sorry mate :|
You would use it like this :
Quote
!sry
right after you made a team kill.

Full documentation
Download
« Last Edit: September 16, 2014, 12:24:07 AM by Courgette »

Offline MordyT

  • Support Hero
  • Hero Member
  • *
  • Posts: 3644
  • Over $300 Donated to B3!
    • MordyT
Re: Custom Commands
« Reply #1 on: March 11, 2013, 01:51:38 PM »
This is a awesome plugin. Really, this could replace about 10 plugins out there, such as poweradmin, etc.
Help will be given to those with a b3.log

If drop off the map it is due to RL becoming busy :)

System: Python 2.7.3 - Deb 7 - B3 Source Code - 128MB RAM box (rented at $5 a year) - remote MySQL - Remote Web Services

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: Custom Commands
« Reply #2 on: March 11, 2013, 02:16:54 PM »
Credit goes to the ManuAdminMod tool which has such a feature. I kept the syntax for the placeholder the same.

Fell free to share here the commands you come up with  :D

Here are a few ones I found on google (for Cod) :

Code: [Select]
afk = say ^1<ARG:FIND_PLAYER:NAME>  ^2is ^1AFK ^2in the spawn!!
duffman = say ^0Woo^1ooo^3uuuh ^0Du^1ff^3Man ^1on TOP!!!
noob = say ^5<ARG:FIND_PLAYER:NAME> ^2is the biggest ^6noob ^2of the ^5world
pbsay = pb_sv_say -1 <ARG>
kickme = pb_sv_kick <PLAYER:PBID> 0 <ARG:OPT:You kicked yourself>
payback = pb_sv_kick <LAST_KILLER:PBID> 0 ^1NEVER KILL AN ADMIN!
love = "say ^1I Love ^5<ARG:FIND_PLAYER:NAME>
hey = "say ^2Hey! <ARG:FIND_PLAYER:NAME> ^7, Whats ^2Up?
slender = "say ^1OooOOOoo ^6Slender Man ^5Is ^2Watching you..
omg = "say ^1HOLY ^2SHIT ^3LOOK ^6BEHIND ^2YOU!?
hi = say ^5Hello ^5Guys
n1 = say <ARG:FIND_PLAYER:PID>:^5Nice ^6One
bye = say ^3Bye ^2Guys
1v1 = say ^11v1! ^3please!
« Last Edit: March 12, 2013, 01:57:29 AM by Courgette »

Offline Glock

  • Sr. Member
  • ****
  • Posts: 172
  • Running B3 on 4 busy BF3 servers myself! B3 FTW!
Re: Custom Commands
« Reply #3 on: March 12, 2013, 01:01:53 AM »
Very clever!
I currently use chat for stuff like this;

Code: [Select]
 
<message>
<comment>n1</comment>
<trigger>(n1)</trigger>
<reaction>$player is showing their appreciation for that kill!</reaction>
<reaction>$player is shocked by your ability!</reaction>
<reaction>$player is astounded by that shot Troop!</reaction>
<reaction>OUCH! $player felt that bro!</reaction>
<reaction>$player is impressed! Good kill</reaction>
</message>

This will 'trim' the amount of editing by half, at least!
Plus give more options....

Very nice indeed! 
Need B3 Bot Hosting for your gameservers in the UK & Europe?
Take a look at Rcon-Admin.com
Cheap + reliable B3 Bot hosting in the UK and Europe

Offline phyys1x

  • Full Member
  • ***
  • Posts: 96
  • Whatcha cudin
    • Clans website
Re: Custom Commands
« Reply #4 on: April 16, 2014, 01:30:34 AM »
Description :

With this plugin you will be able to create simple commands easily. There is a set of placeholders you can use to specify parameters for your command or reference the player you killed last or the player who killed you last, and more.

Example of command definition :

Code: [Select]
[guest commands]
sry = tell <LAST_VICTIM:PID> sorry mate :|
You would use it like this :  right after you make a team kill.

Full documentation
Download

Hi! I am wondering if its possible to do something like, hey = bigtext ^7Hey! ^2<ARG:FIND_PLAYER:NAME> ^7, How are you? :) I tried, but I only got msg Hey and nothing else.. reply please :)

Offline ph03n1x

  • Sr. Member
  • ****
  • Posts: 296
    • Lovers and Haters Urban Terror
Re: Custom Commands
« Reply #5 on: April 16, 2014, 03:11:56 AM »
Try bigtext Hey <PLAYER:EXACTNAME>, how are you?

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: Custom Commands
« Reply #6 on: April 16, 2014, 10:18:39 AM »
do you known exactly what rcon command to type in the UrT console to correctly display your bigtext ?

Offline phyys1x

  • Full Member
  • ***
  • Posts: 96
  • Whatcha cudin
    • Clans website
Re: Custom Commands
« Reply #7 on: April 16, 2014, 11:09:19 AM »
do you known exactly what rcon command to type in the UrT console to correctly display your bigtext ?
Well.. Im pretty sure its bigtext, cause i got up bigtext but only the word hey

Offline phyys1x

  • Full Member
  • ***
  • Posts: 96
  • Whatcha cudin
    • Clans website
Re: Custom Commands
« Reply #8 on: April 16, 2014, 11:09:53 AM »
Try bigtext Hey <PLAYER:EXACTNAME>, how are you?

Alright mate i'll try it!

Offline phyys1x

  • Full Member
  • ***
  • Posts: 96
  • Whatcha cudin
    • Clans website
Re: Custom Commands
« Reply #9 on: April 16, 2014, 01:21:02 PM »
Try bigtext Hey <PLAYER:EXACTNAME>, how are you?

Like this? hey = say ^7Hey! ^2<PLAYER:EXACTNAME> ^7, How are you? :)

I am doing this in urban terror 4.1 btw if it have any meaning why it isnt working :)

Offline phyys1x

  • Full Member
  • ***
  • Posts: 96
  • Whatcha cudin
    • Clans website
Re: Custom Commands
« Reply #10 on: April 16, 2014, 01:31:41 PM »
This is how the command is, hey = bigtext ^7Hey! ^2<PLAYER:EXACTNAME> ^7, How are you? :)
B3 runs perfectly no problems with b3 only the cmd i am trying to make, Why isnt it working ? I tried !hey and the playerlists ID and name none of it worked, help me out please :)

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: Custom Commands
« Reply #11 on: April 16, 2014, 01:51:55 PM »
post your b3.log showing when the command is used

Offline phyys1x

  • Full Member
  • ***
  • Posts: 96
  • Whatcha cudin
    • Clans website
Re: Custom Commands
« Reply #12 on: April 16, 2014, 01:58:03 PM »
ok ! :)
Code: [Select]
140416 13:56:33	CONSOLE	'2:08 say: 0 MsT*|eXm!Q: !hey 0'
140416 13:56:33 VERBOSE 'Client Found: MsT*|eXm!Q on slot 0'
140416 13:56:33 VERBOSE 'Queueing event Say !hey 0'
140416 13:56:33 VERBOSE 'Parsing Event: Say: AdminPlugin'
140416 13:56:33 DEBUG 'AdminPlugin: OnSay handle 5:"!hey 0"'
140416 13:56:33 DEBUG 'AdminPlugin: Handle command !hey 0'
140416 13:56:33 VERBOSE "RCON sending (127.0.0.1:27960) 'bigtext ^7Hey! ^2^7MsT^3*^5|^2eX^6m!Q^7 ^7, How are you? :)'"
140416 13:56:33 VERBOSE 'Parsing Event: Say: CensorPlugin'
140416 13:56:33 VERBOSE 'Parsing Event: Say: SpamcontrolPlugin'
140416 13:56:36 CONSOLE '2:11 say: 0 MsT*|eXm!Q: !hey exm'
140416 13:56:36 VERBOSE 'Client Found: MsT*|eXm!Q on slot 0'
140416 13:56:36 VERBOSE 'Queueing event Say !hey exm'
140416 13:56:36 VERBOSE 'Parsing Event: Say: AdminPlugin'
140416 13:56:36 DEBUG 'AdminPlugin: OnSay handle 5:"!hey exm"'
140416 13:56:36 DEBUG 'AdminPlugin: Handle command !hey exm'
140416 13:56:36 VERBOSE "RCON sending (127.0.0.1:27960) 'bigtext ^7Hey! ^2^7MsT^3*^5|^2eX^6m!Q^7 ^7, How are you? :)'"
« Last Edit: April 16, 2014, 02:17:08 PM by Courgette »

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: Custom Commands
« Reply #13 on: April 16, 2014, 02:17:54 PM »
and if you run the command
Code: [Select]
bigtext ^7Hey! ^2^7MsT^3*^5|^2eX^6m!Q^7 ^7, How are you? :)
in your gameserver console, does it work as expected ?

Maybe you need double quotes around the message:
Code: [Select]
bigtext "^7Hey! ^2^7MsT^3*^5|^2eX^6m!Q^7 ^7, How are you? :)"

Offline phyys1x

  • Full Member
  • ***
  • Posts: 96
  • Whatcha cudin
    • Clans website
Re: Custom Commands
« Reply #14 on: April 16, 2014, 03:07:39 PM »
and if you run the command
Code: [Select]
bigtext ^7Hey! ^2^7MsT^3*^5|^2eX^6m!Q^7 ^7, How are you? :)
in your gameserver console, does it work as expected ?

Maybe you need double quotes around the message:
Code: [Select]
bigtext "^7Hey! ^2^7MsT^3*^5|^2eX^6m!Q^7 ^7, How are you? :)"
I will send you a picture to show you how it is ingame and ill try with " "

 


Rate this page +1 at Google Search

anything