• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Action Advanced quest system for tfs 1.3

Azakelis

Advanced OT User
Joined
Feb 17, 2014
Messages
158
Solutions
15
Reaction score
224
The future is now, old man.

Installation:
1. In data/lib/lib.lua add:
Lua:
-- Advanced quest system
dofile('data/lib/advanced_quest_system.lua')
2. Unpack advanced_quest_system.lua to data/lib/
3. In data/actions/actions.xml add, replace X with desirable action id for your chests:
XML:
<action actionid="X" script="advanced_quest_system_action.lua"/>
4. Unpack advanced_quest_system_action.lua to data/actions/scripts/

Usage:
In data/lib/advanced_quest_system.lua
edit: ADVANCED_QUESTS, STORAGES, QUEST_LIST to add your quests
In map editor place chest with X action id and unique id from QUEST_LIST (that you also used in ADVANCED_QUESTS)

Features:
Available reward types (in one chest can be one or more): items, experience, levels, skills, magic levels, vocations, outfits, addons, mounts, max health, max mana
Conditional reward types (get reward only if condition met): minimum level, maximum level, vocation, premium [it can be used both on CHEST_SETTINGS to block whole quest or on REWARDS to block single reward]
Events (message, animation) that can be triggered by TRIGGERS (on reward, on quest cannot be done)
Quest types: only once (traditional quest), sequential (one after another), must have certain storage first to get reward, periodical (can get reward every hour, day, week, month etc.)
it supports multiple chest - 1 reward (like annihilator)
you can pass customFunction, customFunctionParameters for item reward to modify it
 

Attachments

  • advanced_quest_system.zip
    3.5 KB · Views: 61 · VirusTotal
Last edited:

Leesne

i r peekay
Premium User
Joined
Dec 4, 2017
Messages
340
Solutions
33
Reaction score
186
Location
UK
Haven't tested it but i like the amount of features that is included in this and how clean the code is to read.
 

slaw

Developer
Joined
Aug 27, 2007
Messages
3,282
Solutions
101
Reaction score
767
Location
Germany
GitHub
slawkens
I liked how it was in the old gold TFS 0.4, where you could just place chest in map editor, fill it with items and set unique/action ids. That was sooo easy.

But your system seems good too. Well written and very neat!
 
Top