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

NPC [TFS 1.1] Monster Tasks

I wrote my own task code for modal windows around 18 months ago. I wouldnt mind sharing it when i've got myself up to date on TFS 1.1 and TFS 1.2 and tweaked the code. (Originally based on TFS 1.0). It also supports having several monsters in a group, having alternative tasks including the same monster etc. At the moment the interface looks something like this when adding new tasks. If there is any interest i can probably rewrite it and release it.

[5] = {questStarted = 65003, questStorage = 66003, killsRequired = 300, raceName = "Elfs", creatures = {"elf", "elf scout", "elf arcanist"}, level = 5, storage = 30020, repeatable = false, rewards = {{enable = true, type = "exp", values = 200000}, {enable = true, type = "money", values = 3000}, {enable = true, type = "points", values = 1}, {enable = true, type = "item", values = {2789,200}}}},

bWvCb9I.jpg
3TeF9G8.jpg
 
By the way, anyone know of an easy way to make monster kills count if you are in the same party like the shared exp function does? I havent checked into this myself as i havent taken myself time to start rewriting my script yet. The modal windows gets bugged when using other scripts using modalwindows due sloppy coding and people didint really use modalwindows back then. Secondly i'm going to make some code cleanup including converting all the 0.4,0.3 lib parts to their 1.2 counterparts without using the compat lib. After that il drop everything i got and perhaps someone can make it even better!
 
I have problem when it comes to count number of killed monsters! It doesn't count them at all! No log error. I'm using tfs 1.1 10.76 I just copied your script

EDIT: ok nvm, i changed storages values
 
Last edited:
where does the "killtasks.lua" go?

edit: i suppose it goes to
data\creaturescripts\scripts
hope im right
 
Last edited:
@Heatblade12

Above you'll see: creaturescripts.xml
It goes into the folder creaturescripts -> scripts. :)

Kind Regards,
Eldin.
 
i need help i want to at rotworm and the task i have this in
task.lua/["rotworm"] = {storage = 5014, mstorage = 19004, amount = 10, exp = 500, items = {{id = 8301, count = 2}, {id = 2152, count = 50}}}
and this in
killtask/['rotworm'] = {amount = 10, storage = 19004, startstorage = 5014, startvalue = 1}

but the npc say only what what what
 
I wrote my own task code for modal windows around 18 months ago. I wouldnt mind sharing it when i've got myself up to date on TFS 1.1 and TFS 1.2 and tweaked the code. (Originally based on TFS 1.0). It also supports having several monsters in a group, having alternative tasks including the same monster etc. At the moment the interface looks something like this when adding new tasks. If there is any interest i can probably rewrite it and release it.

[5] = {questStarted = 65003, questStorage = 66003, killsRequired = 300, raceName = "Elfs", creatures = {"elf", "elf scout", "elf arcanist"}, level = 5, storage = 30020, repeatable = false, rewards = {{enable = true, type = "exp", values = 200000}, {enable = true, type = "money", values = 3000}, {enable = true, type = "points", values = 1}, {enable = true, type = "item", values = {2789,200}}}},

bWvCb9I.jpg
3TeF9G8.jpg

You ever finish this?
 
How can i change to give party members both task kills if theyre in the same task? Cause it only gives the count to whoever did more damage
 
i need help i want to at rotworm and the task i have this in
task.lua/["rotworm"] = {storage = 5014, mstorage = 19004, amount = 10, exp = 500, items = {{id = 8301, count = 2}, {id = 2152, count = 50}}}
and this in
killtask/['rotworm'] = {amount = 10, storage = 19004, startstorage = 5014, startvalue = 1}

but the npc say only what what what
I know that your post is quite old but please check all "{" and "}".
 
Hi limos and others, Is it posible to make it so only 1 player at the time can talk to the npc?

i want to use this for a 7.4 server (tfs1.2)

Ries.
 
How can i edit the script so the mission id doesnt start with ONE instead another number?
 
I love your script!!

BTW: how can I do for repeat tasks?

ex: when u did demon task, you can do it again.
 
Back
Top