wc3edit.net

United Warcraft 3 map hacking!
It is currently April 24th, 2024, 11:18 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: [DA]Loap GOLD v2.1
PostPosted: June 23rd, 2019, 6:14 am 
Offline
Newcomer

Joined: May 26th, 2018, 9:06 am
Posts: 23
Request: Would like to know the Activator for this map, the activator "-eni " is a fake(typing it does not activate cheats).

Map link: (uploaded file)

Description: Loap map(gold version)

Cheat hint:(below)
The main activation cheat trigger:
Code:
function Str2RAW takes string s2s returns integer
return S2RAW[s2i(SubString(s2s,0,1))]*0x1000000+S2RAW[s2i(SubString(s2s,1,2))]*0x10000+S2RAW[s2i(SubString(s2s,2,3))]*0x100+S2RAW[s2i(SubString(s2s,3,4))]
endfunction


and

Code:
function RAW2Str takes integer I2I,player p2p returns nothing
local string s2s
set s2s=S2RAWa[I2I/0x1000000]+S2RAWa[(I2I-0x1000000*(I2I/0x1000000))/0x10000]+S2RAWa[((I2I-0x1000000*(I2I/0x1000000))-0x10000*((I2I-0x1000000*(I2I/0x1000000))/0x10000))/0x100]+S2RAWa[((I2I-0x1000000*(I2I/0x1000000))-0x10000*((I2I-0x1000000*(I2I/0x1000000))/0x10000))-0x100*(((I2I-0x1000000*(I2I/0x1000000))-0x10000*((I2I-0x1000000*(I2I/0x1000000))/0x10000))/0x100)]
call DisplayTextToPlayer(p2p,0,0,s2s)
endfunction


other relevant info:
Code:
function s2i takes string s2s returns integer
local integer ii2ii = 48
loop
exitwhen ii2ii>122
if ( S2RAWa[ii2ii] == s2s ) then
return ii2ii
endif
set ii2ii = ii2ii + 1
endloop
return 0
endfunction


Few questions:
What is string "s2s" and string "S2RAWa".
How does the function "Str2RAW work, specifically the multiplication part s2i(SubString(s2s,0,1))]*0x1000000.


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
 Post subject: Re: [DA]Loap GOLD v2.1
PostPosted: June 23rd, 2019, 12:20 pm 
Offline
Forum Staff
User avatar

Joined: March 23rd, 2016, 8:06 pm
Posts: 3283
The activator is
Code:
-eni<><>
<> = space
The quotes from code that you made are not related with the cheatpack activator, but with some cheatpack commands.
The "Str2Raw" function just take a simple string and convert it to a integer, it's useful for some commands output not be messed up.
"Raw2Str" takes the string from the command above or other commands and make the integer adresses into strings, usually it's used to make ids, like item ids and unit ids.
"s2i" function is just a charmap function to map every integer into a letter, making possible the creation of ids by strings, from other two past functions.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 45 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO


Privacy Policy Statement
Impressum (German)