Page 1 of 1

Drugs 3

Posted: Fri Oct 31, 2014 11:02 pm
by Drakath
This is a third version of our drugs system.
The code has been rewritten and is now a lot more efficient. The first main update is that I have decided to add a little economy into this system.
The price of drugs will now depend on the amount of drugs you buy.
The more you buy, the bigger discount you get. Players can invest into buying a certain amount of drugs and then sell them at a more decent price while still earning money.

The second main update is the weed farm is finally functioning.
There is a small chance that a killed server zombie will drop cannabis which you can plant in the weed farm.
After 5 minutes you can harvest your cannabis. However if you don't harvest it in 10 minutes, the tetrahydrocannabinol (THC) will oxidize and you won't be able to harvest your cannabis.
After a successful harvest, you can bring your harvested weed to the drugs laboratory and extract THC from cannabis plants. You will receive 1 weed but there is a 50 % chance that you can get 2.
THC extraction takes 3 minutes and there is a progress bar which will show you the THC extraction progress.
To ensure the convenience in this process, the weed farm is now a safe-zone.

Drugs dropping has been slightly changed. Drug pickup models were changed to drug packages instead of fire extinguishers. They can be placed in any dimension or interior.
Your custom drug prices will now be saved. The custom price set buttons were replaced by one button.
Added visual effects when using drugs. List of visual effects is below.
You can now use as many drugs as you want, the duration will increase by 3 minutes per drug used. The duration will be saved even if you disconnect from the Server.
In order to enter player's drugs shop, enter in his marker and click: 'H'.
Maximum numbers length that can by typed into the drugs shop and dropping quantity field is 4, custom drug prices - 5.

New prices:
Weed - 800
DMT - 1000
Coke - 3500
Heroin - 3500

Drug side effects (visual experiences):
Weed - Increased size of sun, blurry vision when driving at high speed.
DMT - Color changes.
Coke - Insect hallucinations.

Improvements:
Drug pickups can now be placed in any interior or dimension.
Script's efficiency.
Weed farm's zone.
GUI.

Changes:
New prices.
Players will now have to click 'H' to enter dealer's shop.
Custom drug prices will now save.
Maximum number length in the edit boxes.
Drug pickup models.

Added:
Animations.
More error outputs.
Visual effects.
Drug effect duration's saving.
Weed crafting.

Bug fixes:
Coke effect applies on every weapon.
Players able to sell drugs while not being on the ground.
Player able to enter a vehicle while being in the selling mode.


Drugs 3.1:

Added:
More outputs

Changes:
Corrected outputs
Extracting THC will give your from 1 to 3 weed.

Bugs fixed:
Players able to buy drugs from laboratory even if they are not in the laboratory. (Thanks to Hezonas for reporting.)
Drugs laboratory shop displays the DMT price incorrectly.