Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Gamespy Lobby Fix for Halo PC/CE for Phasor V2
- -- by Oxide/Urbanyoung 5-13-2014
- function GetRequiredVersion()
- return 200
- end
- function OnScriptLoad(processId, game, persistent)
- if not persistent then
- hprintf("You probably want to load this server persistently when the server starts.")
- hprintf("ie. put it into scripts/persistent and don't load from your init file.")
- end
- local addr1 = nil
- local addr2 = nil
- if (game == "PC") then
- addr1 = 0x5c34b4
- addr2 = 0x5c3a08
- else
- addr1 = 0x54d384
- addr2 = 0x54d720
- end
- writestring(addr1, "s1.master.hosthpc.com")
- writestring(addr2, "s1.ms01.hosthpc.com")
- end
- function writestring(addr, str)
- local l = 0
- for i = 1, #str do
- local c = string.byte(str, i)
- writebyte(addr + i - 1, c)
- l = l + 1
- end
- writebyte(addr + l, 0)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement