Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lares's guard doesn't attack the player #26

Closed
AmProsius opened this issue Jan 4, 2021 · 1 comment · Fixed by #84
Closed

Lares's guard doesn't attack the player #26

AmProsius opened this issue Jan 4, 2021 · 1 comment · Fixed by #84
Labels
compatibility: easy This issue is easy to make compatible. impl: hook script func This issue requires hooking script functions. type: session fix The fix for this issues is persistent across a session.
Milestone

Comments

@AmProsius
Copy link
Owner

AmProsius commented Jan 4, 2021

The guard in front of Lares' hut says infinitely "Go!" but doesn't attack.

@AmProsius AmProsius added this to To Do in v1.0.0 via automation Jan 4, 2021
@catalinstoian
Copy link

catalinstoian commented Jan 16, 2021

func int Info_Org_804_FirstWarn_Condition()
{
if ( ( (other.guild == GIL_GRD) || (other.guild == GIL_STT) )
&& (Npc_GetAttitude(self,hero) != ATT_FRIENDLY )
&& (Hlp_StrCmp(Npc_GetNearestWP(self),self.wp)) )
{
return TRUE;
};
};

change to

func int Info_Org_804_FirstWarn_Condition()
{
	if (	( (other.guild == GIL_GRD) || (other.guild == GIL_STT) 	) 
	&&	(hero.aivar[AIV_GUARDPASSAGE_STATUS] == AIV_GPS_BEGIN)
	&&	(Npc_GetAttitude(self,hero)	!= ATT_FRIENDLY	) 
	&&		(Hlp_StrCmp(Npc_GetNearestWP(self),self.wp))				)
	{
		return TRUE;
	};
};

@szapp szapp added type: session fix The fix for this issues is persistent across a session. compatibility: easy This issue is easy to make compatible. labels Jan 24, 2021
szapp added a commit that referenced this issue Jan 26, 2021
szapp added a commit that referenced this issue Jan 26, 2021
v1.0.0 automation moved this from To Do to Done Jan 26, 2021
AmProsius added a commit that referenced this issue Jan 26, 2021
#26: Lares's guard now attacks
@AmProsius AmProsius added this to the v1.0.0 milestone Feb 9, 2021
@szapp szapp added this to Dialog: Info function in Fix templates Mar 17, 2021
@szapp szapp moved this from Dialog: Info function to Dialog: Info condition in Fix templates Mar 17, 2021
@szapp szapp added the impl: hook script func This issue requires hooking script functions. label Mar 17, 2021
AmProsius added a commit that referenced this issue Apr 15, 2021
@szapp szapp moved this from Modify dialog conditions to Add dialog conditions in Fix templates Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility: easy This issue is easy to make compatible. impl: hook script func This issue requires hooking script functions. type: session fix The fix for this issues is persistent across a session.
Projects
Fix templates
Add dialog conditions
v1.0.0
  
Done
Development

Successfully merging a pull request may close this issue.

3 participants