summaryrefslogtreecommitdiff
path: root/src/map/quest.c
diff options
context:
space:
mode:
authorInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-09-13 08:31:19 +0000
committerInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-09-13 08:31:19 +0000
commitfe84618e4c80ee808cf7beed0e2a5d3e57bc8975 (patch)
tree8a6414a2bdc4873918fad90478fde2727a421716 /src/map/quest.c
parent1739298348c4d8c9052c05b7ac9a528e34de14d4 (diff)
downloadhercules-fe84618e4c80ee808cf7beed0e2a5d3e57bc8975.tar.gz
hercules-fe84618e4c80ee808cf7beed0e2a5d3e57bc8975.tar.bz2
hercules-fe84618e4c80ee808cf7beed0e2a5d3e57bc8975.tar.xz
hercules-fe84618e4c80ee808cf7beed0e2a5d3e57bc8975.zip
* Progressbar aborts when player is attacked.
* Do not stand if damage is from yourself or has no source.(bugreport:3582) * Any mobs killed by party members within view range are taken into account in questlog. * 'unit_walktobl' now uses at least 1 as the range since 'unit_can_reach_bl' always sets the target coordinates 1 cell away from the target block. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14057 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/quest.c')
-rw-r--r--src/map/quest.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/map/quest.c b/src/map/quest.c
index 03a74214f..f73beb902 100644
--- a/src/map/quest.c
+++ b/src/map/quest.c
@@ -178,6 +178,28 @@ int quest_delete(TBL_PC * sd, int quest_id)
return 0;
}
+int quest_update_objective_sub(struct block_list *bl, va_list ap)
+{
+ struct map_session_data * sd;
+ int mob, party;
+
+ nullpo_retr(0, bl);
+ nullpo_retr(0, sd = (struct map_session_data *)bl);
+
+ party = va_arg(ap,int);
+ mob = va_arg(ap,int);
+
+ if( !sd->avail_quests )
+ return 0;
+ if( sd->status.party_id != party )
+ return 0;
+
+ quest_update_objective(sd, mob);
+
+ return 1;
+}
+
+
void quest_update_objective(TBL_PC * sd, int mob)
{
int i,j;