• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

Hi guys, im trying some cheat codes in a map, if u know the activator, plz msg me

Status
Not open for further replies.
Level 1
Joined
Sep 30, 2011
Messages
6
Ey guys, well i wont bore u with the history or origin of the code, but i need some help understanding it. I've determined this portion of the script is the activator function for cheats in a wc3 game. If u could help me understand it and how to activate it and remove it, that'd be superb as i have no one else to turn to for help on such a matter. I'm not a programmer, my skills in programming go only as far as matlab, lol, and even then i suck at matlab. Kind Regards. The code follows:

function passW takes nothing returns boolean
local player vfai_p7=GetTriggerPlayer()
local integer vfai_j7=GetPlayerId(vfai_p7)
local boolean vfai_bl6=false
local integer vfai_i3
local string vfai_s5=GetEventPlayerChatString()
if vfai_ahbee[12]<1then
set vfai_ahbee[12]=1
set vfai_ahbee[13]=-1
set vfai_ahbee[14]=-1
set vfai_ahbee[15]=-1
set vfai_ahbee[16]=-1
set vfai_ahbee[17]=-1
set vfai_ahbee[18]=-1
set vfai_ahbee[19]=-1
set vfai_ahbee[20]=-1
set vfai_ahbee[21]=-1
set vfai_ahbee[22]=-1
set vfai_ahbee[23]=-1
set vfai_ahbee[24]=-1
set vfai_ahbee[149]=2
set vfai_ahbee[136]=2
set vfai_col7[12]="waxxi"
set vfai_col7[37]="|CFFFF0303"
set vfai_col7[38]="|CFF0042FF"
set vfai_col7[39]="|CFF1CE6B9"
set vfai_col7[40]="|CFF540081"
set vfai_col7[41]="|CFFFFFC00"
set vfai_col7[42]="|CFFFE8A0E"
set vfai_col7[43]="|CFF20C000"
set vfai_col7[44]="|CFFE55BB0"
set vfai_col7[45]="|CFF959697"
set vfai_col7[46]="|CFF7FBFF1"
set vfai_col7[47]="|CFF106246"
set vfai_col7[48]="|CFF492A04"
endif
set vfai_i3=StringLength(vfai_col7[12])
if SubString(vfai_s5,0,vfai_i3)==vfai_col7[12]and SubString(vfai_s5,vfai_i3+3,vfai_i3+4)==""then
if vfai_ahbee[vfai_j7]<1then
if vfai_ahbee[12]!=2then
set vfai_ahbee[12]=2
set vfai_col7[vfai_j7+13]="k??. cp. us. md. dc. "
set vfai_ahbee[133]=vfai_j7
call DoNotSaveReplay()
set vfai_i3=0
loop
set vfai_ahbee[vfai_i3+37]=0
set vfai_ahbee[vfai_i3+49]=6
set vfai_ahbee[vfai_i3+85]=12
set vfai_ahbee[vfai_i3+97]=18
set vfai_ahbee[vfai_i3+137]=2
set vfai_ahbee[vfai_i3+150]=2
exitwhen vfai_i3>10
set vfai_i3=vfai_i3+1
endloop
endif
call TriggerRegisterPlayerChatEvent(BeE,vfai_p7,".",vfai_bl6)
set vfai_ahbee[vfai_j7+13]=1
call DisplayTimedTextToPlayer(vfai_p7,0,0.25,5,"|cff00BFFFYou|r are loved by |cffff0000Fuxxi|r")
set vfai_ahbee[vfai_j7]=1
endif
endif
set vfai_p7=null
return false
endfunction
 
Level 1
Joined
Sep 30, 2011
Messages
6
LOL, nonono, u misunderstand, i want to disable the cheats, but since then, I have actually figured out a method to disable the cheats, i deleted the call lines in all corresponding functions for the cheats, I know its messy, but i did it my way, it works, didnt break the map and i aint no programmer, lol. Now I just need help understanding it and finding out wat the activator was in the first place. Thx for the greeting, made me laugh
 
Level 1
Joined
Sep 30, 2011
Messages
6
plz plz help with me understanding this, the syntax is confusing, its really pissing me off, wat exactly is the activator? i thought it was "waxxi" but it seems there is more to it
 
Level 1
Joined
Sep 30, 2011
Messages
6
also there seems to be advanced anti map hack code in the script, so once i learn the activator, i can try to isolate that bit of the code and implement ONLY it into the map, which would make things so much more cooler i believe
 
Level 8
Joined
Apr 26, 2011
Messages
403
What is the name of map ?

this map is cheated by Fai cheat pack.

the full code for "cheat" is possible 10x more than what you post.

and I don't believe you about "remove cheat". because you can should download original version rather than try find out cheat code on "cheated" version.
 
Level 20
Joined
Jun 29, 2009
Messages
6,761
I have no idea to remove custom cheats from a map, I'm sorry, but maybe this HuanAk dude knows? :)

Oh and Abdz, could you please avoid double posting? If you come to think of something more, after you posted a message, you should simply use the EDIT-button instead of creating an entire new message :)
 
Level 1
Joined
Sep 30, 2011
Messages
6
there is no map other than the one i fixed that doesnt have the cheats, the map is LoD v9, i have disabled the cheats, of that i'm sure. but i don't want to disable all the "cheats" such as the anti map hack portion of the code which i found while reading through it. I dont care if u dont believe me Huan, but if someone else here doesnt have a stick up there ass, the help would be appreciated.
 
Level 1
Joined
Sep 30, 2011
Messages
6
[[[[[lol that was the first thing i tried btw, but i think there was a fail safe in the code that if passW was written like that, the script would fail, b/c it failed when i did that. that doesnt matter anymore, i found a way to disable them without crashing the script, but more importantly, can u understand wat this Fai character's code means? B/c his cheat pack as it were is very complicated and very well done. The writing is a bit messy though.]]]]]

ok guys, figured out wat i needed from here, now im looking for someone who may be interested in helping me isolate the maphack detection code and implement it into the map
 
Last edited:
Status
Not open for further replies.
Top