• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

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

I havent tryed it yet, and i should before i go asking questions but when my players finish all the tasks can they redo them all over again? or what?
 
Hello I have Problem my tfs writing Unable to load config!

[1] = 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}}}},
rewards.first = "money"
rewards.first.enable = true
rewards.first.type = "money"
reward.first.values = 2000
 
Last edited:
All works almost fine. Only can't seem to figure out how to give exp after someone finished 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}}}},

edit: gave u rep btw
 
Last edited:
one problem

hello, when I put the event on monsters and kill the monster the sever crashes.
what is the problem?
I use tfs 0.3.6

thank you very much.
 
For people who don't know much about lua, and don't know how to add rewars or something like that.

When i make a script, i think in people that are new in this, i try to write script with the minimun configuration.

If i write ascript and i write in my post (Example: "Configure rewards creating or deleting the rewards table, or disabling the rewards").. noobs can write something bad and get a error in console..if that happens, the my post will have so much replies about errors or something..

SORRY IF I WRITE IN BAD ENGLISH ;D!

Well, it seems that every second post there is about misconfiguration or error in script. I don't get it, if wou wrote it for newbies then why are they having problems with it?
 
Well, it seems that every second post there is about misconfiguration or error in script. I don't get it, if wou wrote it for newbies then why are they having problems with it?

Because people don't follow instructions, they just copy the script and paste in they servers.
 
problem and npc

step by step and your post goes on to say that I have npc 0 trolls killed, you need to kill 100.

in the database records the storage and task 1510 value 1, and 65000 value 0 monsters are the same name, then I do not understand what happens.

in the previous post was wrong to publish in my login file sorry.




sorry for my bad English
 
If script isn't working, try changing:
Lua:
local creature = questCreatures[getCreatureName(target)]

To:
Lua:
local creature = questCreatures[getCreatureName(target):lower()]

If script still not working, then change names in monsters files or script. The idea is that the names in script and monsters files must be equal.
 
01:00 Michael [978]: report
01:00 Grizzly Adams: Current 1 Trolls killed, you need to kill 100.

I've killed many trolls but i can not finish task :/ npc says all time "1 trolls killed"
there are no errors in console..

creaturescripts/scrips/killinginthenameof.lua
Code:
   ["troll"] = {questStarted = 1510, questStorage = 65000, creatureStorage = 15000, killsRequired = 10, raceName = "Trolls"},

npc/scripts/killinginthenameof.lua
Code:
        [1] = {questStarted = 1510, questStorage = 65000, killsRequired = 10, 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}}}},

monster/Trolls/troll.xml
Code:
<monster name="Troll" nameDescription="a troll" race="blood" experience="20" speed="126" manacost="290">

Is there any error? [tfs 0.3.6]
 
Well i've fixed it and now tasks work but there is next problem:
killing40.png

ive killed all requested monsters and i wasn't teleported to boss. what's wrong?

data/npc/scripts/killinginthenameof.lua:
killinginthenameof.lua

whats wrong?
TFS 0.3.6
 
01:00 Michael [978]: report
01:00 Grizzly Adams: Current 1 Trolls killed, you need to kill 100.

I've killed many trolls but i can not finish task :/ npc says all time "1 trolls killed"
there are no errors in console..

creaturescripts/scrips/killinginthenameof.lua
Code:
   ["troll"] = {questStarted = 1510, questStorage = 65000, creatureStorage = 15000, killsRequired = 10, raceName = "Trolls"},

npc/scripts/killinginthenameof.lua
Code:
        [1] = {questStarted = 1510, questStorage = 65000, killsRequired = 10, 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}}}},

monster/Trolls/troll.xml
Code:
<monster name="Troll" nameDescription="a troll" race="blood" experience="20" speed="126" manacost="290">

Is there any error? [tfs 0.3.6]

In creaturescripts/scrips/killinginthenameof.lua Change "troll" to "Troll"

@The other bug!

In wich task you get that error?
 
It's First task where npc should teleport me to boss so its when i said "report" after killed 300 Crocodiles

how can i fix problem?
thanks
 
It's First task where npc should teleport me to boss so its when i said "report" after killed 300 Crocodiles

how can i fix problem?
thanks

Maybe you wrote bad the position because i can't find any problem in your script.
 
Darkhaos help me here please:thumbup:

Code:
[1] [dragon] kills: 350
[2] [ancient scarab] kills: 400
[3] [giant spider] kills: 450
[4] [hydra] kills: 500
[5] [sea serpent] kills: 550
[6] [dragon lord] kills: 600
[7] [serpent spawn] kills: 650
[8] [behemoth] kills: 700
[9] [hellfire] fighter kills: 750
[10][demon] kills: 800
[11][ghastly dragon] kills: 1600

Can you make this list for me in creature scripts and NPC^_^ Please i made it i get errors im noob at scripting:$


Yours,
exiT
 
Back
Top