NPC [TFS 1.1] Monster Tasks

Giddran

Techical Artist
Joined
Sep 8, 2007
Messages
71
Best answers
0
Reaction score
25
Location
Sweden
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}}}},

 

Giddran

Techical Artist
Joined
Sep 8, 2007
Messages
71
Best answers
0
Reaction score
25
Location
Sweden
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!
 

Metal Mouth

Developer
Joined
Oct 7, 2015
Messages
55
Best answers
0
Reaction score
7
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:

Heatblade12

Member
Joined
Aug 12, 2013
Messages
24
Best answers
0
Reaction score
6
where does the "killtasks.lua" go?

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

Eldin

Eldin Projects
Premium User
Joined
Jun 12, 2008
Messages
1,304
Best answers
0
Reaction score
534
Location
Sweden
@Heatblade12

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

Kind Regards,
Eldin.
 

Caduceus

Unknown Member
Joined
May 10, 2010
Messages
308
Best answers
1
Reaction score
19
Can anyone help me make this a daily reset?
 

Dope23

Member
Joined
May 19, 2014
Messages
181
Best answers
0
Reaction score
6
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
 

strutZ

Australian OT Member {AKA Beastn}
Joined
Nov 16, 2014
Messages
1,344
Best answers
6
Reaction score
479
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}}}},

You ever finish this?
 

SlayingWorld

Active Member
Joined
Jan 23, 2014
Messages
122
Best answers
0
Reaction score
29
Location
USA
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
 

Kuzyn

Premium User
Premium User
Joined
Dec 19, 2009
Messages
1,376
Best answers
2
Reaction score
386
Location
Gdansk, Poland.
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 "}".
 

riesjuh666

Member
Joined
Sep 26, 2010
Messages
39
Best answers
0
Reaction score
5
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.
 

wafuboe

Member
Joined
Dec 24, 2010
Messages
824
Best answers
2
Reaction score
13
How can i edit the script so the mission id doesnt start with ONE instead another number?
 

Vitich

Member
Joined
Nov 28, 2012
Messages
263
Best answers
0
Reaction score
11
I love your script!!

BTW: how can I do for repeat tasks?

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