Playing Source Since the Beginning of Time
Welcome, %1$s. Please login or register.
Did you miss your activation email?
April 18, 2024, 04:38:42 AM

:    
Want to join us in Vent? Ask an admin for info while in game or PM them here on the forums!
74681 6615 681
: kevinson55
*
+  The Elders' House of Pain
|-+  Public Forum
| |-+  MDK's Board of useless crap!!!! (Moderator: MDK22)
| | |-+  Autobuy
« previous next »
: [1]
: Autobuy  ( 1422 )
MDK22
No Job, No Money, No Car
Moderator
Forum Pro
*****

Karma: +2/-8
Offline Offline

: 499


AOL Instant Messenger - Uberarchangel
« : July 05, 2006, 04:06:23 PM »

Auto buy

The way autobuy works is it buys the things you list in the order you listed them. There is no logic thing that processes the amount of cash you have then uses that to do the following. It is because of the order that you want to put the most exspensive thing first if it can not be bought it will go to the next most exspensive part.

The commenting is the same as with configs u can only use //.


Here is what my autobuy looks like:

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

// This list of "buy aliases" is used by the AutoBuy system.
// The system begins with the first alias in the list, and attempts to purchase it.
// If a primary weapon is successfully purchased, all later primary weapon aliases are skipped.
// Similarly, secondary weapon buy alias are skipped once a seconary weapon has been purchased.
// You can customize this file to reflect your weapon and equipment preferences and priorities.
//
// The console command for autobuy is "autobuy"
//
// The available buy aliases and their names as in real life are:
// (Many weapons have more than one buy alias)
//
//__________________________________________________________________________________________________________________________________
//                     |
//      Pistol Name            |            Price - Ammo
//                     |
//                     |
//   usp       : H&K USP .45 Tactical (USP)      |   $500;  12 rounds per clip, $50 per clip, 48 rounds total. Initial
//                     |
//   glock     : 9x19 mm Sidearm (GLOCK 18C)    |   $400;  20 rounds per clip, $20 per clip, 90 rounds total. Initial
//                     |
//   deagle    : IMI Desert Eagle .50 AE        |   $650;   7 rounds per clip, $40 per clip, 35 rounds total.
//                     |
//   p228      : SIGARMS Sig P228 Compact      |   $600;  13 rounds per clip, $50 per clip, 52 rounds total.
//                     |
//   elite     : Beretta 96G Elite IA 40 S&W (T)   |   $1000; 30 rounds per clip, $20 per clip, 120 rounds total.
//                     |
//   fiveseven : Fabrique Nationale Five-seveN (CT)   |   $750;  20 rounds per clip, $50 per clip, 100 rounds total.
//                     |
//______________________________________________________|___________________________________________________________________________
//                     |
//      Shotgun Name            |            Price - Ammo
//                     |
//                     |
//   m3     : Benelli M3 Super 90 Combat (Pump)   |   $1700; 8 rounds per breach, $65 per breach, 32 rounds total.
//                     |
//   xm1014 : Benelli M4 Super 90 XM1014 (Auto)      |   $3000; 7 rounds per breach, $65 per breach, 32 rounds total.
//                     |
//______________________________________________________|___________________________________________________________________________
//                     |
//      Submachine Gun Name         |            Price - Ammo
//                     |
//                     |
//   mp5navy : Heckler & Koch MP5 9mm Navy       |   $1500; 30 rounds per clip, $20 per clip, 100 rounds total.
//                     |
//   tmp     : Steyr Tactical Machine Pistol 9mm (CT)|   $1250; 30 rounds per clip, $20 per clip, 120 rounds total.
//                     |
//   p90     : Fabrique Nationale FN P90 5.7x28mm   |   $2350; 50 rounds per clip, $50 per clip, 100 rounds total.
//                     |
//   mac10   : Ingram MAC-10 .45ACP (T)      |   $1400; 30 rounds per clip, $25 per clip,  96 rounds total.
//                     |
//   ump45   : Heckler & Koch UMP .45ACP      |   $1700; 25 rounds per clip, $25 per clip, 100 rounds total.
//                     |
//______________________________________________________|___________________________________________________________________________
//                     |
//      Assault Rifles Name         |            Price - Ammo
//                     |
//                     |
//   famas : GIAT FAMAS 5.56 (CT)         |   $2250, 25 rounds per clip, $60 per clip,  90 rounds total.   
//                     |
//   galil : IMI Galil 5.56 (T)         |   $2000, 35 rounds per clip, $60 per clip,  90 rounds total.
//                     |
//   ak47  : AK-47 7.62 (CV-47) (T)         |   $2500; 30 rounds per clip, $80 per clip,  90 rounds total.
//                     |
//   m4a1  : Maverick M4A1 Carbine (Colt) (CT)   |   $3100; 30 rounds per clip, $60 per clip,  90 rounds total.
//                     |
//   aug   : Steyr Mannlicher Steyr AUG(Bullpup) (CT)|   $3500; 30 rounds per clip, $60 per clip,  90 rounds total.
//                     |
//   sg552 : SIGARMS SIG 552 5.56 Commando (T)   |   $3500; 30 rounds per clip, $60 per clip,  90 rounds total.
//                     |
//______________________________________________________|___________________________________________________________________________
//                     |
//      Sniper Rifles Name         |            Price - Ammo
//                     |
//                     |
//   scout : Steyr Mannlicher Steyr Scout      |   $2750; 10 rounds per clip, $80 per clip,  60 rounds total.
//                     |
//   awp   : Accuracy Int. Arctic Warfare Magnum   |   $4750; 10 rounds per clip, $125 per clip, 30 rounds total.
//                     |
//______________________________________________________|___________________________________________________________________________
//                     |
//      Auto Sniper Rifles Name         |            Price - Ammo
//                     |
//                     |
//   sg550 : SIGARMS SIG 550 (CT)         |   $4200; 30 rounds per clip, $60 per clip,  90 rounds total.
//                     |
//   g3sg1 : Heckler & Koch G3 SG-1 (T)      |   $5000; 20 rounds per clip, $80 per clip,  60 rounds total.
//                     |
//______________________________________________________|___________________________________________________________________________
//                     |
//      Machine Gun Name         |            Price - Ammo
//                     |
//                     |
//   m249  : Fabrique Nationale M249 5.56 PARA   |   $5750; 100 rounds per clip, $60 per clip, 200 rounds total.
//                     |
//______________________________________________________|___________________________________________________________________________
//                     |
//      Armor Name            |            Price - Description
//                     |
//                     |
//   vest     : Kelvar vest            |   $650;  Only buy the Kevlar-only if you can't afford the Kevlar-helmet.
//                     |
//   vesthelm : Kevlar vest and helmet      |   $1000; Don't leave home without it.
//                     |
//   shield   : Riot shield (CT)         |   $2200; One thing that is ridiculous and i hope never gets added.
//______________________________________________________|___________________________________________________________________________
//                     |
//      Gernades Name            |            Price - Description
//                     |
//                     |
//   flashbang    : Flashbang grenade      |   $200; 2 maximum. Enemies can't shoot you when they are blind or can they.
//                     |
//   hegrenade    : High-explosive grenade      |   $300; 1 maximum. Sometimes I wish you could headshot with this again.
//                     |
//   smokegrenade : Smoke grenade         |   $300; 1 maximum. Perfect for creating confusions and distractions.
//______________________________________________________|___________________________________________________________________________
//                     |
//      Equipment Name            |            Price - Description
//                     |
//                     |
//   defuser : Defuse kit (CT)         |   $200;  Time is everything. This can make or break a round.
//                     |
//   nvgs    : Night vision goggles         |   $1250; This is pointless unless map is really dark or you just like green.
//______________________________________________________|___________________________________________________________________________



