print "Grimoire 1.1 1/18/2007" print "Written by Bryan \"PipeDream\" Steinbach\n" key = "Software\\Blizzard Entertainment\\Warcraft III" val = "InstallPath" path = getregpair(key,val) if path == 0 then val = "InstallPathX" path = getregpair(key,val) end if path == 0 then print "\nCould not locate installed warcraft path in registry" print "Add InstallPath or InstallPathX key to your registry, or set the path to warcraft manually in war3.lua" path = "F:\\Warcraft III" end proc = startexe(path.."\\worldedit.exe","worldedit.exe") -- Enable jAPI -- injectdll(proc,"bin\\jAPI.dll"); -- Enable list file generation -- injectdll(proc,"bin\\listfile.dll") -- Enable mpq loading -- injectdll(proc,"bin\\loadmpq.dll"); injectdll(proc,"bin\\wehack.dll") -- Get rid of udg_ prefix -- patchdword(proc,0x007DAAA8,0) -- Get rid of war3mapImported prefix -- patchbyte(proc,0x007C762C,0) -- Found by StonedStoopid aka Uluru -- No unit/item limit patchbyte(0x00554b5b,0xE9) patchbyte(0x00554b5c,0xA0) patchdword(0x00554b5d,0x00000090) -- No doodad limit patchbyte(0x0054cab8,0xEB) -- No map size limit patchbyte(0x00640e3b,0xEB)