• 0
Sign in to follow this  
Followers 0
Sashi

Item drop off every mob

Question

Is there an easy way to add an item that drops on every mob? or does it have to be manually

Share this post


Link to post
Share on other sites

3 answers to this question

  • 0

Posted (edited)

the easiest way I can think of is ... OnNPCKillEvent: + *getitem

 

EDIT:

prontera,159,185,5	script	jskdhfjs2hfd	1_F_MARIA,{
	freeloop true;
	[email protected] = query_sql("select id from mob_db", [email protected] );
	for ( [email protected] = 0; [email protected] < [email protected]; [email protected] ) {
		if ( addmonsterdrop( [email protected][[email protected]], 512, 10000 ) == false )
			dispbottom "Mob ID "+ [email protected][[email protected]] +" failed.";
//		else
//			dispbottom "Mob ID "+ [email protected][[email protected]] +" OK.";
	}
	dispbottom [email protected] +" monsters updated";
	end;
}

yeah it works ... the RENEWAL_DROP is getting in the way
comment the line in src\config\renewal.h and it works

Edited by AnnieRuru

Share this post


Link to post
Share on other sites
  • 0

Well, is there an easy way to switch to sql dbs at this point lol like a plug-in because it would be easy to push as a querries 

 

Ideally I'd love for it to adjust the drop rate scale able by level but that's a perfect world 

Share this post


Link to post
Share on other sites
  • 0
On 5/14/2018 at 9:24 PM, Sashi said:

Ideally I'd love for it to adjust the drop rate scale able by level but that's a perfect world 

https://github.com/HerculesWS/Hercules/blob/stable/db/re/level_penalty.txt#L13

well you can search RENEWAL_DROP inside the src folder for further investigation

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0