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

CreatureEvent [CreatureEvent/Npc] Killing in the name of... [All monsters, all tasks with rewards]

How I Add Rewards Scripts ? If Players Kill All Monsters Npc Give The Item And No Tp To Monsters.
Make One Example, And I Make The Other

Thx, Plx ;D
 
Just curious...
does it give you a storage to be able to kill a boss after certain tasks and does it have special tasks(demondras-tiq and deemons)?

Regards
 
A decent base for a much better script, but certainly one of the best scripts of this type that are available publicly.
 
What script do i edit? the one in data/npc/scripts or the one in data/creaturescripts/scripts ?????????
 
Im getting this error after finishing the task and reporting:
Code:
[16/12/2009 20:00:06] [Error - Npc interface] 
[16/12/2009 20:00:06] data/npc/scripts/Grizzly Adams.lua:onCreatureSay
[16/12/2009 20:00:06] Description: 
[16/12/2009 20:00:06] data/npc/scripts/Grizzly Adams.lua:118: attempt to call global 'doPlayerAddExperiene' (a nil value)
[16/12/2009 20:00:06] stack traceback:
[16/12/2009 20:00:06] 	data/npc/scripts/Grizzly Adams.lua:118: in function 'callback'
[16/12/2009 20:00:06] 	data/npc/lib/npcsystem/npchandler.lua:390: in function 'onCreatureSay'
[16/12/2009 20:00:06] 	data/npc/scripts/Grizzly Adams.lua:74: in function <data/npc/scripts/Grizzly Adams.lua:74>
 
Im getting this error after finishing the task and reporting:
Code:
[16/12/2009 20:00:06] [Error - Npc interface] 
[16/12/2009 20:00:06] data/npc/scripts/Grizzly Adams.lua:onCreatureSay
[16/12/2009 20:00:06] Description: 
[16/12/2009 20:00:06] data/npc/scripts/Grizzly Adams.lua:118: attempt to call global 'doPlayerAddExperiene' (a nil value)
[16/12/2009 20:00:06] stack traceback:
[16/12/2009 20:00:06] 	data/npc/scripts/Grizzly Adams.lua:118: in function 'callback'
[16/12/2009 20:00:06] 	data/npc/lib/npcsystem/npchandler.lua:390: in function 'onCreatureSay'
[16/12/2009 20:00:06] 	data/npc/scripts/Grizzly Adams.lua:74: in function <data/npc/scripts/Grizzly Adams.lua:74>

My bad, i wrote bad a function...

Find "doPlayerAddExperiene" and replace with "doPlayerAddExperience"
 
Sorry my ignorance but is this a script, and how to use this, where i put this ?
--Troll task example:

[1] = {questStarted = 1510, questStorage = 65000, killsRequired = 100, raceName = "Trolls", rewards = {first = {enable = true, type = "exp", values = 200}, second = {enable = true, type = "money", values = 200}, third = {enable = false, type = nil, values = {nil, nil}}}},

[1] = number of task
questStarted = storage to start the task
questStorage = storage to check the kills
killsRequired = kills required to finish the task
raceName = race name
rewards = this contains the possible rewards.
rewards.first = first reward
rewards.first.enable = enable or disable the reward (true or false)
rewards.first.type = type of reward ("exp" = give exp, "boss" = teleport player to the boss room (edi the positions), "money" = give money to player, "item" = give item to player, "storage" = set an storage to the player (maybe for a quest like demon oak))
reward.first.values = the values of the reward (how many exp will be gived, money, storage, etc..) ~NOTE:~ Only use a table value for "boss", "storage" and "item" (These types requires 2 values) for "exp" and "money" use (Ex:) values = 15000)

The same thing with rewards.second and rewards.third
 
That's not a script DGPRADO, look deep into it, and you will notice is a short tutorial.

FUNCTION = DEFINITION FOR YOU
 
YOu ned to put this only into the monsters that will be used in this script...
 
Back
Top