• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

TFS 1.X+ RewardsTask System

Pedrook

Advanced OT User
Joined
May 24, 2009
Messages
484
Solutions
3
Reaction score
225
Location
Brazil
GitHub
pedrogiampietro
I am not able to add reward more than 1 item per task, if I add 1 item it works normally, if I add 2.3 it only gives the first item.

Task.lua -- Creaturescript
Task_window.lua -- Creaturescript
Task_lib.lua -- Libs

I have read the part of creaturescripts and already tried in some ways.

LUA:
[29] = {questStarted = 14023, questStorage = 14123, killsRequired = 6666, raceName = "Demons", repeatable = false, rewards = {{enable = true, type = "exp", values = 1000000}, {enable = true, type = "item", values = {10305,1}, {2195,1}}}}

And

LUA:
[29] = {questStarted = 14023, questStorage = 14123, killsRequired = 6666, raceName = "Demons", repeatable = false, rewards = {{enable = true, type = "exp", values = 1000000}, {enable = true, type = "item", values = {10305,1},  {enable = true, type = "item", values = {2195}}}}}}}

if anyone can of the one hand.
 
Solution
LUA:
rewards = {{enable = true, type = "exp", values = 1000000}, {enable = true, type = "item", values = {10305,1}},  {enable = true, type = "item", values = {2195,1}}}
LUA:
rewards = {{enable = true, type = "exp", values = 1000000}, {enable = true, type = "item", values = {10305,1}},  {enable = true, type = "item", values = {2195,1}}}
 
Solution
Back
Top