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

Solved Task System - Changes

killing

Member
Joined
Feb 23, 2012
Messages
815
Reaction score
11
Location
BIH
Hello
I need a little help!.
How to change this Script to Reward be a Item and Where to put Item.
LUA:
local tasks =
{
	[1] = {questStarted = 1510, questStorage = 65000, killsRequired = 10, raceName = "Rotworm", rewards = {{enable = true, type = "exp", values = 200}, {enable = true, type = "money", values = 200}}},
 
}
rep++

- - - Updated - - -

BUMP!
 
Last edited:
Is here
Code:
type = "exp", values = 200}
change for this
Code:
type = "item", values = 2160,100}
NOTE: 2160 is ID of item and 100 is value for this item

at least here's how
 
https://i.imgur.com/B9FvUme.png

- - - Updated - - -

Not working

- - - Updated - - -

bump

- - - Updated - - -

anyone?

- - - Updated - - -

:(
:(

- - - Updated - - -

BUMP!!

- - - Updated - - -

You well maybe need this to help me :)
http://pastebin.com/00zxAxdn
http://pastebin.com/pVvkdUzr
 
LUA:
[1] = {questStarted = 1510, questStorage = 65000, killsRequired = 10, raceName = "Rotworm", rewards = {{enable = true, type = "item", values = {2159,50}}, {enable = true, type = "item", values = {2400,1}}}},
Script should give 50 gold coins (ID 2159) and 1 magic sword (ID 2400)
 
item ID :2159 is not for Gold Coins :)
Is it possible to delete magic sword?

- - - Updated - - -

its Not working!
yU3LpnD.png


- - - Updated - - -

BUMP

- - - Updated - - -

bump

- - - Updated - - -

bump

- - - Updated - - -

anyone?
please helppp
 
Bump bump, task system has only small bug, in line 131 on NPC file is:
LUA:
doPlayerAddItem(cid, v.rewards[i].values[1], tasks[t].rewards[i].values[2])
and should be:
LUA:
doPlayerAddItem(cid, tasks[t].rewards[i].values[1], tasks[t].rewards[i].values[2])
You can report it in thread with task system. I don't know which is that.
 
Back
Top