[INFO]nFlavor Script(Area-Monster Spawn)

04/07/2022 12:34 YamatosDeath#1
As furkantr0771 asked few days ago regarding
Quote:
Originally Posted by furkantr0771 View Post
I wonder how to add monsters to dungeons, I searched a lot but couldn't find it.
I'm sorry for my bad english
I decided to make a quick TUT that explains the fundamentals of the Area monster spawning via nF Script.

With NfMapEditor ->
[Only registered and activated users can see links. Click Here To Register...]

After you open your wanted map files make sure to have the (Always show event areas) activated in the view menu ->
[Only registered and activated users can see links. Click Here To Register...]

Then head to the event area editing menu with either CTRL + F7 or manually looking for it in the side -> [Only registered and activated users can see links. Click Here To Register...]

Once you get into the editing menu select (Event area creation mode)
then select the area you want to add the monsters spawning to->[Only registered and activated users can see links. Click Here To Register...]

now right-click in the area you have made and go to properties, then set the function to mob( "The Monster spawning box id you want", #box)
EX:mob( 2000174, #box) ->
[Only registered and activated users can see links. Click Here To Register...]

Then head to Monster_respawning file in your lua scripts, scroll down till you find the end of elseif's and add
PHP Code:
elseif ID == "Your Monster spawning box id" then
        monster_ID 
== {MonsterId,MonsterId,MonsterId,MonsterId,MonsterId,MonsterId}
        
density = { 0.50.30.310.80.5 } -- the density of the monster spawning on the box
        interval 
= { 300010001200150020003000 } -- time in seconds 
EX:
[Only registered and activated users can see links. Click Here To Register...]


That should be it, I could be missing stuff if so i'd notify me to edit the post.
04/11/2022 04:50 SilentWisdom#2
nulled