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

Task NPC

ZeeBeast

Preferable Beta Tester
Joined
Dec 5, 2013
Messages
206
Reaction score
10
Location
United States
Can anyone help me with a task NPC?
I would like an NPC that gives a task to kill "X" amount of a certain monster for "Y" amount of Exp or skills.
The server I am working with uses TFS 0.4
Thank you for any help.
 
Well here are a few ideas:
You could generate the random difficulty with this amusing 5 levels of difficulty:
Code:
math.random(1, 5)
Then assign that value to a variable, say "diff"

Then do some ifs to test the variable.
Code:
if diff == 1 {
what ever you want to happen
} else
if diff == 2  {
some more code
} else
if diff == 3 {
I'm sure you get the idea
}

I'm not sure if this is how you do it in lua though
 
Back
Top