[SOLVED]where is call for mobs loot drop invoked?

For any problems with Dawn of Light website or game server, please direct questions and problems here.

Moderator: Support Team

[SOLVED]where is call for mobs loot drop invoked?

Postby ontheDOL » Mon May 29, 2017 5:07 pm

Some context to the question
I'm trying to make "one time drops" drop for the player even if the mob is grey con to player. I'm almost 100% sure this is correct behaviour but alas i'm going off memory.

My problem is i cannot find where the method for mob to drop loot is called. I was looking around, i thought it might be in the "Die" or "gainexperience?" methods since you only drop loot from mobs that you can gain experience from (mobs that con to you) but I cant seem to find it

any help appreciated
Last edited by ontheDOL on Tue May 30, 2017 4:11 am, edited 1 time in total.
- Unty -
Model Showroom and DOL guides
http://losojos-001-site1.btempurl.com
User avatar
ontheDOL
Developer
 
Posts: 311
Joined: Fri May 20, 2016 4:21 am
Location: Australian abroad

Re: where is call for mobs loot drop invoked?

Postby Dinberg » Mon May 29, 2017 5:44 pm

Hey ontheDOL,

My repo is maybe a year out of date, but I think it probably doesn't matter here!
Code: Select all
public override void Die(GameObject killer) ... if(killer!=null) { if (IsWorthReward) DropLoot(killer);
You will find your test for 'IsGreyCon' within 'IsWorthReward'

As a tip - on Visual Studio, you can right click a method and use 'Find All References' to find every time a method is called within a project. This makes it quite easy to track down where things like this occur :)
The Marvelous Contraption begins to stir...
User avatar
Dinberg
Inactive Staff Member
 
Posts: 4695
Joined: Sat Mar 10, 2007 9:47 am
Yahoo Messenger: dinberg_darktouch
Location: Jordheim

Re: where is call for mobs loot drop invoked?

Postby ontheDOL » Mon May 29, 2017 6:11 pm

awesome, thanks Dinberg!

I even looked at the "Die" override in GameNPC... maybe a little too hastily hehe ;)
- Unty -
Model Showroom and DOL guides
http://losojos-001-site1.btempurl.com
User avatar
ontheDOL
Developer
 
Posts: 311
Joined: Fri May 20, 2016 4:21 am
Location: Australian abroad

Re: where is call for mobs loot drop invoked?

Postby PlanarChaosRvrtwo » Mon May 29, 2017 8:52 pm

Some context to the question
I'm trying to make "one time drops" drop for the player even if the mob is grey con to player. I'm almost 100% sure this is correct behaviour but alas i'm going off memory.
Your Memory is correct check this:

http://camelot.allakhazam.com/quests.html?cquest=373
http://camelot.allakhazam.com/quests.html?cquest=263
http://camelot.allakhazam.com/quests.html?cquest=292
DOL dint only gaved me the data to start my server,
it also gaved me 16 amazing years with nice peeps,
and now its on me to return the favor.
User avatar
PlanarChaosRvrtwo
Database Team
 
Posts: 517
Joined: Thu Jul 07, 2016 6:21 am


Return to “%s” Support

Who is online

Users browsing this forum: No registered users and 1 guest