Welcome Guest ( Log In | Register)



 
Closed TopicStart new topic
> Counter-strike Buy Script!, Fast, easy, and you're in control!
Extortioner
post Mar 25 2005, 01:34 PM
Post #1


Newbie [Level 2]
**

Group: Members
Posts: 33
Joined: 6-January 05
Member No.: 3,145



Buy Script

This Script Tutorial will help you write a basic Buy Script by yourself. This is a great place to start for beginners and a good refresher for the "Old School" Scripters. I tried to break each part down Step by Step so you can see the Script start to take shape. So lets get started!


Step #1 - Making the Common Aliases

We will start by creating the common aliases that will be used throughout the Buy Script.

The basic commands of a Buy Script include:


1. ( buy )
- This opens the buy menu

2. ( menuselect )
- These select whatever is in that slot

3. ( ; )
- A semi-colon separates each part of the alias

4. ( " " )
- Quotation Marks tell the game when an alias starts and ends

5. ( / )
- This slash can be put in to comment out that line (Use when you want to describe something for yourself. The game will not read that line)


(Open up Notepad and follow along!)

Now we will make the aliases for the menuselects to make your script easier to read and with less text.

alias ms1 "menuselect 1"
alias ms2 "menuselect 2"
alias ms3 "menuselect 3"
alias ms4 "menuselect 4"
alias ms5 "menuselect 5"
alias ms6 "menuselect 6"
alias ms7 "menuselect 7"
alias ms8 "menuselect 8"
alias ms9 "menuselect 9"
alias mclr "slot10; wait; wait; slot10"


Step #2 - Making a Weapon Alias

We will now make an alias for your first weapon. We will use an MP5 for an example. The MP5 is located in the Buy menu, menuselect 3, then menuselect 1. The alias looks like this:

alias +MP5 "buy; ms3; ms1"
alias -MP5 "mclr"

I use the (+) and (-) signs for closing the menus. The (+) alias buys the items when you press the key and the (-) closes the menus when you release the key. I use the alias "mclr" from above in the (-) alias, since it is the alias I made to close the menus. I also use the abbrievated menuselect aliases ms3 and ms1, instead of retyping menuselect everytime.

Now repeat that for all weapons, it should look like this:

//Pistols - Menuselect 1//
alias +USP "buy; ms1; ms1"
alias -USP "mclr"
alias +GLOCK "buy; ms1; ms2"
alias -GLOCK "mclr"
alias +EAGLE "buy; ms1; ms3"
alias -EAGLE "mclr"
alias +P228 "buy; ms1; ms4"
alias -P228 "mclr"

//Shotguns - Menuselect 2//
alias +M3 "buy; ms2; ms1; mclr"
alias -M3 "mclr"
alias +XM1014 "buy; ms2; ms2; mclr"
alias -XM1014 "mclr"

//Submachineguns - Menuselect 3//
alias +MP5 "buy; ms3; ms1; mclr"
alias -MP5 "mclr"
alias +TMP "buy; ms3; ms2; mclr"
alias -TMP "mclr"
alias +P90 "buy; ms3; ms3; mclr"
alias -P90 "mclr"
alias +UZI "buy; ms3; ms4; mclr"
alias -UZI "mclr"

//Assault Rifles - Menuselect 4//
alias +AK47 "buy; ms4; ms1; mclr"
alias -AK47 "mclr"
alias +SIG "buy; ms4; ms2; mclr"
alias -SIG "mclr"
alias +M4 "buy; ms4; ms3; mclr"
alias -M4 "mclr"
alias +AUG "buy; ms4; ms4; mclr"
alias -AUG "mclr"

//Sniper Rifle - Menuselect 4//
alias +SCOUT "buy; ms4; ms5"
alias -SCOUT "mclr"
alias +AWP "buy; ms4; ms6"
alias -AWP "mclr"
alias +G3SG1 "buy; ms4; ms7"
alias -G3SG1 "mclr"

//Machinegun - Menuselect 5//
alias +M249 "buy; ms5; ms1"
alias -M249 "mclr"