//   |------What You Buy------|

//           |
//           V   


//_______________________________________________
//      Scrim - Match Stuff

     
      defuser

      usp
      secammo

      hegrenade

//_______________________________________________
//      Armor

     
      vesthelm
      vest

//_______________________________________________
//      Primary Weapons


      m4a1
      ak47
      mp5navy

      primammo
//_______________________________________________
//      Gernades


      flashbang
   //   smokegrenade
   //   flashbang

echo *
echo *
echo Autobuy written by MDK22 10/26/05
echo *
echo *


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

To make this u use notepad also and save it as autobuy.txt

Saving your Config

Go to File.

Save As.

Change so      Save as type: All Files.

Under save in go to:

     My computer.

     C:

     Program Files

     Valve    (if valve is not there go to steam)

     Steam

     SteamApps

     Your Account Name.

     Counter Strike: Source.

     cstrike.

Name it      autobuy.txt

Click Save.
« : June 26, 2008, 06:09:21 PM MDK22 »

WidowMaker
Supreme Master
Administrator
Godlike
*****

Karma: +17/-3
Offline Offline

: 1622


AOL Instant Messenger - craygo69
« #1 : July 06, 2006, 10:19:47 AM »

Here is my buy script, as well as some other functions

// Alias for developer mode
alias dev1 "developer 1"
alias dev0 "developer 0"
// Set aliases for items
alias am1      "buy primammo"
alias am2      "buy secammo"
alias dfk      "buy defuser"
alias he      "buy hegrenade"
alias fb      "buy flashbang"
alias armor      "buy vesthelm;buy vest"
alias m4      "buy m4a1"
alias ak      "buy ak47"
alias fam      "buy famas"
alias gal      "buy galil"
alias styer      "buy aug"
alias sig      "buy sig552"
alias sg      "buy sg550"
alias g3s      "buy g3sg1"
alias mp5      "buy mp5navy"
alias deag      "buy deagle"
alias snip      "buy awp"
// Set aliases for attack(mouse1 by default)
alias at "+attack"
alias at2 "-attack"
// Set aliases for attack2(mouse2 by default)
alias at3 "+attack2"
alias at4 "-attack2"
//***************** Set aliases for buying objects ******************//
//****** Will buy the correct gun depending on team you are on ******//
// buy deagle, ammo, armor, he, 2 flashes, defuse kit
alias deaglesuit   "deag;am2;armor;he;fb;fb;dfk;"

