Blockland Welcome, Guest. Please login or register.
Did you miss your activation email?
September 30, 2014, 05:55:21 PM

Home Help Login Register
+  Blockland Forum
|-+  Files
| |-+  Add-Ons
| | |-+  Weapon Shop System! [V2]
Pages: [1] 2 3 4 5 6 7
Author Topic: Weapon Shop System! [V2]  (Read 10581 times)
Gambsy

« March 12, 2012, 03:25:17 PM »

Please note - Support for this add-on is no longer available. due to multiple bugs ime probably just going to recode it

Weapon Shop System!

So, tired of having to go round every brick and setting up a VCE system?
Or simply don't know how to make a shop like you see in other server?

Well help is at hand!

now all you need to set up your weapon system is one command, just look at the brick and type /SetWeaponPrice X

Job done, the rest is done for you!


Features:
  • One command setup
  • Puts those useless minigame points to good use!
  • Snazzy text over the weapon to let you know how much it costs
  • Snazzy prompts for purchaseing
  • RTB prefs to enable/disable
  • Works when saved/loaded
  • No need to put silly covers over the weapons! The system has the ability to block users from simply walking over the item and picking it up (If enabled)
  • weapons ownership, and prices are saved so you don't need to worry about loosing data when you reload the server or if it crashes
  • interchangeable modes; Save ownership, one time
  • Now disabile multiple pickups of one item in the same loadout




List o' Commands:

/SetWeaponPrice [Amount] - Sets the price of the weapon you are looking at and sets up the event system needed - SA ONLY
/MakeWeaponShopBrick - Just sets up the events required for the brick
/RemoveWeaponShopItem - Removes the weapon from the system
/GetPrice checks the price of the item if you are blind and somehow can't read :D


/UpdateAllBrickPrices -If something goes wrong and weapon prices don't appear above items type this and it will re-apply it to all the items SA ONLY
/EnableWeaponShop - Enables the entire system if you don't want to use RTB prefs - updates brick prices - SA ONLY
/DisableWeaponShop - Disables the entire system if you don't want to use RTB prefs - updates brick prices - SA ONLY
/EnableWeaponPickup - Allows people to walk over items and pick them up even if they are shop items, off by default. Also a RTB Pref - SA ONLY
/DisableWeaponPickup - Disabled the ability to walk over items and pick them up even if are shop items, off by default. Also a RTB Pref - SA ONLY
/ToggleWeaponShopMultiplePickup - Toggles if players can pick up more than one of the same item - SA ONLY
/ToggleWeaponShopSystemMode - Changes the saving method between saving ownership, and one time buying




Code:
WeaponShopData.delete();IntNetWeaponShopSetup();

With thanks to:

General- Zipping the file for me, seeing as mac zips don't like windows format (And teaching me to code in the first place ^^)

Crown: Cuz he bugged me to put him here for "Been Crown"

Changelog
v2:
Fixed bug that caused some weapons to not work
Added prevention to picking up multiple items
Added mode selection : Save Ownership and One Time Use

Pics of it in use:






Feedback I've been told:

Darren: "This is just jizzable"

This is probably one of the best add-ons I've seen.
« Last Edit: August 29, 2012, 03:01:58 PM by Gambsy » Logged
Ad Bot

« Full members do not see ads »

Crøwn

« March 12, 2012, 03:26:19 PM »

amazing
Logged
HellsHero

« March 12, 2012, 03:27:13 PM »

Should just work on any brick where someone can spawn items with a wrench and it would take the points it costs away. It would be great for fortwars like that.
Logged
Gambsy

« March 12, 2012, 03:28:40 PM »

Should just work on any brick where someone can spawn items with a wrench and it would take the points it costs away. It would be great for fortwars like that.

It was originally designed for stuff like TDM's but i can adapt a version to do just that in a update
Logged
John Freeman

« March 12, 2012, 03:29:07 PM »

I love you
have my babies
Logged
NEkram

« March 12, 2012, 03:29:13 PM »

now i can make unnecessary gold weapon variants and sell them for like 599,000 points or something


great add-on, will try and use it
Logged
Scott94

« March 12, 2012, 03:32:03 PM »

I'll set this up in V4, Tom.
Logged
Wordy

« March 12, 2012, 04:03:49 PM »

hue hue hue hue, isit the first thing you've actually released, Tom?
Logged
Gambsy

« March 12, 2012, 04:08:17 PM »

Nah, the brick killer was realised :D

for a short while anyway....
Logged
The Corporation

« March 12, 2012, 04:12:38 PM »

THANK GOD.

Small question.
Can I still sell weapons through an itemless brick?
Like the brick has the ! or $ print on it, and that's how you purchase it?
Logged
Lord Tony²

« March 12, 2012, 04:14:42 PM »

Wait so this uses those worthless minigame points you get from killing people? If so that's fucking awesome. I'm going to try this out.

Much better than that complicated and inflated money system.
Logged
RedGajin

« March 12, 2012, 04:14:57 PM »

It's cool, but it seems like using events would be simpler.
Logged
Gambsy

« March 12, 2012, 04:19:36 PM »

THANK GOD.

Small question.
Can I still sell weapons through an itemless brick?
Like the brick has the ! or $ print on it, and that's how you purchase it?

Nah, it works off the item placed upon it
Wait so this uses those worthless minigame points you get from killing people?
Thats the ones :D

It's cool, but it seems like using events would be simpler.

many people don't know how to VCE, and there have been countless topics posted like "Hoa2WeaponShop" so this solves the issue for them; that and i don't see how doing 20 events is easier then typing one line :D
Logged
RedGajin

« March 12, 2012, 04:22:04 PM »

many people don't know how to VCE, and there have been countless topics posted like "Hoa2WeaponShop" so this solves the issue for them; that and i don't see how doing 20 events is easier then typing one line :D
You don't really need to know how to use VCE, and it only takes about 4 lines of eventing.
Logged
Gambsy

« March 12, 2012, 04:24:16 PM »

You don't really need to know how to use VCE, and it only takes about 4 lines of eventing.

not to have them save for exit additionally it isn't :D
Logged
Pages: [1] 2 3 4 5 6 7  


Login with username, password and session length

Powered by SMF 1.1.19 | SMF © 2013, Simple Machines
Page created in 0.147 seconds with 15 queries.