Left 4 Dead 2

Left 4 Dead 2

评价数不足
ShopX - Complete Guide
由 Lightymoon 制作
This guide is made for my mod ShopX
   
奖励
收藏
已收藏
取消收藏
Intro
Welcome to the ShopX – Complete Guide
This guide explains how to use ShopX.

What Is ShopX
ShopX is the upgraded version of my old Points Shop, I’ve reworked it from the ground up, fixing issues, adding features, and including every single in-game item.

If Points Shop is new to you, here’s the idea behind it:
  • Earn points by killing infected or helping teammates.
  • Spend points to buy weapons, healing items, ammo, upgrades, and more.

What Changed?
Almost everything! Here’s what’s new in ShopX compared to the older version:

  • Persistent Points: Points now carry over between maps without resetting.

  • All Items Included: Added every melee, throwables, lasers, ammo packs, self-heal, self-revive, and more.

  • Multiple Aliases: You can type !buy molotov or !buy molly — both will work!

  • Case & Space Insensitive: Type !BuY MolLy or !buy molly, it all works as long as the spelling is correct.

  • Audio Feedback: Plays a sound when you successfully buy an item.

  • Stock System: Each player now has limited stock per map — no more unlimited buying. Stock resets automatically each new map.

Now let's dive into it!
Features
ShopX comes with a ton of cool stuff to make the game more fun and easy to use. Here’s what it does:

  • All items in the game: Every single weapon, throwable, healing item, upgrade, and melee is here. If it exists in L4D2, you can probably buy it.

  • Simple commands: Use !buy, !b, !s, or !shop — they all work the same, so type whatever you like.

  • Earn points by playing: Kill commons, specials, witches, tanks, or help your team by healing, reviving, rescuing, or stopping grabs — all of that gives you points.

  • Points carry over maps: Your points won’t reset every time the map changes. Finally.

  • Stock system: You can’t spam-buy the same item forever. Each player has a limit per map, and it resets when a new map starts.

  • Not picky about commands: Type !buy molly, !buy Molotov, or even !BuY molLy it all works as long as you spell it right.

  • Multiple names for items: Don’t like typing full names? Shortcuts like !buy molly work for Molotovs, !buy mag works for Magnum, and so on.

  • See prices anytime: Use !list <category> to see all items in that group with their price, stock limit and items Buy Names.

  • Self-heal & self-revive: Stuck alone? Heal yourself or even revive yourself if you have enough points.

  • Ammo refill: Out of ammo? Buy a refill instead of hunting for more guns.

  • Upgrades included: Things like incendiary ammo, explosive ammo, and laser sights are all in the shop.

  • Sound effects: A little sound plays every time you buy something so you know it worked.
Commands & How to Use
Using ShopX is super easy. Here’s everything you need to know to start buying stuff right away:

  • Buy items directly:
    Type !buy / !shop / !b / !s followed by the item name (or one of its aliases) to buy it.
    Example:
    !buy ak47
    You can also type it with caps or spaces like:
    !BuY AK47
    It doesn’t matter it still works.


    Aliases mean you don’t always have to type the full name. For example:
    • !buy molotov or !buy molly → Buys a Molotov
    • !buy magnum, !buy mag, or !buy deagle → Buys a Magnum
    • !buy medkit or !buy kit → Buys a Medkit


  • See what’s available in each category:
    Use !list followed by a category name to see all items, prices, and stock for that group.
    Example:
    !list rifles
    Type "!list" to see available categories in game, they're easy to memorize (categories names are also insensitive)
    pistols, shotguns, smgs, rifles, snipers, heavy, melee, healing, throwables, upgrades, others


  • Check how many points you have:
    Type any of these to see your points:
    !points !p !check


  • Stock limits per map:
    Each item has a limited stock per player per map, so you can’t spam-buy infinite medkits or throwables.
    The stock resets automatically when a new map starts.


  • Quick reference:
    • !points / !check / !p→ Check your points
    • !list → Show all available categories
    • !list <category> → Shows all items in this category, with price, limit and Buy Names
    • !shop / !buy / !s / !b → Buy commands
Categories & Items
[ The "Buy Names" are what you should type after !buy so you can purchase the items ]

Pistols

Item
Cost
Buy Names
Stock Limit
Pistol
25 pts
pistol, pistols
Limit: 2
Magnum
75 pts
magnum, deagle, mag
Limit: 2

SMGs

Item
Cost
Buy Names
Stock Limit
UZI
150 pts
uzi
Limit: 2
Silenced SMG
175 pts
silenced smg, silentsmg, ssmg
Limit: 2
MP5
150 pts
mp5
Limit: 2

Shotguns

Item
Cost
Buy Names
Stock Limit
Pump Shotgun
100 pts
pump shotgun, pump, pshotgun
Limit: 2
Chrome Shotgun
100 pts
chrome shotgun, chrome, cshotgun
Limit: 2
Auto Shotgun
200 pts
auto shotgun, auto, ashotgun
Limit: 2
SPAS Shotgun
225 pts
spas, spasshotgun, sshotgun
Limit: 2

Rifles

Item
Cost
Buy Names
Stock Limit
M16 Rifle
200 pts
m16
Limit: 2
AK47 Rifle
225 pts
ak, ak47
Limit: 2
Desert Rifle
200 pts
desert rifle, desert, drifle
Limit: 2
SG552
200 pts
sg552, sg
Limit: 2

