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?
How to pull out all the recipes
Moderator: Cheaters
-
- Newcomer
- Posts: 12
- Joined: October 21st, 2024, 11:05 pm
- Has thanked: 2 times
-
- Newcomer
- Posts: 3
- Joined: December 20th, 2022, 1:18 am
-
- Shopping Maul USA Creator
- Posts: 1801
- Joined: January 18th, 2007, 11:07 am
- Title: No Comment
- Location: Calgary Canada
- Has thanked: 91 times
- Been thanked: 9 times
-
- Newcomer
- Posts: 12
- Joined: October 21st, 2024, 11:05 pm
- Has thanked: 2 times
Re: How to pull out all the recipes
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())
-
- Newcomer
- Posts: 12
- Joined: October 21st, 2024, 11:05 pm
- Has thanked: 2 times