- Joined
- Nov 17, 2010
- Messages
- 6,832
- Solutions
- 586
- Reaction score
- 5,414
I was constantly creating quest chest/items/altars/whatever.. and always had to create a new script for each one.
This was getting annoying, and tedious, so I took 3-4 days and created this "Easy Chest System", so I would never have to make a small tedious script again.
I like to give back to the community, and this is by far the hardest script I have completed to date.
There is most likely room for improvement inside the script itself, but I have finished it to the best of my ability, and have fully tested the system for 0.3.7
Although you can place aid's on anything, such as a tree/rock/door/wall, throughout my explanations I will simply say 'chest', to make it easier to understand.
In order to use this system effectively, you will require (at the minimum) an intermediate grasp on tables, and how to troubleshoot table error's.
With this system you will be able to do the following,
Shows chests 1-13 from the example chests.
How to use?
Everything is explained in green-text within the script itself.
It is very thorough, and there are 20+ example chests, to show you almost every (if not all) ways to use the system.
How to install?
data/actions/actions.xml
Provided below are a couple of links to download / view the code.
Download the file directly from OtLand Cloud.
. . . . . . . . . OR
View the code directly from Pastbin.com.
Simple and easy.
Enjoy!
Xikini
This was getting annoying, and tedious, so I took 3-4 days and created this "Easy Chest System", so I would never have to make a small tedious script again.
I like to give back to the community, and this is by far the hardest script I have completed to date.
There is most likely room for improvement inside the script itself, but I have finished it to the best of my ability, and have fully tested the system for 0.3.7
Although you can place aid's on anything, such as a tree/rock/door/wall, throughout my explanations I will simply say 'chest', to make it easier to understand.
In order to use this system effectively, you will require (at the minimum) an intermediate grasp on tables, and how to troubleshoot table error's.
With this system you will be able to do the following,
- Timed Quest -> (aka: Daily Quests) A chest that can be re-used after x amount of time.
- Simple Chests -> Give a single item.
- Multi-Item Chests -> Give a container with multiple items inside.
- Multi-Multi-Item Chests -> Give a container, with multiple items inside, which also contains another container, which also contains multiple items.
- (For example: A backpack, filled with backpacks, filled with sd's. (400 sd's)
- Simple keys -> Give a key with an aid attached to it.
- Simple Quest items -> Give an item with an uid attached to it.
- flavourText any item -> Adds a description to the bottom of an item.
- Simple Books -> Write your own books, and hand em out like yesterday's hotdogs.
- Random items -> Give a random item from a list of items.
- Random amount of items -> Give 1-4 cookies, for example.
- Vocational Quest Chest -> Only the specified vocation can open the chest.
- Anni-Style quests -> can only use 1 out of 4 chests for a reward.
- And most importantly, almost everything can be used in conjunction with one another.
Shows chests 1-13 from the example chests.
How to use?
Everything is explained in green-text within the script itself.
It is very thorough, and there are 20+ example chests, to show you almost every (if not all) ways to use the system.
How to install?
data/actions/actions.xml
Code:
<action actionid="45801-45802" event="script" value="Xikini_Easy_Chest_System.lua"/>
<action actionid="45804" event="script" value="Xikini_Easy_Chest_System.lua"/>
<action actionid="45807-45811" event="script" value="Xikini_Easy_Chest_System.lua"/>
<action actionid="45815-45816" event="script" value="Xikini_Easy_Chest_System.lua"/>
<action actionid="45818" event="script" value="Xikini_Easy_Chest_System.lua"/>
<action actionid="45820" event="script" value="Xikini_Easy_Chest_System.lua"/>
<action actionid="45822-45823" event="script" value="Xikini_Easy_Chest_System.lua"/>
<action actionid="45827" event="script" value="Xikini_Easy_Chest_System.lua"/>
<action actionid="45831" event="script" value="Xikini_Easy_Chest_System.lua"/>
<action actionid="45835" event="script" value="Xikini_Easy_Chest_System.lua"/>
Download the file directly from OtLand Cloud.
. . . . . . . . . OR
View the code directly from Pastbin.com.
Simple and easy.
Enjoy!
Xikini
Last edited: