Jump to content
Sign in to follow this  
SirGoodsmoke

[RELEASE] Small Loot Multiplier (TOGGLE) PP Reborn

Recommended Posts

SirGoodsmoke

Saw this being requested a few times again maybe useful to some people

COMPATIBLE WITH PP REBORN ONLY

if in_game() and is_playing() and not in_chat() then



	PlayerManager.___upgrade_value = backuper:backup('PlayerManager.upgrade_value')

	

	togg_vars.small_loot = not togg_vars.small_loot

		

		-- DISABLE SMALL LOOT MODIFIER

		if not togg_vars.small_loot then

			backuper:restore('PlayerManager.upgrade_value')

			show_hint("SMALL LOOT MULTIPLIED (OFF)",2)

			return

		end

		

		-- ENABLE SMALL LOOT MODIFIER

		function PlayerManager:upgrade_value( category, upgrade, default ) 

			if category == "player" and upgrade == "small_loot_multiplier" then 

				return 3 -- MULTIPLIER, EDIT TO YOUR LIKINGS

			else 

				return PlayerManager.___upgrade_value(self, category, upgrade, default) 

		end end

		show_hint("SMALL LOOT MULTIPLIED (ON)",2)

end 

Share this post


Link to post
Share on other sites
baldwin

Saw this being requested a few times again maybe useful to some people

COMPATIBLE WITH PP REBORN ONLY

if inGame() and isPlaying() and not inChat() then



	backuper:backup('PlayerManager.upgrade_value')

	

	togg_vars.small_loot = not togg_vars.small_loot

		

		-- DISABLE SMALL LOOT MODIFIER

		if not togg_vars.small_loot then

			backuper:restore('PlayerManager.upgrade_value')

			showHint("SMALL LOOT MULTIPLIED (OFF)",2)

			return

		end

		

		-- ENABLE SMALL LOOT MODIFIER

		if not _uvSmallLoot then _uvSmallLoot = PlayerManager.upgrade_value end

		function PlayerManager:upgrade_value( category, upgrade, default ) 

			if category == "player" and upgrade == "small_loot_multiplier" then 

				return 3 -- MULTIPLIER, EDIT TO YOUR LIKINGS

			else 

				return _uvSmallLoot(self, category, upgrade, default) 

		end end

		showHint("SMALL LOOT MULTIPLIED (ON)",2)

end 

Ofcourse it is useless, but some people requested that. And yes, you read better origbackuper.lua, backuper:backup('some_func') will return original function :-)

Share this post


Link to post
Share on other sites
SirGoodsmoke

Ofcourse it is useless, but some people requested that. And yes, you read better origbackuper.lua, backuper:backup('some_func') will return original function :-)

What do you mean by this "And yes, you read better origbackuper.lua, backuper:backup('some_func') will return original function :-)"

did I write the script wrong?

Edit: Look better now?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Stop being a peeping tom and join the community.... we got cookies

Join the crew now

Sign in

Already part of the crew? Board right here

Sign In Now
Sign in to follow this  

×