Jump to content
  • 0

Mob Count Rate Script


ViewtifulNinja

Question


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   1
  • Joined:  06/30/17
  • Last Seen:  

How do I put in a NPC script a command that calls the mob_count_rate configuration of the conf\battle\monster.conf file?

I want in a given game event, the mob_count_rate setting to increase from 100 to 150.

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  70
  • Reputation:   0
  • Joined:  06/19/18
  • Last Seen:  

you will need to add a setbattleflag for it then just need to trigger the command @reloadscript or @reloadbattleconf. Not sure what would be best to use there since i am fairly new

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  303
  • Reputation:   117
  • Joined:  12/10/16
  • Last Seen:  

Yes, as Psy said you have to do this:

setbattleflag "mob_count_rate",150;

But this topic is kinda old so he probably already got the answer.

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   0
  • Joined:  12/17/12
  • Last Seen:  

Dont forget  conf/battle/monster.conf if you simply want mobs 10x in all maps do mob_count_rate: 1000 instead of mob_count_rate: 100

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   1
  • Joined:  06/30/17
  • Last Seen:  

On 11/18/2018 at 5:34 PM, n0tttt said:

Yes, as Psy said you have to do this:

setbattleflag "mob_count_rate",150;

But this topic is kinda old so he probably already got the answer.

 

So I didn't get what I wanted, even though the years had gone by. I went back to working on my server, and I did it as follows:

 

-	script	DaynNight	-1,{

OnInit:
	if(gettime(3) >= 18 || gettime(3) < 6){night;}
	else {day;}
	end;

OnClock0600:
	day;
    setbattleflag "mob_count_rate",100;
	end;

OnClock1800:
	night;
    setbattleflag "mob_count_rate",150;
	end;
}

 

But it doesn't work, whichever way I put it. I've tried it in different ways. If possible and they can help me...

Edited by ViewtifulNinja
Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   381
  • Joined:  02/03/12
  • Last Seen:  

@ViewtifulNinja Good to see you're back at it have you tried like reloading mobs after setting the value just to see if there is a change?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   1
  • Joined:  06/30/17
  • Last Seen:  

Thank you, @Skorm.  How do I do this reloading?  What would the command be?

Edited by ViewtifulNinja
Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   381
  • Joined:  02/03/12
  • Last Seen:  

@reloadmobdb something like that I can't exactly remember if that refreshes the mobs on a map though.

  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...