//End Weapons Aliases//
At this point you can bind any of these if you want like:

bind "x" "+AK47"
bind "y" "+M4"
bind "z" "+AWP"

Most people don't want just a weapon, but if you want just a weapon bind those.


Step #3 - Making the Equipment Aliases

Now that we have the weapons aliased, lets do the equipment (menuselect 8)(buyequip). The same rules apply to the equipment. You can name the aliases whatever you want, but usually you want to be able to identify the alias by the name you give it. (ie) pammo is Primary ammo, flashg is a flashbang, helmet is armor with a helmet, get it? So the equipment aliases should look something like this:

alias +pammo "buy; ms6" //buys full primary ammo
alias -pammo "mclr"
alias +sammo "buy; ms7" //buys full secondary ammo
alias -sammo "mclr"
alias +armor "buy; ms8; ms1" //buy armor - $650
alias -armor "mclr"
alias +helmet "buy; ms8; ms2" //buy armor+helmet - $1000
alias -helmet "mclr"
alias +flashg "buy; ms8; ms3" //buy flashbang - $200
alias -flashg "mclr"
alias +hegren "buy; ms8; ms4" //buy he grenade - $300
alias -hegren "mclr"
alias +smokeg "buy; ms8; ms5" //buy smoke grenade - $300
alias -smokeg "mclr"
alias +defuser "buy; ms8; ms6" //buy defuse kit - $200
alias -defuser "mclr"
alias +nvgs "buy; ms8; ms7" //buy nvgs - $1250
alias -nvgs "mclr"

If you want to bind just equipment, here are some examples:

bind "x" "+armor"
bind "y" "+hegren"
bind "z" "+nvgs"

Ok, now I am going to make more equipment aliases to put in other aliases later. You ask why. This is why. Later you will be creating aliases with multiple items in them; so to make things more organized I use these to put in my multiple alias buys:

alias ammo1 "buy; ms6" //buys full primary ammo
alias ammo2 "buy; ms7" //buys full secondary ammo
alias arm "buy; ms8; ms1" //buy armor - $650
alias helm "buy; ms8; ms2" //buy armor+helmet - $1000
alias flash "buy; ms8; ms3" //buy flashbang - $200
alias he "buy; ms8; ms4" //buy he grenade - $300
alias smok "buy; ms8; ms5" //buy smoke grenade - $300
alias defus "buy; ms8; ms6" //buy defuse kit - $200
alias nvg "buy; ms8; ms7" //buy nvgs - $1250

I don't need the menu cleared until the end so these will be placed in another alias later. If you want to just buy the equipment, use the aliases with the (+)'s above.


Step #4 - Making Multiple Buy Aliases

Now lets make multiple buy aliases that buy the weapon + armor + primary ammo. Once again I will use MP5 for an example:

You will want to name these different than the ones before.

alias +MP5X "buy; ms3; ms1; arm; ammo1"
alias -MP5X "mclr; wait, wait; mclr"

Lets dissect this alias so it makes sense to everyone:

alias +MP5X "buy; ms3; ms1; arm;ammo1"

I buy an MP5 in bold,
I buy armor here in italics,
I buy full primary ammo where it is underlined

The armor and ammo are using the equipment aliases from above.

alias -MP5X "mclr; wait, wait; mclr"

I use the mclr alias and some waits since we buy more than one item. One is probably safe, but I just made two for double protection from the dreaded open menu.

Now lets make an alias to buy the weapon + armor + full primary ammo for all the submachineguns and assault rifles:

alias +MP5X "buy; ms3; ms1; arm; ammo1"
alias -MP5X "mclr; wait, wait; mclr"
alias +TMPX "buy; ms3; ms2; arm; ammo1"
alias -TMPX "mclr; wait, wait; mclr"
alias +P90X "buy; ms3; ms3; arm; ammo1"
alias -P90X "mclr; wait, wait; mclr"
alias +UZIX "buy; ms3; ms4; arm; ammo1"
alias -UZIX "mclr; wait, wait; mclr"
alias +AK47X "buy; ms4; ms1; arm; ammo1"
alias -AK47X "mclr; wait, wait; mclr"
alias +SIGX "buy; ms4; ms2; arm; ammo1"
alias -SIGX "mclr; wait, wait; mclr"
alias +M4X "buy; ms4; ms3; arm; ammo1"
alias -M4X "mclr; wait, wait; mclr"
alias +AUGX "buy; ms4; ms4; arm; ammo1"
alias -AUGX "mclr; wait, wait; mclr"

