22.05.2017, 20:38
(
Last edited by Private200; 06/02/2020 at 10:37 PM.
)
Weed system
_________________________________________________
I started working on this weed system two days ago since I felt that I had left Pawno behind,I thought I had to make something just so I would not forget this as a language. A lot of ideas crossed my mind however, weed system seemed like one which has not been published that many times in the past and that always holds a spot for improvements and new ideas. This drug system is not that advanced and there are certainly way better options than this out there (rootcause's drug system for example). I did not progress this system into personal use like smoking, selling, statistics etcetera however, it is limited to the script variables. There is also no saving system and whoever who has the the basic knowledge of MySQL/INI will be able to properly insert saving system into this script.
Credits:
- ******, even if not part of these forums anymore, his foreach, y_timer and y_iterate have been used in this script and therefore, it wouldn't be the same without them (not to mention the amount of coding lines those includes have saved me)
However, lets jump straight onto the screenshots of this project:
UPDATED
Commands_________________________________________________
I started working on this weed system two days ago since I felt that I had left Pawno behind,I thought I had to make something just so I would not forget this as a language. A lot of ideas crossed my mind however, weed system seemed like one which has not been published that many times in the past and that always holds a spot for improvements and new ideas. This drug system is not that advanced and there are certainly way better options than this out there (rootcause's drug system for example). I did not progress this system into personal use like smoking, selling, statistics etcetera however, it is limited to the script variables. There is also no saving system and whoever who has the the basic knowledge of MySQL/INI will be able to properly insert saving system into this script.
Credits:
- ******, even if not part of these forums anymore, his foreach, y_timer and y_iterate have been used in this script and therefore, it wouldn't be the same without them (not to mention the amount of coding lines those includes have saved me)
However, lets jump straight onto the screenshots of this project:
UPDATED
/buyseeds - Allows you to buy seeds of your choice
/myseeds - shows you the seeds you got on you
/mydrugs - shows you the drugs you got on you, also lets you manage them
/pickpackup - picks up the dropped package (if near any)
/collectweed - collects the weed plant you are next to
/plantseed - plants a seed of a specific type (slots can be taken from /myseeds)
Limitations
- You can only plant a maximum of 1'000 weed seeds at a time (that would be almost 1'000 timers running at once)
- There can only be a maximum of 1'000 drug bags dropped at a time (script is using streamer to create the object, therefore more can be created)
- There can only be 5 type of seeds as of now. You are able to change this amount as you wish, though you are required to make changes in the script (might be changed in the future)
Adding new type of seed
Line 51; 52, there's this variable:
PHP Code:
new SeedInformation[][seedpacks] =
{
{0, "Cannabis Indica", 500, 3, 60},
{1, "Cannabis Sativa", 500, 1, 30}
};
{id, "name", price, grams_per_seed, time_in_seconds}
- You can only add a maximum of five drugs/seeds and ID's MUST be increasing regularly (0 -> 1 -> 2 -> 3 -> 4)
Download: Pastebin (Last updated: 12/06/2017)