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

Cor Kalom closes wrong quest #24

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

Cor Kalom closes wrong quest #24

AmProsius opened this issue Jan 1, 2021 · 1 comment · Fixed by #81
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 1, 2021

Cor Kalom closes the "The Weed Monopoly" quest instead of "Taking Weeds to Gomez".

@AmProsius AmProsius added this to To Do in v1.0.0 via automation Jan 1, 2021
@AmProsius AmProsius removed ai labels Jan 1, 2021
@catalinstoian
Copy link

catalinstoian commented Jan 16, 2021

FUNC VOID Info_Kalom_KrautboteBACK_Info()
{
AI_Output (other, self,"Mis_1_Psi_Kalom_KrautboteBACK_15_00"); //I've delivered the weed.
if (Npc_HasItems (hero,itminugget)>=500)
{
AI_Output (self, other,"Mis_1_Psi_Kalom_KrautboteBACK_10_01"); //Good. Get another task somewhere else.
Kalom_DrugMonopol = LOG_SUCCESS;
B_LogEntry (CH1_KrautBote,"Cor Kalom received money for the weed delivery to the Ore Barons.");
Log_SetTopicStatus (CH1_KrautBote, LOG_SUCCESS);
B_GiveInvItems (hero, self, ItMiNugget, 500);
B_GiveXP (XP_WeedShipmentReported);
Info_Kalom_KrautboteBACK.permanent = 0;
}
else
{
AI_Output (self, other,"Mis_1_Psi_Kalom_KrautboteBACK_10_02"); //Where's the 500 ore, boy? Make sure I get them real fast!
};
};

changed to

FUNC VOID Info_Kalom_KrautboteBACK_Info()
{
	AI_Output (other, self,"Mis_1_Psi_Kalom_KrautboteBACK_15_00"); //I've delivered the weed.
	
	if (Npc_HasItems (hero,itminugget)>=500)
	{
		AI_Output (self, other,"Mis_1_Psi_Kalom_KrautboteBACK_10_01"); //Good. Get another task somewhere else.

		Kalom_Krautbote = LOG_SUCCESS;
		B_LogEntry			(CH1_KrautBote,"Cor Kalom received money for the weed delivery to the Ore Barons.");
		Log_SetTopicStatus	(CH1_KrautBote,	LOG_SUCCESS);
		B_GiveInvItems		(hero, self, ItMiNugget, 500);
		B_GiveXP			(XP_WeedShipmentReported);

		Info_Kalom_KrautboteBACK.permanent = 0;
	}
	else
	{
		AI_Output (self, other,"Mis_1_Psi_Kalom_KrautboteBACK_10_02"); //Where's the 500 ore, boy? Make sure I get them real fast!
	}; 
};

@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 25, 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
#24: Cor Kalom closes correct quest
@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 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 13, 2021
@szapp szapp moved this from Modify dialog function to Extend dialog function 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
Extend dialog function
v1.0.0
  
Done
Development

Successfully merging a pull request may close this issue.

3 participants