Snipers

Item
Cost
Buy Names
Stock Limit
Hunting Rifle
200 pts
hunting rifle, hunt, hrifle
Limit: 2
Military Sniper
200 pts
military sniper, msniper, military, mili
Limit: 2
Scout Sniper
100 pts
scout
Limit: 2
AWP Sniper
150 pts
awp
Limit: 2

Heavy Weapons

Item
Cost
Buy Names
Stock Limit
Grenade Launcher
300 pts
grenade launcher, gl
Limit: 1
M60
300 pts
m60
Limit: 1

Throwables

Item
Cost
Buy Names
Stock Limit
Molotov
75 pts
molotov, molly, mol
Limit: 3
Pipe Bomb
75 pts
pipe bomb, pipe
Limit: 3
Vomitjar
75 pts
vomitjar, bile, vomit
Limit: 3

Healing

Item
Cost
Buy Names
Stock Limit
Medkit
200 pts
medkit, kit, aid
Limit: 3
Pain Pills
75 pts
pain pills, pills, p
Limit: 3
Adrenaline
75 pts
adrenaline, adre
Limit: 3
Defibrillator
250 pts
defib, defibrillator
Limit: 1

Upgrades

Item
Cost
Buy Names
Stock Limit
Incendiary Pack
100 pts
incendiary pack, firepack, inc
Limit: 2
Explosive Pack
100 pts
explosive pack, exp, explosive
Limit: 2
Lasersight
100 pts
laser, lasersight, sight
Limit: 3
Lasersight Pack
200 pts
laserpack, lasersight pack, sight pack, laser pack
Limit: 1

Others

Item
Cost
Buy Names
Stock Limit
Self Revive
400 pts
selfrevive, revive, reviveme
Limit: 1
Self Heal
500 pts
selfheal, heal, healme
Limit: 1
Primary Ammo
150 pts
ammo, refill
Limit: 3

Melee Weapons

Item
Cost
Buy Names
Stock Limit
Baseball Bat
100 pts
baseball bat, bbat
Limit: 2
Katana
100 pts
katana, sword
Limit: 2
Cricket Bat
100 pts
cricket bat, cricket, cbat
Limit: 2
Crowbar
100 pts
crowbar
Limit: 2
Chainsaw
150 pts
chainsaw, saw
Limit: 1
Golfclub
100 pts
golf club, golfclub, club
Limit: 2
Machete
100 pts
machete
Limit: 2
Shovel
100 pts
shovel
Limit: 2
Nightstick
100 pts
nightstick
Limit: 2
Guitar
100 pts
guitar
Limit: 2
Knife
100 pts
knife
Limit: 2
Fireaxe
100 pts
fireaxe, axe
Limit: 2
Frying Pan
100 pts
frying pan, pan
Limit: 2
Pitchfork
100 pts
pitchfork, fork
Limit: 2
For Modders
Adding Your Own Items
If you’re a modder and want to add new stuff to the shop, it’s super easy. You don’t have to mess with the whole script, i made ShopX to be super easy to manage for future updates.

Here’s how:
  • Find the big ::ShopItems table, this is where all the items are defined.
  • Copy one of the existing entries and change the values to match your new item.

Example of a simple item:
pistol = { displayName = "Pistol", category = "pistols", price = 25, limit = 2, aliases = ["pistol", "pistols"], give = function(player) { player.GiveItem("weapon_pistol"); } },

Here’s what each value does:
  • displayName → The name that shows in the shop list.
  • category → Which category it belongs to (pistols, rifles, healing, etc.).
  • price → How many points it costs.
  • limit → How many times each player can buy it per map.
  • aliases → All the different names people can type to buy this item.
  • give → What actually happens when they buy it. (Usually player.GiveItem("weapon_name"))

So if you want to add, say, an M60, just copy that code, paste it into the ::shopitems table, and change it to:
m60 = { displayName = "M60", category = "heavy", price = 200, limit = 1, aliases = ["m60", "machinegun"], give = function(player) { player.GiveItem("weapon_rifle_m60"); } },

And that’s it, you don’t need to touch anything else!

You can make any item like healing effect if player buys it it heals the player using GetHealth() SetHealth(), or Invisability effect using:

NetProps.SetPropInt(player, "m_nRenderMode", 1);
DoEntFire("!self", "Alpha", "20", 0, player, player);
RegisterForbiddenTarget(player);

And more, there's literally unlimited ideas you can put into the shop without rebuilding it!

You don't need my permission te edit and publish other versions of this mod, just credit me and it's all good :)
5 条留言
Silentscopz1 10 月 5 日 上午 9:08 
I seem to have an issue where whenever someone goes idle, leaves or joins then everyone's points reset. Is this intended behaviour and if so is it possible to have the points not reset. I'm running this on a private Server.
DNA_𝟢𝟢𝟣𝟣 9 月 30 日 上午 6:25 
nicxe
Omega_Customs 9 月 24 日 下午 12:09 
A command to remove limits, limits are not always fun but does help, also it randomly stopped working the entire mod.
ОНСК:251019-1674 U 9 月 23 日 上午 5:39 
can you cancel the limit plz?i need a lot of medkits for special delivery:steamsad:
Lightymoon  [作者] 9 月 20 日 上午 9:06 
Feel free to ask anything here