Lua script to change name within the game!

Posts 15 of 5 · Page 1 of 1
Lua script to change name within the game!
Hey guys, by chance is there a script to change your name? On another post I found this,
Quote Originally Posted by MrAnkaku View Post
How to fake your name (theoretical, untested):
Code:
function ConnectionNetworkHandler:request_player_name( sender )
	if not self._verify_sender( sender ) then
		return 
	end
	
	local name = "FakeName"
	sender:request_player_name_reply( name )
end
and, well, it didn't work lol, I tried messing with it by adding sync to peers and stuff like that, but still nothing. Any help would be appreciated thanks!
This came with PPv12, I tested it and it works. It doesn't come with a toggle so to get your legit name back you have to restart the game or try adding a toggle yourself. I'll try doing it later if no one else is up for the task.

Code:
--SET PERMANENT SPOOF NAME
function NetworkAccountSTEAM:username_id()
	return "Master Bates"
end

-- FOR JSON PERSIST
persistentSPOOF = 0
Oh and enjoy
Oh man thanks very much! I'll see later if I can work on getting a toggle in there, but this'll do for now until I get free time again!
Actually I was looking at that x-ray post script you posted, and I was thinking can't you just use the same toggle part..
Code:
if not _markingToggle then _marktoggle = nil _markingToggle = true
        else _markingToggle = nil
end
if not _gameUpdate then _gameUpdate = GameSetup.update
end
do
        local _gameUpdateLastMark
        function GameSetup:update( t, dt )
                _gameUpdate(self, t, dt)
                _gameUpdateLastMark = t
                if _markingToggle then
                        mark_enemies()
                else
                        if not _marktoggle then
                                _marktoggle = true
                                for u_key,u_data in pairs(managers.enemy:all_enemies()) do      
										u_data.unit:contour():remove( "mark_enemy" )
                                end
								for u_key,u_data in pairs(managers.enemy:all_civilians()) do      
										u_data.unit:contour():remove( "mark_enemy" )
                                end
                        end
                end
        end
end
of course changing some things, sorry I'm not a lua person, I'm barely learning java xD

so then I guess we can try to do

Code:
if not _markingToggle then _marktoggle = nil _markingToggle = true
        else _markingToggle = nil
end
if not _gameUpdate then _gameUpdate = GameSetup.update
end
do
        local _gameUpdateLastMark
        function GameSetup:update( t, dt )
                _gameUpdate(self, t, dt)
                _gameUpdateLastMark = t
                if _markingToggle then
                        NetworkAccountSTEAM:username_id()
                else
                        if not _marktoggle then
                                _marktoggle = true
                                for u_key,u_data in pairs(NetworkAccountSTEAM:username_id()) do      
										u_data.unit:contour():remove( "Master Bates" )
                                end

                        end
                end
        end
end
lol, its just a wild guess, and I should try it first, but I'm kinda multi tasking here doing both my programming homework and this :c will check in a bit to see if it works

edit: doesn't work lol will fix it later, but I was getting

changename.lua:8: attempt to index global 'GameSetup' (a nil value)
Posts 15 of 5 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?