Skip to content

Is inventory seeder (drop from inventory) an easy hack to make? #26

Answered by RedShyGuy
SirEnder125 asked this question in Q&A
Discussion options

You must be logged in to vote

This will enable the items from showing in your inventory

bool InvalidItemStop(u32* Item) {
//you could add a check here which checks what items can be valid and what not, just use the "Item" argument 
	return 1; //makes all items valid
}

void YourEntry(MenuEntry *entry) {
	static Hook YourHook;
	u32 AddressToHookOn = 0x72511C;
	if(entry->WasJustActivated()) {
		YourHook.Initialize(AddressToHookOn, (u32)InvalidItemStop);
		YourHook.SetFlags(USE_LR_TO_RETURN); //might need to change that, as I use a different version of CTRPF
		YourHook.Enable();
	}
}

But due to the seed items (trees, bushes) not getting any settings (settings are like Drop, Show Off, etc) assigned you will not be able to…

Replies: 2 comments 43 replies

Comment options

You must be logged in to vote
1 reply
@SirEnder125
Comment options

Comment options

You must be logged in to vote
42 replies
@RedShyGuy
Comment options

@SirEnder125
Comment options

@SirEnder125
Comment options

@RedShyGuy
Comment options

@SirEnder125
Comment options

Answer selected by SirEnder125
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants