Openkore.com

OpenKore Forums
It is currently 28 Mar 2017, 00:18

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: [Source] Edit hook: 'target_died'
PostPosted: 09 Jan 2013, 02:38 
Offline
Human
Human

Joined: 03 Jan 2013, 00:05
Posts: 29
I suggest that we edit the following hook call:
Code:
#src\AI\attack.pm line 167
      Plugins::callHook("target_died");

To the following:
Code:
Plugins::callHook("target_died", {ID => $ID});


I understand that the hook Plugins::callHook('attack_end', {ID => $ID}) is also at the end of this function but it is called even if the target isn't dead. So I suggest either editing the attack_end to contain information regarding if the player killed it or not, or editing the target_died hook. (I guess you could call both $monsters_old{$ID}{dead} and $monsters_old{$ID} like it does just before the target_died hook call, but why on earth are there two hooks then?)


Top
 Profile  
 
 Post subject: Re: [Source] Edit hook: 'target_died'
PostPosted: 06 May 2013, 04:13 
Offline
Developers
Developers

Joined: 05 Dec 2008, 05:42
Posts: 1813
Good idea.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group