Skip to content

Commit

Permalink
Fix issue #1225
Browse files Browse the repository at this point in the history
If party enable warning / debug and error show up.
  • Loading branch information
Atemo committed Jun 17, 2016
1 parent 33f83e0 commit 673a93c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions npc/custom/quests/hunting_missions.txt
Expand Up @@ -293,10 +293,12 @@ OnNPCKillEvent:
getmapxy(.@map2$,.@x2,.@y2,UNITTYPE_PC);
if ((.@map1$ == .@map2$ || .Party == 1) && (distance(.@x1,.@y1,.@x2,.@y2) <= 30 || .Party < 3)) {
for (.@j = 0; .@j < .Quests; .@j++) {
if (strmobinfo(1,.@mob) == strmobinfo(1,getvar(getd("Mission"+.@j), $@partymembercid[.@i]))) {
if (getvar(getd("Mission"+.@j+"_"), $@partymembercid[.@i]) < .@Mission_Count) {
dispbottom "[Hunting Mission] Killed " + (set(getvar(getd("Mission" + .@j + "_"), $@partymembercid[.@i]), getvar(getd("Mission" + .@j + "_") + 1, $@partymembercid[.@i]))) +
" of " + .@Mission_Count + " " + strmobinfo(1,.@mob) + ".";
.@my_mob_id = getvar( getd("Mission"+.@j),$@partymembercid[.@i] );
.@my_count = getvar( getd("Mission"+.@j+"_"), $@partymembercid[.@i] );
if (strmobinfo(1,.@mob) == strmobinfo(1,.@my_mob_id)) {
if (@my_count < .@Mission_Count) {
setd "Mission"+.@j+"_", (.@my_count+1), $@partymembercid[.@i];
dispbottom "[Hunting Mission] Killed " + (.@my_count+1) + " of " + .@Mission_Count + " " + strmobinfo(1,.@mob) + ".";
break;
}
}
Expand Down

4 comments on commit 673a93c

@Keysito
Copy link

@Keysito Keysito commented on 673a93c Jun 18, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

capt2ure

When i create a party with your update fixed. it happens to me everytime killing mob.

@RadianFord
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Keysito did you apply this follow up?6546566

@Keysito
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup.

@Atemo
Copy link
Contributor Author

@Atemo Atemo commented on 673a93c Jun 18, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't reproduce.. however there is a mistake when displaying the kill count for party.

Please sign in to comment.