Code:
// Fortress Cookies - Example text file (BETA)
// by MacNetron for the PlayStuff.net community.
// Implemented keywords:
// {CLIENT} - Name of the client
// {RANDOM_CLIENT} - Name of a random client other than client itself
// {RANDOM_ENEMY} - Name of a random client of the other team
// {CURRENTMAP} - Name of the current map
// {PREVIOUSMAP} - Name of the previous map
// {COUNTRY} - Name of the client's country, based on ip
// {RANDOM_COUNTRY} - Name of a random country, other than client's country
// {CLASS} - Name of the class of the client
// {RANDOM_CLASS} - Name of a random class, other than client's class
// {CLIENT_TIME} - The time the client is connected, nicely formatted in readable format
// {RANDOM:min,max} - Gets a random value between min and max
// {CHOOSE:listname} - Gets a random value from a list
// {HTMLPAGE:url} - Shows the url in the TF2 browser
// all other normal commands, like {SM_NEXTMAP}
// The KeyValue tree cannot handle keys with "/". So FortressCookies replaces all "/" with "!".
// This means if you have a key like "!teamplay", you'll get "/teamplay" for free and vice versa.
// Maximum of 16 words on choose_xx kv's
"FortressCookies"
{
"timeright"
{
"chat_check" "equals"
"text" "[FC] The timeright on this map is {RANDOM:12,96} MB or {RANDOM:128,512} frags"
}
"whoami"
{
"chat_check" "equals"
"text" "[FC] You are the {CHOOSE:choose_1} {CLIENT} trying to {CHOOSE:choose_2} {RANDOM_ENEMY}"
"choose_1" "epic,brave,coward,stupid,little,big,small,tiny,awesome"
"choose_2" "kill,frag,blow up,evade,hide from,get away from,tickle,surprise,pay back"
}
"whoaminot"
{
"chat_check" "equals"
"text" "[FC] You are definitely not the {CHOOSE:choose_1} {RANDOM_CLIENT}"
"choose_1" "bald,brave,stupid,little,big,small,tiny,awesome,puny,proud"
}
"whereami"
{
"chat_check" "equals"
"text" "[FC] {CLIENT} is currently in {COUNTRY}"
}
"whereaminot"
{
"chat_check" "equals"
"text" "[FC] {CLIENT} is {CHOOSE:choose_1} not in {RANDOM_COUNTRY}"
"choose_1" "certainly,most likely,very probably,stupidly enough"
}
"whatami"
{
"chat_check" "equals"
"text" "[FC] Ssssttt! {CLIENT} might be a {CLASS}!!"
}
"whataminot"
{
"chat_check" "equals"
"text" "[FC] Beware! {CLIENT} wants to believe us (s)he is a {RANDOM_CLASS}!!"
}
"whenami"
{
"chat_check" "equals"
"text" "[FC] Dear {CLIENT}, please stay another {CLIENT_TIME} :)"
}
"whenaminot"
{
"chat_check" "equals"
"text" "[FC] This server is closed on februari 29th"
}
"stats,rank"
{
"chat_check" "equals"
"text" "[FC] Stats are for sissies! You are ranked {RANDOM:54321,654321} on this server"
}
"rtv,rockthevote,voteban"
{
"chat_check" "equals"
"text" "[FC] This server is not interested in your opinion!"
}
"i blame"
{
"chat_check" "contains"
"text" "[FC] Blame who you like, the server knows {CLIENT} is the only one to blame"
}
"teams,teams!"
{
"chat_check" "equals"
"text" "[FC] Stop whining and play better FOR THE TEAM so they won't leave you!"
}
"asshole,cock,cunt,fuck,twat"
{
"chat_check" "contains"
"text" "[FC] Dear {CLIENT}, that is considered swearing! Mind the language!"
}
"map"
{
"chat_check" "equals"
"text" "[FC] Server thinks we went from {PREVIOUSMAP} to {CURRENTMAP} and next will be {SM_NEXTMAP}"
}
"!teamplay,teamplay"
{
"chat_check" "equals"
"text" "{HTMLPAGE:http://playstuff.net/threads/969-TEAMPLAY-IS}"
}
"happy new year,happy newyear"
{
"chat_check" "contains"
"text" "[FC] Playstuff.net wishes {CLIENT} a {CHOOSE:choose_1} {CHOOSE:choose_2}!"
"choose_1" "happy,awesome,jolly good,frag full"
"choose_2" "2010,new year"
}
}
Bookmarks