Now to bind these you would do it like this:

bind "x" "+MP5X"
bind "y" "+UZIX"
bind "z" "+SIGX"

Do you see how that works now. So you can make any combination you want and make an alias and bind it to a key.


Step #5 - Multiple Equipment Aliases

Lets now do some multiple equipment aliases (use the equipment aliases from above to make life easier).

alias +3grens "he; smok; flash"
alias -3grens "mclr; wait; wait; mclr"

bind "x" "+3grens"

This alias buys one of each of the 3 grenades.

alias +ctstuff "helm; defus; he; smok; flash"
alias -ctstuff "mclr; wait; wait; mclr"

bind "x" "+ctstuff"

This alias buys a helmet/armor, a defuse kit, and one of each grenade.

**Try some combinations on your own**


Step #6 - Make your Own

I think we have touched on all the areas for making a buy script. Now it is your choice for what you want in it. Make your own personal combinations and bind them to the keys you want. I usually have my 6 favorite weapons with armor and full ammo, then I have addition aliases for grenades, ammo, and armor. I have seen many Buy Scripts out there that are very complicated or try to do too much. Try these steps and make your own script that is easy and customizable.
ENJOY! biggrin.gif
Go to the top of the page
 
+Quote Post
Good Grief Graph...
post Mar 25 2005, 05:07 PM
Post #2


(--_--)
********

Group: Members
Posts: 164
Joined: 4-December 04
From: Millersburg, Ohio
Member No.: 2,547



You just copied and pasted that entire post from http://www.counter-script.net/index.php?id=16
Go to the top of the page
 
+Quote Post
OpaQue
post Mar 26 2005, 08:10 AM
Post #3


Administrator
Group Icon

Group: Admin
Posts: 1,459
Joined: 11-June 04
From: Somewhere in Time & Space.
Member No.: 1



USER FINED WITH CREDITS WORTH 26 DAYS!

USER NOW HAS (-)19 CREDITS!!

DO NOT COPY HENCE FORTH!
Go to the top of the page
 
+Quote Post

Closed TopicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Server Of Counter Strike 1.4(4)
  2. Need Info For Counter Strike 2 Pls(13)
  3. Counter-strike(64)
  4. Maybe Someone Could Help...?(14)
  5. Need Cheat Codes(36)
  6. Counter Strike For Xbox Live(9)
  7. Counter Strike(19)
  8. Counter Strike Source Ragdoll Physics(6)
  9. Your Favorite Gun In Counter Strike(64)
  10. Your Counter-strike Soruce Gamertag(18)
  11. Counter Strike Bragging Rights!(2)
  12. Counter-strike Model Maker(11)
  13. Have Counter Strike Version For Linux Paltforms?(2)
  14. Counter Strike Error Code 127(0)
  15. Counter-strike Pro Mod(1)
  1. How To Make A Counter Strike 1.6 Dedicated Server(16)
  2. Counter-strike Recommendations(6)
  3. Cs:s Counter-strike: Source Gun Tips(9)
  4. Invalid Counter Strike Cd Key Error...(6)
  5. Counter-stike Promod!(0)
  6. Tutorial Build Your Own Cs Server 1.6 Steam(14)
  7. Counter Strike Dedicated Server(0)
  8. Counter Strike *xbox)(0)
  9. Counter-strike:fun?(5)
  10. Counter-strike 1.6(1)
  11. Post Your Counter Strike Or Cs:s Stories Of Ownage!(0)


 



- Lo-Fi Version Time is now: 6th September 2008 - 01:57 AM