Jump to content

Question

Posted

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.

7 answers to this question

Recommended Posts

  • 0
Posted

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

  • 0
Posted (edited)
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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...