CoolPatchedNew Codes 2015

Posts 151–165 of 443 · Page 11 of 30
Bro Can you make loot bosses over and over in one cycle in the same area ??????
i work at this .. not verry easy
Quote Originally Posted by eteran View Post
i work at this .. not verry easy
If it's possible to change normal body loot to boss loot type(weapon/armor only loot), then it might work.
Quote Originally Posted by Eszares View Post
If it's possible to change normal body loot to boss loot type(weapon/armor only loot), then it might work.
This is not possible
thanks eteran for codes is possible disable this "removing loot as already looted"?
Quote Originally Posted by drooo View Post
thanks eteran for codes is possible disable this "removing loot as already looted"?
I have done it .. the "?" remain after loot but when i loot 2nd time it doesn't show the loot window .. just stay at "searching.."
Quote Originally Posted by eteran View Post
I have done it .. the "?" remain after loot but when i loot 2nd time it doesn't show the loot window .. just stay at "searching.."
Damn.. I hope you figure this out! I wish i could help you, but I have zero coding knowledge :/ Well, Good luck in your research then
Quote Originally Posted by eteran View Post
I have done it .. the "?" remain after loot but when i loot 2nd time it doesn't show the loot window .. just stay at "searching.."
:'( ty bro you're the best
How to turn this code into LUA script?

Search: 22 ?? ?? ?? ?? 0C 72 ?? ?? ?? ?? 06 8C ?? ?? ?? ?? 28
Change to: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Is there a automatic way or does it require manually coding?
Quote Originally Posted by Eszares View Post
How to turn this code into LUA script?



Is there a automatic way or does it require manually coding?
The easiest way is just to add this to the top of your script:
 
Code
Code:
function AOBSwap(Search, Replace, Index, ActiveHack, RegisterAsAddress, RegisteredAddressName, ReturnTable) 
   -- Search(string) = The AoB we will look for 
   -- Replace(string) = the AoB we will replace with 
   -- Index(number/nil) = Change a specific index counting from 0+ or keep as nil (nil replaces all) 
   -- ActiveHack(true/false) = If false the AOBSwap function will not replace the bytes, useful if you enable ReturnTable, and then for each entry and entry do table[n].enable() or table[n].disable(); 
   -- RegisterAsAddress(true/false) = Register address as a symbol 
   -- RegisteredAddressName(string) = how to call the address if RegisterAsAddress is true, if theres no specific index, each address and address will be registered as RegisteredAddressName+1. 
   --      For example RegisteredAddressName, RegisteredAddressName1, RegisteredAddressName2,RegisteredAddressName3 .. RegisteredAddressNameN 
   -- ReturnTable(true/false) = Parses up everything, adds an enable and disable function for each address and address that was found 
   -- 
   -- 
   local AoBLength; 
   local Table; 
   local AddressCount = ''; 
   if (ReturnTable) then 
      Table = {}; 
      AoBLength = string.gsub(Search, ' ', ''):len(); 
   end 
   if (not Index) then 
      AddressCount = 1; 
   end 
   local ScanAoB = AOBScan(Search); 
   if (ScanAoB) then 
      local count = stringlist_getCount(ScanAoB); 
      if (Index) then 
         if (Index > count) then 
            Index = count; 
         end 
      end 
      if (count) then 
         for i = 1, count do 
            if (Index) then 
               i = Index; 
            end 
            local address = stringlist_getString(ScanAoB,i-1); 
            local symbol; 
            -- 
            if (RegisterAsAddress and RegisterAsAddress~= '') then 
               unregisterSymbol(RegisteredAddressName .. AddressCount); 
               registerSymbol(RegisteredAddressName .. (AddressCount or ''), address); 
               symbol = RegisteredAddressName .. AddressCount; 
               if (not Index) then 
                  AddressCount = AddressCount + 1; 
               end 
            end 
            -- 
            local original_AoB ; 
            if (ReturnTable and AoBLength) then 
               original_AoB = ''; 
               local ReadBytes = readBytes(address, (AoBLength / 2),true); 
               for _,String in pairs(ReadBytes) do 
                  local Hex = string.format("%x",String); 
                  if (Hex:len()==1) then 
                     Hex = '0' .. Hex; 
                  end 
                  original_AoB = original_AoB .. ' ' .. Hex; 
               end 
            end 
            -- 
            if (ActiveHack) then 
               for i = 1, string.len(Replace), 3 do 
                  local z = string.sub(Replace, i, i+2); 
                  local x, y = string.find(z, "%?+"); 
                  if (x == nil) then 
                     autoAssemble(address .. "+" .. (string.format("%x",(i-1)/3)) .. ':\ndb' .. z); 
                  end 
               end 
            end 
            if (Table and ReturnTable and AoBLength) then 
               Table[#Table+1] = { 
                                    address = address; 
                                    symbol = symbol; 
                                    originalaob = original_AoB; 
                                    enable = function () 
                                                for i = 1, string.len(Replace), 3 do 
                                                   local z = string.sub(Replace, i, i+2); 
                                                   local x, y = string.find(z, "%?+"); 
                                                   if (x == nil) then 
                                                      autoAssemble(address .. "+" .. (string.format("%x",(i-1)/3)) .. ':\ndb' .. z); 
                                                   end 
                                                end 
                                             end; 
                                    disable =    function () 
                                                   autoAssemble(address .. ':\ndb ' .. original_AoB); 
                                                end; 
                                 }; 
            local TableIndex = Table[#Table]; 
            TableIndex.remove =   function () 
                                       TableIndex.disable(); 
                                       for k,v in pairs(TableIndex) do 
                                          TableIndex[k] = nil; 
                                       end 
                                       TableIndex = nil; 
                                    end; 
            Table[symbol] = TableIndex; 
            end 
            if (Index and i == Index) then 
               break; 
            end 
         end 
      end 
      object_destroy(ScanAoB); 
   end 
   if (Table and ReturnTable) then 
      return Table; 
   end 
end


And then you can use the function to replace array of byte's very easily:
Code:
Aobswap("22 ?? ?? ?? ?? 0C 72 ?? ?? ?? ?? 06 8C ?? ?? ?? ?? 28", "00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00")
eteran can you make Lua script for all the cheat?? for cheat engine ??
Quote Originally Posted by nbrase View Post
eteran can you make Lua script for all the cheat?? for cheat engine ??
yes .. if just need to change bytes in memory
No cars and misc item for easy travel

AoB = AOBScan("39 ?? ?? ?? ?? 1C 45 ?? ?? ?? ?? ?? ?? ?? ?? 02 16 7D ?? ?? ?? ?? 02 72 ?? ?? ?? ?? 1F ?? 8C ?? ?? ?? ?? 72 ?? ?? ?? ?? D0 ?? ?? ?? ?? 28 ?? ?? ?? ?? 72 ?? ?? ?? ?? 17")
if (AoB and AoB.getCount()==3) then
print("NOcars OK")
for i=0,2 do
writeBytes(tonumber(AoB[i],16), 0x38)
end
AoB.Destroy()
AoB = nil
else
print("NOcars ERROR")
end
suggestion:How about increasing the inventory space,since we have lots of loot spots?
Would be really cool!
Posts 151–165 of 443 · Page 11 of 30
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?