Page 1 of 1

How to pull out all the recipes

Posted: April 16th, 2025, 7:44 pm
by pepe-
Hey, everybody!

Recently started learning how to hack maps, read this guide: viewtopic.php?t=34777

it shows you how to pull the items list(rawcode) as I understand it, the same principle is used to pull out unit list but it doesn't say anything about the recipes that might be in the map and after digging around I realized that all recipes and items that can fall from bosses or creeps are described in the *.j file.

My question is how to conveniently pull out the entire list of recipes and from which bosses/creeps fall certain items, as well as about quests, specifically from whom they are taken and what conditions are needed to fulfill them. The first thing that comes to mind is a parser that will match the id of items and units from text files (which we get after the actions performed in the guide that I specified) in *.j file and take out recipes in a separate file, and from which unit a certain item, if such is droped of it. But then how to get information about quests, and what is needed to get and fulfill them?

What is the best way to do in such a case and maybe there are already ready-made solutions?

Re: How to pull out all the recipes

Posted: April 17th, 2025, 1:49 am
by Germain
Can you send the link of the map ?

Re: How to pull out all the recipes

Posted: April 17th, 2025, 11:45 am
by Vegas
Recipes?

Re: How to pull out all the recipes

Posted: April 17th, 2025, 3:33 pm
by pepe-
Vegas wrote: April 17th, 2025, 11:45 amRecipes?
recipe crafting in the code it looks like this

Code: Select all

if((GetItemTypeId(GetManipulatedItem())=='I09F'))then
if((IsItemOwned(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I09G'))==true)and(IsItemOwned(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I09D'))==true)and(IsItemOwned(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I09C'))==true)and(IsItemOwned(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I07G'))==true))then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I09G'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I09D'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I09C'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I07G'))
call UnitAddItemByIdSwapped('I09E',GetTriggerUnit())

Re: How to pull out all the recipes

Posted: April 17th, 2025, 3:33 pm
by pepe-
Germain wrote: April 17th, 2025, 1:49 am Can you send the link of the map ?
https://www.epicwar.com/maps/314790/