Custom Commands - by Njinir (Engineer)

Njinir

New Member
JFF Member
7D2D RAT Supporter
Admin Joined
Player Spawn Join
Conditionals: ALEVEL:=0
say "[00FFFF] Hide the Bodies! Admin {player_name} has joined the server."

*Notes - This is just a morale booster. Players like to know that the admins have logged in.
 

Njinir

New Member
JFF Member
7D2D RAT Supporter
Banking Commands
Basics: Misc tab: Set max to 900K, set rate to 10.00

Commands:
-------------
Bank Add (admin command to add or remove from players)
Player Public Chat
STARTSWITH:!bankadd||ALEVEL:=0
.BANKMODIFY:{2},{3}
sayplayer {player_steamid} "[00FFFF] You have adjusted {3} for {2}"
-------------
Bank Player Balance (admin command to see balances of players)
Player Public Chat
STARTSWITH:!balance||ALEVEL:=0
.BANKBALANCE:{2}
sayplayer {player_steamid} "[00FFFF] {2} has {bank_balance} rage coins."
-------------
Bank
Player Public Chat
STARTSWITH:!bank
.BANKBALANCE:{player_steamid}
sayplayer {player_steamid} "[00FFFF] Your bank total is {bank_balance} rage coins! The Max is {bank_max} rage coins! Max withdraw is $30,000 at a time. Type !withdraw followed by the amount to remove funds (up to 30K at a time)."
------------
Withrdraw
Player Public Chat
STARTSWITH:!withdraw||HASFUNDS:{player_steamid},{2}
.BANKWITHDRAW:{player_steamid},{2}
bc-give {player_steamid} 33318 /c={bank_exchange_value} /q=0
sayplayer {player_steamid} "[00FFFF] You have exchanged {2} rage coin for {bank_exchange_value} duke casino coin. Your new balance is {bank_balance}"
-----------
Player Killed Player
type: Player Killed Player

.BANKMODIFY:{player_killer_steamid}, -500
.BANKMODIFY:{player_killed_steamid}, +50
(when someone kills someone they lose money. The other guy gets his death money back)
-----------
Player Killed Zombie
Player Killed Zombie
.BANKMODIFY:{player_steamid},10
---------

Options:
add bankmodify to teleport (cost)
add to anything else you want as well. Just be sure to use HASFUNDS variable (see Withdrawal)
 
Last edited:

Njinir

New Member
JFF Member
7D2D RAT Supporter
Debuff - NearDeathTrauma
Player Public Chat
STARTSWITH:!debuff
bc-debuff {player_id} buffNearDeathTrauma
sayplayer {player_steamid} "[00FFFF] Near Death Trauma cleansed!"
*Note: We activate for a few hours a day to get the players involved/excited. Its allows them to have more risk for a while*
 

Njinir

New Member
JFF Member
7D2D RAT Supporter
Buried Supplies Fix
Player Public Chat
STARTSWITH:!supplies
bc-givequest {player_steamid} tier1_buried_supplies
*Note: The game has a glitch where players will have supplies stuck in their inventory. This will allow them to have the quest back, manually cancel, and then poof - removed*
 

Njinir

New Member
JFF Member
7D2D RAT Supporter
Player Shop
Get ready to spend some time, but this works great.
Basics. You have to write a menu, followed by the commands to use it. Here is mine:
--------
ALL ITEMS ARE IN PLAYER PUBLIC CHAT
I am only going to display the SHOP AMMO because they all mimic the same idea....
HOW TO MAKE IT WORK: Use EQUALS:
This makes them type exactly what they need. Otherwise, the shop will show every time if STARTSWITH: !shop (whatever).
We dont want STARTSWITH. We want exact - so EQUALS is better.

--------
Shop Menu
EQUALS:!shop
sayplayer {player_steamid} "[00FFFF] Shop Menu. Type !shop ammo (active), !shop deco(TBD), !shop food(active), !shop weapon(TBD), !shop extras(TBD)."
---------
Shop Ammo
EQUALS:!shop ammo
sayplayer {player_steamid} "[00FFFF] Type !shop ammo #. All items are in 50 increments."
sayplayer {player_steamid} "[00FFFF] 1 - 9mm Ammo $950"
sayplayer {player_steamid} "[00FFFF] 2 - .44 Magnum Ammo $1,500 "
sayplayer {player_steamid} "[00FFFF] 3 - 7.62mm Ammo $1,650"
sayplayer {player_steamid} "[00FFFF] 4 - Shotgun Ammo $1,650"
----------
Shop Ammo 9mm
EQUALS:!shop ammo 1||HASFUNDS:{player_steamid},950
.BANKWITHDRAW:{player_steamid},950
bc-give {player_steamid} ammo9mmBullet /c=50
sayplayer {player_steamid} "[00FFFF] Purchased (50) 9mm Bullets!"
sayplayer {player_steamid} "[00FFFF] Your new balance is {bank_balance}"
----------
Shop Ammo 44 Magnum
EQUALS:!shop ammo 2||HASFUNDS:{player_steamid},1500
.BANKWITHDRAW:{player_steamid},1500
bc-give {player_steamid} ammo44MagnumBullet /c=50
sayplayer {player_steamid} "[00FFFF] Purchased (50) 44 Magnum Bullets!"
sayplayer {player_steamid} "[00FFFF] Your new balance is {bank_balance}"
----------
Shop Ammo 7.62mm
EQUALS:!shop ammo 3||HASFUNDS:{player_steamid},1650
.BANKWITHDRAW:{player_steamid},1650
bc-give {player_steamid} ammo762mmBulletFMJ /c=50
sayplayer {player_steamid} "[00FFFF] Purchased (50) 7.62mm Bullets!"
sayplayer {player_steamid} "[00FFFF] Your new balance is {bank_balance}"
----------
Shop Ammo Shotgun Shells
EQUALS:!shop ammo 4||HASFUNDS:{player_steamid},1650
.BANKWITHDRAW:{player_steamid},1650
bc-give {player_steamid} ammoShotgunShell /c=50
sayplayer {player_steamid} "[00FFFF] Purchased (50) Shotgun Shells!"
sayplayer {player_steamid} "[00FFFF] Your new balance is {bank_balance}"
 

badplayer

New Member
JFF Member
Hi, can the cooldown and alevel conditions be used on any server manager or are they only used on RAT?
 

Trekkan

JFF Administrator
Staff member
Hi, can the cooldown and alevel conditions be used on any server manager or are they only used on RAT?
The entire event system here is RAT only. However, the default game server does have Admin levels, but how they might be used (or not), is entirely up to the server manager.
 
Top