// buy Colt or AK,ammo, armor, he, 2 flashes, defuse kit
alias coltaksuit   "m4;ak;am1;armor;he;fb;fb;dfk;"

// buy aug or sig,ammo, armor, he, 2 flashes, defuse kit
alias augsigsuit   "styer;sig;am1;armor;he;fb;fb;dfk;"

// buy Galil or Famas, ammo, armor, he, 2 flashes, defuse kit
alias galfamsuit   "gal;fam;am1;armor;he;fb;fb;dfk;"

// buy MP5,ammo, armor, he, 2 flashes, defuse kit
alias mpnavysuit   "mp5;am1;armor;he;fb;fb;dfk;"

// If you survive the round this will restock you
alias restockall   "am1;armor;he;dfk;fb;fb;am2"

// buys AutoSnipe,ammo, armor, he, 2 flashes, defuse kit
alias autosnipe      "sg;g3s;am1;armor;he;fb;fb;dfk;"

// buy AWP,ammo, armor, he, 2 flashes, defuse kit, sec ammo
alias awpage      "snip;am1;armor;he;fb;fb;dfk;am2;"

// Armor and sec ammo(for scrims on pistol round
alias ammosuit      "armor;am2;"

// Alias to select Secondary Weapon
alias sec "slot2; at; wait; wait; at2"

// Alias to select Primary weapon
alias prim "slot1; at; wait; wait; at2"

// Alias to select Knife
alias sec2 "slot3; at; wait; wait; at2"

// Alias to change function of wheelmouse down
alias change "bind MWHEELDOWN sec"
alias change2 "bind MWHEELDOWN sec2"

// Setup the WheelMouse down function
alias switch "unbind MWHEELDOWN; change; dev1; echo [Handgun]; dev0; alias mode_t switch2"
alias switch2 "unbind MWHEELDOWN; change2; dev1; echo [Knife]; dev0; alias mode_t switch"
alias "mode_t" "switch"

// Alias for super Jump(Really just jump then duck
alias +sjump "+jump;+duck"
alias -sjump "-jump;-duck"

//Cvar script to toggle rates depending on map or server
alias sfastc "dev1; echo ** 100 Tickrate Cvar's Engaged **; dev0; rate 30000; cl_updaterate 101; cl_cmdrate 101; cl_interpolate 1; cl_interp 0.01; cl_smooth 0; alias cmdrate_tgl slowc"
alias fastc "dev1; echo ** 66 Tickrate Cvar's Activated **; dev0; rate 20000; cl_updaterate 67; cl_cmdrate 67; cl_interpolate 1; cl_interp 0.01; cl_smooth 0; alias cmdrate_tgl sfastc"
alias slowc "dev1; echo ** Slow NET Activated **; dev0; rate 20000; cl_updaterate 45; cl_cmdrate 45; cl_interpolate 1; cl_interp 0.01; cl_smooth 0; alias cmdrate_tgl fastc"
alias "cmdrate_tgl" "slowc"

// set all your aliases to keys
bind "i"        "mode_t"
bind "p"           "cmdrate_tgl"
bind "F9"         "autosnipe"
bind "F3"         "deaglesuit"
bind "F8"         "coltaksuit"
bind "F5"       "augsigsuit"
bind "F6"       "galfamsuit"
bind "F4"       "mpnavysuit"
bind "F10"      "ammosuit"
bind "F11"      "restockall"
bind "F12"      "awpage"
bind space      "+sjump"
bind "MWHEELUP" "prim"

I set up the toggle for wheel mouse down because, when in the gun game i like for my knife to come out when I hit the wheelmouse down, but while in the regular pub I like the handgun to come out, so I just hit "i" to do it. Also got the toggle for the rates so I can change it depending on the map. If I am getting shitty fps on a certain map I just hit my "p" key and my rates are adjusted.

Doing it this way allows you to do things on the fly. You can setup an autoexec.cfg to load up at start but you would have to type everything in console to change the settings. This way things are at the tip of your finger. the middle one in My case giving MDK the big bird man :thebirdman: :thebirdman: :thebirdman:

My scripts SO kick your script's ASS MDK. muhahahahahah MDK :flamed: Widow

Widow
« : July 06, 2006, 10:23:40 AM WidowMaker »



: [1]  
« previous next »
:
Powered by MySQL Powered by PHP SMF 2.0.18 | SMF © 2021, Simple Machines Valid XHTML 1.0! Valid CSS!