• 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!

Seminari's Quest System using actions, all quests in one script.(From Sepira Project)

Seminari

Banned User
Joined
Dec 13, 2009
Messages
1,496
Reaction score
34
Location
Poland
Welcome! Since i have less time for open tibia, so i decided to publish a couple of my scripts.

Today i'm presenting to you my own quest system :)

I write this code because i have very low internet so when i was adding some quest i must upload again map.. 21 mb is to much for me to transfer - doing this again again when i added single quests was impossible. So i do my "system" haha, simple script, with quests on actionIDs, so when i want to add any simple chest quest, it's faster to add 1 line to script and add in game /attr action X than uploading map.

(Warning! It's not bug, you can push quest items, but only if you are gamemaster, if you are simple player u can't so don't spam about this!)

It's very advanced, you can put here: keys, books with text, rewards in bag, and other ;p

Also u can make quests which required item to take reward, for example in HOTA quest (helmet of the ancients) to take reward from sarcophag (part of helmet) u must have a pharaoh special item ;p

THERE AREN'T ALL QUESTS, REPORT IN THIS THREAD ALL MISSED QUEST I WILL UPDATE THAT.


Here we go:

add to actions.xml:

Code:
<!-- Seminari Quest System   -->
	<action fromaid="54116" toaid="54199" event="script" value="quests/Seminari Quest System.lua" /> 
	<action fromaid="54200" toaid="54299" event="script" value="quests/Seminari Quest System.lua" /> 
	<action fromaid="54300" toaid="54399" event="script" value="quests/Seminari Quest System.lua" /> 
	<action actionid="10544-10550" event="script" value="quests/Seminari Quest System.lua" /> 
	<action actionid="10559-10560" event="script" value="quests/Seminari Quest System.lua" />


and create file in:

actions/scripts/quests/"Seminari Quest System"

and paste:

Lua:
local config = {

				
				[54116] = {storage = 99301, stg_id = 1, quest_name = "crusader helmet", rewards = {2497,1}},
				[54117] = {storage = 99302, stg_id = 1, quest_name = "blood herb", rewards = {2798,1}},
				[54118] = {storage = 99303, stg_id = 1, quest_name = "battle axe", rewards = {2378,1}},
				[54119] = {storage = 99304, stg_id = 1, quest_name = "silver rune emblem (Ultimate Healing)", rewards = {12559,1}},
				[54120] = {storage = 99305, stg_id = 1, quest_name = "circle room quest [dwarven axe]", rewards = {2435,1}},
				[54121] = {storage = 99306, stg_id = 1, quest_name = "circle room quest [war hammer]", rewards = {2391,1}},
				[54122] = {storage = 99307, stg_id = 1, quest_name = "dark armor quest", rewards = {2489,1}},
				[54123] = {storage = 99308, stg_id = 1, quest_name = "double hero quest [red gem]", rewards = {2156,1}},
				[54124] = {storage = 99309, stg_id = 1, quest_name = "double hero quest [club ring]", rewards = {2209,1}},
				[54125] = {storage = 99310, stg_id = 1, quest_name = "edron goblin quest [silver amulet]", rewards = {2170,1}},
				[54126] = {storage = 99311, stg_id = 1, quest_name = "edron goblin quest [steel shield]", rewards = {2509,1}},
				[54127] = {storage = 99312, stg_id = 1, quest_name = "elephant tusk quest", rewards = {3956,2}},
				
				--[[
				[54128] = {storage = 99313, stg_id = 1, quest_name = "elvenbane quest", rewards = {,}},
				[54129] = {storage = 99314, stg_id = 1, quest_name = "elvenbane quest", rewards = {,}},
				[54130] = {storage = 99315, stg_id = 1, quest_name = "elvenbane quest", rewards = {,}},
				[54131] = {storage = 99316, stg_id = 1, quest_name = "elvenbane quest", rewards = {,}},
				]]--
				
				[54132] = {storage = 99317, stg_id = 1, quest_name = "lion trophy quest", rewards = {7400,1, 7290,1, 2152,2}},
				[54133] = {storage = 99318, stg_id = 1, quest_name = "life ring quest", rewards = {2168,1}},
				[54134] = {storage = 99319, stg_id = 1, quest_name = "dead archer quest", rewards = {2456,1, 2545,5, 7620,1, 7618,1}},
				[54135] = {storage = 99320, stg_id = 1, quest_name = "lone medusa quest", rewards = {2144,4}},
				[54136] = {storage = 99321, stg_id = 1, quest_name = "naginata quest", rewards = {2426,1}},
				
				[54137] = {storage = 99322, stg_id = 1, quest_name = "noble armor quest [noble armor]", rewards = {2486,1}},
				[54138] = {storage = 99323, stg_id = 1, quest_name = "noble armor quest [crown helmet]", rewards = {2491,1}},
				
				[54139] = {storage = 99324, stg_id = 1, quest_name = "demon helmet quest [steel boots]", rewards = {2645,1}},
				[54140] = {storage = 99325, stg_id = 1, quest_name = "demon helmet quest [demon helmet]", rewards = {2493,1}},
				[54141] = {storage = 99326, stg_id = 1, quest_name = "demon helmet quest [demon shield]", rewards = {2520,1}},
				
				[54142] = {storage = 99327, stg_id = 1, quest_name = "orc shaman quest", rewards = {2162,1, 2208,1, 2260,1}},
				
				[54143] = {storage = 99328, stg_id = 1, quest_name = "power ring quest [bronze amulet]", rewards = {2172,1}},
				[54144] = {storage = 99329, stg_id = 1, quest_name = "power ring quest [power ring]", rewards = {2166,1}},
				
				[54145] = {storage = 99330, stg_id = 1, quest_name = "six rubies quest", rewards = {2147,6}},
				[54146] = {storage = 99331, stg_id = 1, quest_name = "skeleton decoration quest", rewards = {6526,1, 2148,89, 7290,1}},
				[54147] = {storage = 99332, stg_id = 1, quest_name = "spike sword quest", rewards = {2383,1}},
				
				[54148] = {storage = 99333, stg_id = 1, quest_name = "stealth ring quest [stealth ring]", rewards = {2165,1}},
				[54149] = {storage = 99334, stg_id = 1, quest_name = "stealth ring quest [protection amulet]", rewards = {2200,1}},
				
				[54150] = {storage = 99335, stg_id = 1, quest_name = "strong potions quest", rewards = {7589,5}},
				[54151] = {storage = 99336, stg_id = 1, quest_name = "throwing star quest", rewards = {2399,10}},
				
				[54152] = {storage = 99337, stg_id = 1, quest_name = "thais lighthouse quest [dark shield]", rewards = {2521,1}},
				[54153] = {storage = 99338, stg_id = 1, quest_name = "thais lighthouse quest [battle hammer]", rewards = {2417,1}}, 
				
				[54154] = {storage = 99339, stg_id = 1, quest_name = "triangle tower quest", bag = "tak", bag_id = 1987, nagroda = "brak", insides = {2199,1, 2213,1, 2146,2}},

				[54155] = {storage = 99340, stg_id = 1, quest_name = "troll cave quest [garlic necklace]", rewards = {2199,1}},
				[54156] = {storage = 99341, stg_id = 1, quest_name = "troll cave quest [brass legs]", rewards = {2478,1}},
				
				[54157] = {storage = 99342, stg_id = 1, quest_name = "vampire shield quest [dragon lance]", rewards = {2414,1}},
				[54158] = {storage = 99343, stg_id = 1, quest_name = "vampire shield quest [vampire shield]", rewards = {2534,1}},
				
				[54159] = {storage = 99344, stg_id = 1, quest_name = "voodoo doll quest [voodoo doll (king)]", rewards = {2322,1}},
				[54160] = {storage = 99345, stg_id = 1, quest_name = "voodoo doll quest [magic lightwand]", rewards = {2162,1}},
				
				[54161] = {storage = 99346, stg_id = 1, quest_name = "waterfall quest", bag = "tak", bag_id = 5926, nagroda = "brak", insides = {6096,1, 2213,1}},
				
				[54162] = {storage = 99347, stg_id = 1, quest_name = "weedding ring quest [wedding ring]", rewards = {2121,1}},
				[54163] = {storage = 99348, stg_id = 1, quest_name = "weedding ring quest [dragon necklace]", rewards = {2201,1}},
				
				[54164] = {storage = 99349, stg_id = 1, quest_name = "white pearl quest", rewards = {2143,1}},
				
				[54165] = {storage = 99350, stg_id = 1, quest_name = "berserk potion quest (Formorgar Mine Quest)", bag = "tak", bag_id = 1987, nagroda = "brak", insides = {7439,1, 2148,100, 2148, 100, 7290,1, 6500, 3}},
				
				[54166] = {storage = 99351, stg_id = 1, quest_name = "behemoth quest [bag]", bag = "tak", bag_id = 1987, nagroda = "brak", insides = {2171,1, 2168,1 ,2124,1 ,2146,4 ,2145,3}},
				[54167] = {storage = 99352, stg_id = 1, quest_name = "behemoth quest [guardian halberd]", rewards = {2427,1}},
				[54168] = {storage = 99353, stg_id = 1, quest_name = "behemoth quest [demon shield]", rewards = {2520,1}},
				[54169] = {storage = 99354, stg_id = 1, quest_name = "behemoth quest [golden armor]", rewards = {2466,1}},
				
				[54170] = {storage = 99355, stg_id = 1, quest_name = "barbarian axe quest [barbarian axe]", rewards = {2429,1}},
				[54171] = {storage = 99356, stg_id = 1, quest_name = "barbarian axe quest [scimitar]", rewards = {2419,1}},
				
				[54172] = {storage = 99357, stg_id = 1, quest_name = "berserker treasure quest", bag = "tak", bag_id = 1987, nagroda = "brak", insides = {2143,3 , 2148,100, 2148,75}},
				
				[54173] = {storage = 99358, stg_id = 1, quest_name = "black knight [crown armor]", spec_efekt = 28, rewards = {2487,1}},
				[54174] = {storage = 99359, stg_id = 1, quest_name = "black knight [crown shield]", spec_efekt = 28, rewards = {2519,1}},
				
				[54175] = {storage = 99360, stg_id = 1, quest_name = "poison daggers quest", bag = "tak", bag_id = 1987, nagroda = "brak", insides = {2411,1, 2411,1 ,2545,30 }},
				
				[54176] = {storage = 99361, stg_id = 1, quest_name = "ring quest [sword ring]", rewards = {2207,1}},
				[54177] = {storage = 99362, stg_id = 1, quest_name = "ring quest [time ring]", rewards = {2169,1}},
				
				[54178] = {storage = 99363, stg_id = 1, quest_name = "waterskin of mead", bag = "tak", bag_id = 7343, nagroda = "brak", insides = {7439,1,2148,82,2031,51}},
				
				[54179] = {storage = 99364, stg_id = 1, quest_name = "time ring quest [time ring]", rewards = {2169,1}},
				[54180] = {storage = 99365, stg_id = 1, quest_name = "time ring quest [elven amulet]", rewards = {2198,1}},
				[54181] = {storage = 99366, stg_id = 1, quest_name = "time ring quest [crystal ball]", rewards = {2192,1}},
				
				[54182] = {storage = 99367, stg_id = 1, quest_name = "medusa shield quest", bag = "tak", bag_id = 1987, nagroda = "brak", insides = {2536,1, 2436,1, 2656,1}},
				
				[54183] = {storage = 99368, stg_id = 1, quest_name = "fire axe quest [fire axe]", rewards = {2432,1}},
				[54184] = {storage = 99369, stg_id = 1, quest_name = "fire axe quest [bag]", bag = "tak", bag_id = 1987, nagroda = "brak", insides = {2214,1,2201,1}},
				[54185] = {storage = 99370, stg_id = 1, quest_name = "fire axe quest [diamonds]", rewards = {2145,7}},
				
				[54186] = {storage = 99371, stg_id = 1, quest_name = "deeper fibula quest [knight axe]", rewards = {2430,1}},
				[54187] = {storage = 99372, stg_id = 1, quest_name = "deeper fibula quest [elven amulet]", rewards = {2198,1}},
				[54188] = {storage = 99373, stg_id = 1, quest_name = "deeper fibula quest [dwarven ring]", rewards = {2213,1}},
				[54189] = {storage = 99374, stg_id = 1, quest_name = "deeper fibula quest [warrior helmet]", rewards = {2475,1}},
				[54190] = {storage = 99375, stg_id = 1, quest_name = "deeper fibula quest [tower shield]", rewards = {2528,1}},
				
				[54191] = {storage = 99376, stg_id = 1, quest_name = "hydra egg quest", rewards = {4850,1}},
				
				[54192] = {storage = 99377, stg_id = 1, quest_name = "Dragon Tower Quest (Shadowthorn)[bag1]", bag = "tak", bag_id = 1987, nagroda = "brak", insides = {2456, 1, 2546,30, 2545, 60}},
				[54193] = {storage = 99378, stg_id = 1, quest_name = "Dragon Tower Quest (Shadowthorn)[bag2]", bag = "tak", bag_id = 1987, nagroda = "brak", insides = {7620,1, 7618,1, 2146, 2}},
				
				[54194] = {storage = 99379, stg_id = 1, quest_name = "Bullseye Potion Quest (Formorgar Mine Quest)", bag = "tak", bag_id = 7343, nagroda = "brak", insides = {7290,1, 2148, 100, 7443,1, 2455,1, 2547,20}},
				
				[54195] = {storage = 99380, stg_id = 1, quest_name = "Explorer Brooch Quest", rewards = {2122,1}},
				
				[54196] = {storage = 99381, stg_id = 1, quest_name = "Fanfare", rewards = {2076,1}},
				
				[54197] = {storage = 99382, stg_id = 1, quest_name = "Fishing Box Quest", bag = "tak", bag_id = 7343, nagroda = "brak", insides = {7159,3, 7158, 3, 2152, 5}},
				
				[54198] = {storage = 99383, stg_id = 1, quest_name = "Frost Dragon Quest", bag = "tak", bag_id = 1987, nagroda = "brak", insides = {7290,1, 7443,1, 2152,10}},
				
				[54199] = {storage = 99384, stg_id = 1, quest_name = "Geomancer Quest", bag = "tak", bag_id = 1987, nagroda = "brak", insides = {2146,1,2145,1,2213,1}},
				
				[54200] = {storage = 99385, stg_id = 1, quest_name = "Ghoul Room Quest [garlic necklace]", rewards = {2199,1}},
				[54201] = {storage = 99386, stg_id = 1, quest_name = "Ghoul Room Quest [club ring]", rewards = {2209,1}},
				
				[54202] = {storage = 99387, stg_id = 1, quest_name = "Tomes of Knowledge [I, zao fort]", rewards = {11134,1}},
				[54203] = {storage = 99388, stg_id = 1, quest_name = "Tomes of Knowledge [II, wzgorza zao]", rewards = {11134,1}},
				[54204] = {storage = 99389, stg_id = 1, quest_name = "Tomes of Knowledge [III, Chaochai]", rewards = {11134,1}},
				[54205] = {storage = 99390, stg_id = 1, quest_name = "Tomes of Knowledge [IV, Chazorai]", rewards = {11134,1}},
				[54206] = {storage = 99391, stg_id = 1, quest_name = "Tomes of Knowledge [V, Poziemia Palacu Lizardow]", rewards = {11134,1}},
				[54207] = {storage = 99392, stg_id = 1, quest_name = "Tomes of Knowledge [VI, Wieza Palacu Lizardow]", rewards = {11134,1}},
				[54208] = {storage = 99393, stg_id = 1, quest_name = "Tomes of Knowledge [VII, Podczas Raidu W Wiezy Zulluzzy]", rewards = {11134,1}},
				[54209] = {storage = 99394, stg_id = 1, quest_name = "Tomes of Knowledge [VIII, Za drzwiami obok Zalamona]", rewards = {11134,1}},
				[54210] = {storage = 99395, stg_id = 1, quest_name = "Tomes of Knowledge [IX, Poziemia Palacu Lizardow (Ghastly Dragony)]", rewards = {11134,1}},
				[54211] = {storage = 99396, stg_id = 1, quest_name = "Tomes of Knowledge [X, Zniszczone Miasto]", rewards = {11134,1}},
				[54212] = {storage = 99397, stg_id = 1, quest_name = "Tomes of Knowledge [XI, Corruption Hole]", rewards = {11134,1}},
				
				[54213] = {storage = 99398, stg_id = 1, quest_name = "Shaman Treasure", rewards = {2260,3}},
				
				[54214] = {storage = 99399, stg_id = 1, quest_name = "Silver Brooch Quest", bag = "tak", bag_id = 1987, nagroda = "brak", insides = {2134, 1, 2147,2, 2145,3}},
				
				[54215] = {storage = 99400, stg_id = 1, quest_name = "Panpipe Quest", bag = "tak", bag_id = 1987, nagroda = "brak", insides = {2074,1, 2150,1 ,2166,1}},
				
				[54216] = {storage = 99401, stg_id = 1, quest_name = "Griffin Shield Quest [griffin shield]", rewards = {2533,1}},
				[54217] = {storage = 99402, stg_id = 1, quest_name = "Griffin Shield Quest [obsidian lance]", rewards = {2425,1}},
				[54218] = {storage = 99403, stg_id = 1, quest_name = "Griffin Shield Quest [dwarven axe]", rewards = {2435,1}},
				
				[54219] = {storage = 99404, stg_id = 1, quest_name = "Giant Smithhammer Quest [talon]", rewards = {2151,1}},
				[54220] = {storage = 99405, stg_id = 1, quest_name = "Giant Smithhammer Quest [giant smithhammer]", rewards = {2321,1}},
				[54221] = {storage = 99406, stg_id = 1, quest_name = "Giant Smithhammer Quest [gold coins]", rewards = {2148,100}},
				
				[54222] = {storage = 99407, stg_id = 1, quest_name = "Iron Hammer Quest", rewards = {2422,1}},
				
				[54223] = {storage = 99408, stg_id = 1, quest_name = "Iron Helmet Quest [bag]", bag = "tak", bag_id = 1988, nagroda = "brak", insides = {2238,1, 2268,3, 2467,1, 2459,1, 2397,1, 2598,1}},
				
				[54224] = {storage = 99409, stg_id = 1, quest_name = "Isle of the Mists [bag](tylko dla druidow ta wyspa)", bag = "tak", bag_id = 1987, nagroda = "brak", insides = {2149,2,1976,1}},
				
				[54225] = {storage = 99410, stg_id = 1, quest_name = "Longsword Quest [longsword]", rewards = {2397,1}},
				[54226] = {storage = 99411, stg_id = 1, quest_name = "Longsword Quest [wedding ring]", rewards = {2121,1}},
				[54227] = {storage = 99412, stg_id = 1, quest_name = "Longsword Quest [bag]", bag = "tak", bag_id = 1987, nagroda = "brak", insides = {2260,3, 2108,1, 2148,76}},
				
				[54228] = {storage = 99413, stg_id = 1, quest_name = "Mastermind Potion #1 (Formorgan Mine Quest)[bag]", bag = "tak", bag_id = 1987, nagroda = "brak", insides = {7440,1,2148,78}},
				[54229] = {storage = 99414, stg_id = 1, quest_name = "Mastermind Potion #2 (Formorgan Mine Quest)[bag]", bag = "tak", bag_id = 1987, nagroda = "brak", insides = {7440,1,2148,100,2148,23,7159,1,7158,2}},
				
				[54230] = {storage = 99415, stg_id = 1, quest_name = "Skull of Ratha [bag 1]", bag = "tak", bag_id = 1987, nagroda = "brak", insides = {2320,1,2143,1}},
				[54231] = {storage = 99416, stg_id = 1, quest_name = "Skull of Ratha [bag 2]", bag = "tak", bag_id = 1987, nagroda = "brak", insides = {2129,1, 2213,1}},
				[54232] = {storage = 99417, stg_id = 1, quest_name = "Skull of Ratha [bag 3]", bag = "tak", bag_id = 1987, nagroda = "brak", insides = {2148,100, 2125,1, 2144,2}},
				
				[54233] = {storage = 99418, stg_id = 1, quest_name = "Orc Fortress [knight axe]", rewards = {2430,1}},
				[54234] = {storage = 99419, stg_id = 1, quest_name = "Orc Fortress [fire sword]", rewards = {2392,1}},
				[54235] = {storage = 99420, stg_id = 1, quest_name = "Orc Fortress [knight armor]", rewards = {2476,1}},
				
				[54236] = {storage = 99421, stg_id = 1, quest_name = "Steel Helmet Quest [steel helmet]", rewards = {2457,1}},
				[54237] = {storage = 99422, stg_id = 1, quest_name = "Steel Helmet Quest [gold coins in drawer]", rewards = {2148,56}},
				[54238] = {storage = 99423, stg_id = 1, quest_name = "Steel Helmet Quest [gold coins in chest]", rewards = {2148,47}},
				[54239] = {storage = 99424, stg_id = 1, quest_name = "Steel Helmet Quest [fox's scroll]", book = "tak", book_id = 1949, nagroda = "brak", book_text = "Looks like the fox is out!\nMore luck next time!\nSigned:\nthe horned fox\n"},
				
				[54240] = {storage = 99425, stg_id = 1, quest_name = "Dark Helmet Quest [key: 4502]", klucz = "tak", klucz_id = 2089, nagroda = "brak", klucz_aid = 4502,},
				[54241] = {storage = 99426, stg_id = 1, quest_name = "Dark Helmet Quest [key: 4501]", klucz = "tak", klucz_id = 2089, nagroda = "brak", klucz_aid = 4501,},
				[54242] = {storage = 99427, stg_id = 1, quest_name = "Dark Helmet Quest [bag]", bag = "tak", bag_id = 1987, nagroda = "brak", insides = {2490,1, 2410,4, 2260,1, 2148,33}},
				
				[54243] = {storage = 99428, stg_id = 1, quest_name = "Inukaya Quest [bag]", bag = "tak", bag_id = 1987, nagroda = "brak", insides = {7290,1, 2148,46, 7158,3}},
				
				[54244] = {storage = 99429, stg_id = 1, quest_name = "Mad Mage Room [stone skin amulet]", rewards = {2197,5}},
				[54245] = {storage = 99430, stg_id = 1, quest_name = "Mad Mage Room [hat of the mad]", rewards = {2323,1}},
				[54246] = {storage = 99431, stg_id = 1, quest_name = "Mad Mage Room [star amulet]", rewards = {2131,1}},
				
				[54247] = {storage = 99432, stg_id = 1, quest_name = "Ornamented Shield Quest [bag]", bag = "tak", bag_id = 1987, klucz = "tak", klucz_id = 2090, nagroda = "brak", klucz_aid = 3702, insides = {2524,1}},
				
				[54248] = {storage = 99433, stg_id = 1, quest_name = "Minotaur Leather Quest", rewards = {5878,1}},
				
				[54249] = {storage = 99434, stg_id = 1, quest_name = "Alawar's Vault Quest [white pearl]", rewards = {2143,3}},
				[54250] = {storage = 99435, stg_id = 1, quest_name = "Alawar's Vault Quest [broadsword]", rewards = {2413,1}},
				
				[54251] = {storage = 99436, stg_id = 1, quest_name = "Devil Helmet Quest [key: 3610]", klucz = "tak", klucz_id = 2088, nagroda = "brak", klucz_aid = 3610},
				[54252] = {storage = 99437, stg_id = 1, quest_name = "Devil Helmet Quest [Mintwallin Cyclops Quest]", rewards = {2145,1}},
				
				[54253] = {storage = 99438, stg_id = 1, quest_name = "Draconia Quest [bag 1]", bag = "tak", bag_id = 1987, nagroda = "brak", insides = {2396,1, 2409,1}},
				[54254] = {storage = 99439, stg_id = 1, quest_name = "Draconia Quest [bag 2]", bag = "tak", bag_id = 1987, nagroda = "brak", insides = {2197,1 ,2167,1}},
				
				[54255] = {storage = 99440, stg_id = 1, quest_name = "Darashia Dragon Quest (life ring)", rewards = {2168,1}},
				
				[54256] = {storage = 99441, stg_id = 1, quest_name = "Emperor's Cookies Quest [key: 3800]", klucz = "tak", klucz_id = 2089, nagroda = "brak", klucz_aid = 3800},
				[54257] = {storage = 99442, stg_id = 1, quest_name = "Emperor's Cookies Quest [bag i key: 3801]", bag = "tak", bag_id = 1987, klucz = "tak", klucz_id = 2089, nagroda = "brak", klucz_aid = 3801, insides = {2687,20,2687,7}},
				[54258] = {storage = 99443, stg_id = 1, quest_name = "Emperor's Cookies Quest [key: 3802]", klucz = "tak", klucz_id = 2089, nagroda = "brak", klucz_aid = 3802},
				
				[54259] = {storage = 99444, stg_id = 1, quest_name = "Scale Armor Quest", rewards = {2483,1}},
				
				[54260] = {storage = 99445, stg_id = 1, quest_name = "Outlaw Camp Quest (Bright Sword)[key: 3301]", klucz = "tak", klucz_id = 2089, nagroda = "brak", klucz_aid = 3301},
				[54261] = {storage = 99446, stg_id = 1, quest_name = "Outlaw Camp Quest (Bright Sword)[key: 3302]", klucz = "tak", klucz_id = 2088, nagroda = "brak", klucz_aid = 3302},
				[54262] = {storage = 99447, stg_id = 1, quest_name = "Outlaw Camp Quest (Bright Sword)[key: 3303]", klucz = "tak", klucz_id = 2089, nagroda = "brak", klucz_aid = 3303},
				[54263] = {storage = 99448, stg_id = 1, quest_name = "Outlaw Camp Quest (Bright Sword)[key: 3304]", klucz = "tak", klucz_id = 2089, nagroda = "brak", klucz_aid = 3304},
				[54264] = {storage = 99449, stg_id = 1, quest_name = "Outlaw Camp Quest (Bright Sword)[bag]", bag = "tak", bag_id = 1987, nagroda = "brak", insides = {2407,1, 2156,1}},
				
				[54265] = {storage = 99450, stg_id = 1, quest_name = "What a foolish quest [kitchen knife & book]", rewards = {2566,1}, book = "tak", book_id = 1955, book_text = "To jest ksiazka o:\nTu mialbyc text ale..\nJurek zjebal akcje i wyjebal ksiazke!:\nKURDE\n"},
				[54267] = {storage = 99451, stg_id = 1, quest_name = "What a foolish quest [magical watch]", rewards = {8187,1}},
				--[[
				[54268] = {storage = 99452,
				[54269] = {storage = 99453,
				[54270] = {storage = 99454,
				[54271] = {storage = 99455,
				[54272] = {storage = 99456,
				[54273] = {storage = 99457,
				[54274] = {storage = 99458,
				[54275] = {storage = 99459,
				[54276] = {storage = 99460,
				]]--
				
				--action 54277 oraz 54278 ma zostac, zmienic storage na wlasciwy jesli bylby zly w kolejnosci hronologicznej
				[54277] = {storage = 99461, stg_id = 1, quest_name = "deeper fibula quest [key: 3980]", klucz = "tak", klucz_id = 2091, nagroda = "brak", klucz_aid = 3980},
				[54278] = {storage = 99462, stg_id = 1, quest_name = "black knight quest [key: 5010]", klucz = "tak", klucz_id = 2088, nagroda = "brak", klucz_aid = 5010},
				[54279] = {storage = 99463, stg_id = 1, quest_name = "PoI Book [book na poiu]", book = "tak", book_id = 1950, nagroda = "brak", book_text = "look at the 4 and ignore the 2\nend the 7 with 5 in mind\nvalue of 6 is 9\nexplain the second of 4\nrun past the 7\nsubstract 10\nuse the northeast first\nsee the colors change\nerrors are red\nlook what changes\nexpect no mercy\nsix times 10\nstupidity is red."},
				[54280] = {storage = 99464, stg_id = 1, quest_name = "Koshei the deathless [blue legs, w bagu z 50x platinum coin]", bag = "tak", bag_id = 1987, nagroda = "brak", insides = {7730,1 ,2152,50}},
				[54281] = {storage = 99465, stg_id = 1, quest_name = "PoH Book [book w drawers w grocie z cyclopami i minoskami]", book = "tak", book_id = 1955, nagroda = "brak", book_text = "Uhgly beholda stollen ki we gut from slain humi nigt. Tohk it 2 stinky place, noone will go thare fur guud king of cyclops. Beholda bat und ughly, to manni eyes!."},
				[54282] = {storage = 99466, stg_id = 1, quest_name = "PoH Book [book w barrel w grocie z cyclopami i minoskami]", book = "tak", book_id = 1955, nagroda = "brak", book_text = "Diary of Hengis Wulfson\n...\nI can only hope I can escape the\ncyclops someday. For now I have\noccupied their chief with an attempt\nto learn to read and write, but for\nhow long?\nI'm so desperate.\nWhat a foolish idea to travel here to\nsearch the famous treasures of this\nancient, knightly order.\nI wish I had never heard about it.\nI wish I had never sung that song.\nNo clue how many unfortunate souls I\nhave lured to death with it.\n"},
				[54283] = {storage = 99467, stg_id = 1, quest_name = "fanfare quest [key: 3520]", klucz = "tak", klucz_id = 2092, nagroda = "brak", klucz_aid = 3520},
				[54284] = {storage = 99468, stg_id = 1, quest_name = "PoI Quest (skeleton, pirate backpack)", bag = "tak", bag_id = 5926, nagroda = "brak", insides = {7590,1 ,6561,1,2273,1,2273,1,2273,1,2268,1,2268,1,2168,1,2260,1,7590,1,6561,1,6300,1,5944,1,5022,3,5944,1,2143,5,2152,11}},
				[54285] = {storage = 99469, stg_id = 1, quest_name = "Inquisition quest [the witches' grimoire]", rewards = {8702,1}},
				
				[54286] = {storage = 99470, stg_id = 1, quest_name = "Desert quest [100x platinum coins]", rewards = {2152,100}},
				[54287] = {storage = 99471, stg_id = 1, quest_name = "Desert quest [green bag]", bag = "tak", bag_id = 1991, nagroda = "brak", insides = {2200,1,2214,1,2162,1,2193,1}},
				
				[54288] = {storage = 99472, stg_id = 1, quest_name = "Ghoul Room Quest [key: 3600]", klucz = "tak", klucz_id = 2088, nagroda = "brak", klucz_aid = 3600},
				
				[54289] = {storage = 99473, stg_id = 1, quest_name = "vampire shield quest [bag]", bag = "tak", bag_id = 1987, nagroda = "brak", insides = {2194,1,2174,1,2144,1}},
				
				[54290] = {storage = 99474, stg_id = 1, quest_name = "power bolts quest [bag]", bag = "tak", bag_id = 1987, nagroda = "brak", insides = {2547,5,2546,12}},
				[54291] = {storage = 99475, stg_id = 1, quest_name = "power bolts quest [two handed sword]", rewards = {2377,1}},
				[54292] = {storage = 99476, stg_id = 1, quest_name = "power bolts quest [book]", book = "tak", book_id = 1955, nagroda = "brak", book_text = "... the dream master retreated to the world behind the curtains of awareness, I can't reach him, now that the last hall of dreams is lost to the forces of evil. I sealed Goshnar's grave so no one can enter the pits without knowing our secret. I will try to retreat to Knightwatch Tower and wait for a dreamer in possession of the key. So we can travel on one of the dream paths to a saver place to regroup and to plan a counter-attack. I fear we have to recruit new members and we have only little time left to train them. I hope Taciror will not waste our last forces in a futile attack on the Ruthless Seven. Our order has never truly recovered from the losses in our war against Goshnar and his undead hordes. Now that our leaders and best warriors have died in the attack on the demonic forces, we don't stand a chance against our enemies. Our only hope is to gather new forces and to recapture the chamber of dreams. Of course I know the right method to distract Hugo long enough to get past him. The dream master is important to teach our recruits in the old ways and in the art of dreamwalking. We need a leader for our cause and we need him badly. Headless we will fail and fall. It is already uncertain who took the Nightmare Chronicles out of the pits and I have no idea where they are hidden. They are fighting about power and influence but unity is the key to success. Our whole order is centred about unity. All our rituals and procedures rooted on unity and sharing, they can't neglect that."},
				[54293] = {storage = 99477, stg_id = 1, quest_name = "The Counterspell(The Shattered Isles Quest) [spellbook of dragha]", rewards = {6120,1}},
				
				[54294] = {storage = 99478, stg_id = 1, quest_name = "Braindeath Quest [red backpack]", bag = "tak", bag_id = 2000, nagroda = "brak", insides = {7591,2,7620,1,2120,1,2554,1,2152,13}},
				
				---> Helmet of the Ancients
				[54295] = {storage = 99479, stg_id = 1, wym_item = 2349, wym_count = 1, wym_item_akcja = "remove", quest_name = "Vashresamun [Left Horn]", rewards = {2338,1}},
				[54296] = {storage = 99480, stg_id = 1, wym_item = 2348, wym_count = 1, wym_item_akcja = "remove", quest_name = "Rahemos [Helmet Piece]", rewards = {2340,1}},
				[54297] = {storage = 99481, stg_id = 1, wym_item = 2352, wym_count = 1, wym_item_akcja = "remove", quest_name = "Omruc [Helmet Adornment]", rewards = {2341,1}},
				[54298] = {storage = 99482, stg_id = 1, wym_item = 2354, wym_count = 1, wym_item_akcja = "remove", quest_name = "Dipthrah [Helmet Adornment]", rewards = {2339,1}},
				[54299] = {storage = 99483, stg_id = 1, wym_item = 2353, wym_count = 1, wym_item_akcja = "remove", quest_name = "Mahrdis [Helmet Ornament]", rewards = {2335,1}},
				[54300] = {storage = 99484, stg_id = 1, wym_item = 2350, wym_count = 1, wym_item_akcja = "remove", quest_name = "Morguthis [Right Horn]", rewards = {2337,1}},
				[54301] = {storage = 99485, stg_id = 1, wym_item = 2351, wym_count = 1, wym_item_akcja = "remove", quest_name = "Thalas [Gem Holder]", rewards = {2336,1}},
				
				---> Rookgard
				[54302] = {storage = 99486, stg_id = 1, quest_name = "dragon corpse quest [bag]", bag = "tak", bag_id = 1987, nagroda = "brak", insides = {2480,1,2530,1}},
				[54303] = {storage = 99487, stg_id = 1, quest_name = "doublet quest", rewards = {2485,1}},
				[54304] = {storage = 99488, stg_id = 1, quest_name = "torch quest", rewards = {2050,1}},
				[54305] = {storage = 99489, stg_id = 1, quest_name = "rapier quest", rewards = {2384,1}},
				[54306] = {storage = 99490, stg_id = 1, quest_name = "combat knife quest", rewards = {2404,1}},
				
				
				---> Dalej Mainland
				[54330] = {storage = 99500, stg_id = 1, quest_name = "Mad Mage Room Quest [key: 3620]", klucz = "tak", klucz_id = 2088, nagroda = "brak", klucz_aid = 3620,},
				[54331] = {storage = 99501, stg_id = 1, quest_name = "Klucz z szafki Markwina [key: 3650]", klucz = "tak", klucz_id = 2088, nagroda = "brak", klucz_aid = 3650,},
				[54332] = {storage = 9943232, stg_id = 1, quest_name = "Iron Ore Quest", rewards = {5880,1}},
				---> Pits of Inferno rewards
				
				[10544] = {storage = 52323, stg_id = 1, stg_spec = 762321, stg_spec_id = 1, quest_name = "PoI Quest (arcane staff)", rewards = {2453,1}},
				[10545] = {storage = 52323, stg_id = 1, stg_spec = 762322, stg_spec_id = 1, quest_name = "PoI Quest (avenger)", rewards = {6528,1}},
				[10546] = {storage = 52323, stg_id = 1, stg_spec = 762323, stg_spec_id = 1, quest_name = "PoI Quest (arbalest)", rewards = {5803,1}},
				[10547] = {storage = 52324, stg_id = 1, quest_name = "PoI Quest (soft boots)", rewards = {6132,1}},
				[10549] = {storage = 52325, stg_id = 1, quest_name = "PoI Quest (stuffed dragon)", rewards = {5791,1}},
				[10550] = {storage = 52326, stg_id = 1, quest_name = "PoI Quest (frozen starlight)", rewards = {2361,1}},
				[10559] = {storage = 52327, stg_id = 1, quest_name = "PoI Quest (100 platinum coins)", rewards = {2152,100}},
				[10560] = {storage = 52330, stg_id = 1, quest_name = "PoI Quest (backpack of holding)", bag = "tak", bag_id = 2365, nagroda = "brak", insides = {12559,1 ,12565,1,12563,1,12561,1}},
				
				
				--[[
				Looks like the fox is out!\nMore luck next time!\nSigned:\nthe horned fox\n
				
				
				
				[54118] = {storage = 99302, stg_id = 1, quest_name = "", rewards = {,}},
				[54119] = {storage = 99302, stg_id = 1, quest_name = "", rewards = {,}},
				
				]]--
				}

function onUse(cid, item, fromPosition, itemEx, toPosition)
local v = config[item.actionid]
	if v then
		local exhaustionInSeconds = 2
		local storage = 34237
		if(exhaustion.check(cid, storage) == true) then
			return doPlayerSendCancel(cid, "You have quest Exhaustion (2 sec)!")
		end
		exhaustion.set(cid, storage, exhaustionInSeconds)
	
		---> Required Cap Checking
		local required_cap = 0
		if v.nagroda ~= "brak" then
			for i = 1, #v.rewards/2 do
				if ((v.rewards[i*2-1] ~= nil) and (v.rewards[i*2] ~= nil)) then
					required_cap = required_cap + getItemWeightById(v.rewards[i*2-1], v.rewards[i*2])
				end
			end
		end

		if v.bag == "tak" then
			if v.nagroda ~= "brak" then
				required_cap = required_cap + getItemWeightById(v.bag_id, 1)
			elseif v.nagroda == "brak" then
				required_cap = required_cap + getItemWeightById(v.bag_id, 1)
			end
			for i = 1, #v.insides/2 do
				if ((v.insides[i*2-1] ~= nil) and (v.insides[i*2] ~= nil)) then
					required_cap = required_cap + getItemWeightById(v.insides[i*2-1], v.insides[i*2])
				end
			end
		end
			
		if v.book == "tak" then
			required_cap = required_cap + getItemWeightById(v.book_id, 1)
		end
		
		if v.klucz == "tak" then
			required_cap = required_cap + getItemWeightById(v.klucz_id, 1)
		end
			
		if	required_cap > getPlayerFreeCap(cid) then
			return doPlayerSendTextMessage(cid, 25, 'To take this reward you need '.. required_cap ..' capity free.')
		end
		--->
		
		
		if getPlayerStorageValue(cid, v.storage) ~= -1 then
			return doPlayerSendTextMessage(cid, 25, '' .. getItemArticleById(item.itemid) .. ' ' .. getItemNameById(item.itemid) ..' is empty.')
		end
	
		if v.wym_stg ~= nil then
			if getPlayerStorageValue(cid, v.wym_stg) < v.wym_stg_id then
				return doPlayerSendTextMessage(cid, 25, 'Sorry you are not authorized to do this quest(if you think it\'s bug, report it).')
			end
		end
	
		if v.wym_item ~= nil then
			if getPlayerStorageValue(cid, v.storage) == -1 then
				if getPlayerItemCount(cid, v.wym_item) >= v.wym_count then
					if v.wym_item_akcja == "remove" then
						doPlayerRemoveItem(cid, v.wym_item, v.wym_count)
					end
				elseif getPlayerItemCount(cid, v.wym_item) < v.wym_count then
					return doPlayerSendTextMessage(cid, 25, 'Sorry to take this reward you need ' .. v.wym_count .. 'x '.. v.wym_item ..'.')
				end
			end
		end
	
		if getPlayerStorageValue(cid, v.storage) == -1 then
			x = 'You have found '
	
			if v.nagroda ~= "brak" then
				for i = 1, #v.rewards/2 do
					doPlayerAddItem(cid, v.rewards[i*2-1], v.rewards[i*2])
					x = x .. getItemNameById(v.rewards[i*2-1]) .. (i < #v.rewards/2 - 1 and ', ' or i == #v.rewards/2 - 1 and ' and ' or '')
				end
			end
			
			if v.bag == "tak" then
				dodanie = doPlayerAddItem(cid, v.bag_id, 1)
				if v.nagroda ~= "brak" then
					x = x .. ' and ' .. getItemNameById(v.bag_id)
				elseif v.nagroda == "brak" then
					x = x .. getItemArticleById(v.bag_id) .. ' ' .. getItemNameById(v.bag_id)
				end
				
				for i = 1, #v.insides/2 do
					doAddContainerItem(dodanie, v.insides[i*2-1], v.insides[i*2])
				end
			end
			
			if v.book == "tak" then
				book_dodanie = doPlayerAddItem(cid, v.book_id, 1)
				doSetItemText(book_dodanie,"" .. v.book_text .. "")
				if v.nagroda ~= "brak" then
					x = x .. ' and ' .. getItemNameById(v.book_id)
				elseif v.nagroda == "brak" then
					x = x .. getItemArticleById(v.book_id) .. ' ' .. getItemNameById(v.book_id)
				end
			end
			
			if v.klucz == "tak" then
				kluczyk = doCreateItemEx(v.klucz_id, 1)
				doItemSetAttribute(kluczyk, "aid", v.klucz_aid)
				doPlayerAddItemEx(cid, kluczyk, false)
				if v.nagroda ~= "brak" then
					x = x .. ' and ' .. getItemNameById(v.klucz_id)
				elseif v.nagroda == "brak" then
					x = x .. getItemArticleById(v.klucz_id) .. ' ' .. getItemNameById(v.klucz_id)
				end
			end
		
		
		x = x .. '.' 
		setPlayerStorageValue(cid, v.storage, v.stg_id)
		if v.stg_spec ~= nil then
			setPlayerStorageValue(cid, v.stg_spec, v.stg_spec_id)
		end
		if v.spec_efekt ~= nil then
			doSendMagicEffect(getCreaturePosition(cid), v.spec_efekt)
		end
		return doPlayerSendTextMessage(cid, 25, x)
	end
end
return true
end



sorry for polish in script, but i think you understand,

tak = yes
brak = nil
klucz = key
klucz_aid = actionID of key
nagroda = reward

you can translate it self using notepad++ and: ctrl +f

find TAK and change for YES,
find KLUCZ and change for KEY, etc.



;p

- - - Updated - - -

[actionid] = {storage = storage key of quest, stg_id = storage value of quest, quest_name = name of quest ;p, rewards = {itemid 1,item count 1, itemid 2, item count 2, etc.}},
 
Last edited:
Thankyou for this Seminari! I have some problems with system.lua that nobody seems to know how to fix (or they just don't pay much attention to my posts). I'll use your system hopefully it won't bug out like system.lua did for seemingly no reason!


Thanks again,
Justin..
 
Okey i fixed the capity problem.

From now my script checks capity of rewards and if player don't have cap then script will send msg
return doPlayerSendTextMessage(cid, 25, 'To take this reward you need '.. required_cap ..' capity free.')
 
\O/ Errors \O/

kOZtM.png
 
[25/12/2012 23:50:09] Warning: [Event::checkScript] Can not load script. /scripts/quests/quest.lua
[25/12/2012 23:50:09] data/actions/scripts/quests/quest.lua:1: '=' expected near 'config'

- - - Updated - - -

any idear?

- - - Updated - - -

fixed

- - - Updated - - -

i think its not fixed how i have to set action and unue id? in chest? set number of quest in b action id? and un = 0? so donst work?!
 
u don't need to change unique in box, only actionid

- - - Updated - - -

btw. GM can move chests with action id, but player can't!
 
NICE!! ~Liked...

Im using a variation of this script.... using my own quests and vocation rewards...
Small vocation addition... Example
Code:
-- VOCATION REWARDS[54138] = {storage = 99323, stg_id = 1, quest_name = "Noble Armor Quest", reward = "nil", voc = "yes", voc_rewards = {druid_rewards = {8871,1, 7730,1, 8910,1}, sorc_rewards = {8871,1, 7730,1, 8922,1}, pala_rewards = {2491,1, 2487,1, 2488,1, 8849,1}, knight_rewards = {2491,1, 2487,1, 2488,1, 2407,1, 2519,1}}},
Also changed cap check to this
Code:
if v.reward ~= "nil" then
            for i = 1, #v.rewards/2 do
                if ((v.rewards[i*2-1] ~= nil) and (v.rewards[i*2] ~= nil)) then
                    required_cap = required_cap + getItemWeightById(v.rewards[i*2-1], v.rewards[i*2])
                end
            end
        elseif v.voc == "yes" then
            if vocation == 1 then
                for i = 1, #v.voc_rewards.knight_rewards/2 do
                    if ((v.voc_rewards.sorc_rewards[i*2-1] ~= nil) and (v.voc_rewards.sorc_rewards[i*2] ~= nil)) then
                        required_cap = required_cap + getItemWeightById(v.voc_rewards.sorc_rewards[i*2-1], v.voc_rewards.sorc_rewards[i*2])
                    end
                end
            elseif vocation == 2 then
                for i = 1, #v.voc_rewards.druid_rewards/2 do
                    if ((v.voc_rewards.druid_rewards[i*2-1] ~= nil) and (v.voc_rewards.druid_rewards[i*2] ~= nil)) then
                        required_cap = required_cap + getItemWeightById(v.voc_rewards.druid_rewards[i*2-1], v.voc_rewards.druid_rewards[i*2])
                    end
                end
            elseif vocation == 3 then
                for i = 1, #v.voc_rewards.pala_rewards/2 do
                    if ((v.voc_rewards.pala_rewards[i*2-1] ~= nil) and (v.voc_rewards.pala_rewards[i*2] ~= nil)) then
                        required_cap = required_cap + getItemWeightById(v.voc_rewards.pala_rewards[i*2-1], v.voc_rewards.pala_rewards[i*2])
                    end
                end
            else
                for i = 1, #v.voc_rewards.knight_rewards/2 do
                    if ((v.voc_rewards.knight_rewards[i*2-1] ~= nil) and (v.voc_rewards.knight_rewards[i*2] ~= nil)) then
                        required_cap = required_cap + getItemWeightById(v.voc_rewards.knight_rewards[i*2-1], v.voc_rewards.knight_rewards[i*2])
                    end
                end
            end
        end
Although im sure there is a better way of doing that...... maybe a for statement with var = playervoc??
Anyways also added something like above to give players the rewards...
Code:
doPlayerSendTextMessage(cid, 29, "You have just finished the quest: " ..v.quest_name..".")
            x = 'You search the chest and find the following items: '
 
            if v.reward ~= "nil" then
                for i = 1, #v.rewards/2 do
                    doPlayerAddItem(cid, v.rewards[i*2-1], v.rewards[i*2])
                    x = x .. getItemNameById(v.rewards[i*2-1]) .. (i < #v.rewards/2 - 1 and ', ' or i == #v.rewards/2 - 1 and ' and ' or '')
                end
            elseif v.voc == "yes" then
                if vocation == 1 then
                    for i = 1, #v.voc_rewards.sorc_rewards/2 do
                        doPlayerAddItem(cid, v.voc_rewards.sorc_rewards[i*2-1], v.voc_rewards.sorc_rewards[i*2])
                        x = x .. getItemNameById(v.voc_rewards.sorc_rewards[i*2-1]) .. (i < #v.voc_rewards.sorc_rewards/2 - 1 and ', ' or i == #v.voc_rewards.sorc_rewards/2 - 1 and ' and ' or '')
                    end
                elseif vocation == 2 then
                    for i = 1, #v.voc_rewards.druid_rewards/2 do
                        doPlayerAddItem(cid, v.voc_rewards.druid_rewards[i*2-1], v.voc_rewards.druid_rewards[i*2])
                        x = x .. getItemNameById(v.voc_rewards.druid_rewards[i*2-1]) .. (i < #v.voc_rewards.druid_rewards/2 - 1 and ', ' or i == #v.voc_rewards.druid_rewards/2 - 1 and ' and ' or '')
                    end
                elseif vocation == 3 then
                    for i = 1, #v.voc_rewards.pala_rewards/2 do
                        doPlayerAddItem(cid, v.voc_rewards.pala_rewards[i*2-1], v.voc_rewards.pala_rewards[i*2])
                        x = x .. getItemNameById(v.voc_rewards.pala_rewards[i*2-1]) .. (i < #v.voc_rewards.pala_rewards/2 - 1 and ', ' or i == #v.voc_rewards.pala_rewards/2 - 1 and ' and ' or '')
                    end
                else
                    for i = 1, #v.voc_rewards.knight_rewards/2 do
                        doPlayerAddItem(cid, v.voc_rewards.knight_rewards[i*2-1], v.voc_rewards.knight_rewards[i*2])
                        x = x .. getItemNameById(v.voc_rewards.knight_rewards[i*2-1]) .. (i < #v.voc_rewards.knight_rewards/2 - 1 and ', ' or i == #v.voc_rewards.knight_rewards/2 - 1 and ' and ' or '')
                    end
                end
            end
 
nice, thx for keep my script alive ;p

doPlayerSendTextMessage(cid, 29, "You have just finished the quest: " ..v.quest_name..".")

should be last line in script because if this will be first then if player won't have enough cap or he allready done this quest, msg will appear but quest will be uncompleted yet ;p

- - - Updated - - -

btw, better way to vocation rewards table:

Lua:
rewards_for_vocations = {
						[1] = {rewards = {2222, 1, 3333, 1}},
						[2] = {rewards = {4242, 2, 4211, 5}},
						}

and:
player_voc = getPlayerVocation(cid) --<--- im not sure is correct function to check player voc
for a = 1, #rewards_for_vocations[player_voc].rewards do
doPlayerAddItem(cid, a, a+1)
end
 
And how it's better than basic TFS questsystem with chests in mapeditor?
It only has books with text support, I see no other differences.
 
Back
Top