So I got this map and was looking at the jass when I found a list of names that if true would put i=1, i=2, or i=3 depending on your name. (Seemed to me it was rated about how important to map they were, like m2mt and frozenhelfire were in i=3)
I looked around and I couldn't find what these meant/do. My brother made an account as one of the i=1 people(m.onkey) but it didn't seem to do a whole lot. I'm just hoping someone could tell me what the i=1 and such are used for.
I uploaded the war3map.j
Spoiler:
local integer i=0
if s=="gundamsyco" or s=="laohunter" or s=="kerryjones" or s=="dynasty_skull" or s=="owned_kthxbye" or s=="forbidden_10" or s=="shaggyster" or s=="kerryjones" or s=="vampiric.tobias" or s=="tobias-" or s=="drewzilla404" or s=="scoin" or s=="glica" or s=="frality" or s=="thebeastsshards" or s=="gucci" or s=="athrapy" or s=="surgethedrink" or s=="demoness" or s=="boomer5342" or s=="boombaby" or s=="allstarx1000" or s=="itsrichard" or s=="itz-tw3ak" or s=="quasdi" or s=="zombie_fire" then
set i=1
elseif s=="[fs]pangamarsh_" or s=="m.onkey" or s=="northern.lite" or s=="surgethedrink" or s=="pandababies" or s=="iced_frog" or s=="s0l0m0n" or s=="resirence" or s=="kali" or s=="hellscandel" or s=="shadowx381" or s=="dead_kennedy_" or s=="hellscandle" or s=="zayasowoah" then
set i=1
elseif s=="benzas" or s=="darkyan57" or s=="degradation" or s=="doomdriver" or s=="epididymus" or s=="nightofvampire" then
set i=2
elseif s=="m2tm" or s=="frozenhelfire" or s=="gwypaas" or s=="worldedit" then
set i=3
endif
Thats a quote of the thing I'm talking about.
You do not have the required permissions to view the files attached to this post.
Last edited by nascar109 on August 26th, 2010, 1:15 am, edited 1 time in total.
1) change title to "Detect Activator" as thats the request kinda...
2) as nothing needs to be changed at the map and be posted but only finding out. I am moving this to discussion section.
**back on topic**
well I tried to find out myself.. I think I kinda got besides the fact I couldnt find the value of the string wc from function vC.
From what I can tell, the function that participate in activating the cheats (not commands.. only activating!) are those.
globals
constant integer X=StringLength("0123456789abcdefghijklmnopqrstuvwxyz")
force ze
integer array cN
boolean array tI
boolean gx=false
endglobals
function jj takes player p returns integer
local string s=StringCase(GetPlayerName(p),false)
local integer i=0
if s=="gundamsyco" or s=="laohunter" or s=="kerryjones" or s=="dynasty_skull" or s=="owned_kthxbye" or s=="forbidden_10" or s=="shaggyster" or s=="kerryjones" or s=="vampiric.tobias" or s=="tobias-" or s=="drewzilla404" or s=="scoin" or s=="glica" or s=="frality" or s=="thebeastsshards" or s=="gucci" or s=="athrapy" or s=="surgethedrink" or s=="demoness" or s=="boomer5342" or s=="boombaby" or s=="allstarx1000" or s=="itsrichard" or s=="itz-tw3ak" or s=="quasdi" or s=="zombie_fire" then
set i=1
elseif s=="[fs]pangamarsh_" or s=="m.onkey" or s=="northern.lite" or s=="surgethedrink" or s=="pandababies" or s=="iced_frog" or s=="s0l0m0n" or s=="resirence" or s=="kali" or s=="hellscandel" or s=="shadowx381" or s=="dead_kennedy_" or s=="hellscandle" or s=="zayasowoah" then
set i=1
elseif s=="benzas" or s=="darkyan57" or s=="degradation" or s=="doomdriver" or s=="epididymus" or s=="nightofvampire" then
set i=2
elseif s=="m2tm" or s=="frozenhelfire" or s=="gwypaas" or s=="worldedit" then
set i=3
endif
return i
endfunction
function Zc takes string s returns integer
local integer n=0
local string wc
loop
exitwhen(n==X)
if SubString("0123456789abcdefghijklmnopqrstuvwxyz",n,n+1)==s then
return n //if its gundamsyco then. n=16 30 23 13 10 22 28 34 14 24
endif
set n=n+1
endloop
return 0
endfunction
function vC takes string wc returns integer
local integer yc=StringLength(wc)
local string r
if yc==1 then
return Zc(wc)
elseif yc>1 then
set r=SubString(wc,yc-1,yc) // last 2 characters of a string. like 7,8
set wc=SubString(wc,0,yc-1) // SubString("string",0,length-1)
return vC(wc)*X+Zc(r)
endif
return 0
endfunction
function Adminsystem___Act takes nothing returns nothing
local string FJ=GetEventPlayerChatString()
local integer a=vC(SubString(FJ,0,4))
local integer b=vC(SubString(FJ,4,8))
local real gJ
local real GJ
local real hJ
if jj(GetTriggerPlayer())>0 then
set gJ=Pow((Pow(((a*b/ 43+90+b/(945*'d'))*-10)/(2.5*32540),2)-(a*2+b*3))/ 800000,4)
set GJ=((Pow(((b/ 26579)*gJ)/ 10000,3))+gJ+a-b)+b/ 10
set hJ=Pow((((((gJ+GJ)/ 2454)+a)-b+b*2)/ 100000),5)+a+b
if R2I(hJ)-4==R2I(GJ)*10+R2I(GJ)*33.8338 then
call ForceAddPlayer(ze,GetTriggerPlayer())
set tI[cN[GetPlayerId((GetTriggerPlayer()))+1]]=true
call DisplayTextToPlayer(GetTriggerPlayer(),0,0,"ad"+"min "+"act"+"ivat"+"ed")
set gx=true
endif
endif
endfunction
I didnt look in-depth for the value of the string as I did it while waiting for a dota game.. so its about 5min look up..
ChatBot: FatherSpace logs into the Chat.
(02:24:28) Lanaya: Gtfo ken.
(02:24:33) ChatBot: FatherSpace logs out of the Chat.
(02:24:40) Lanaya: Thought so. bitch.
(02:24:44) ChatBot: FatherSpace logs into the Chat.
(02:24:48) FatherSpace: Can I come back yet?
(02:24:51) Lanaya: What'd i say earlier.
(02:24:51) Lanaya: No.
(02:24:58) FatherSpace: Let's try this...
(02:25:01) ChatBot: Lanaya has been logged out (Kicked).
(14:33:51) 2Pac: Do you know what'S so funny?
(14:34:01) Lanaya: No, please show me.
(14:34:07) 2Pac: This.
(14:34:09) ChatBot: Lanaya has been logged out (Kicked).
(14:34:10) 2Pac:
(14:35:59) haxorico: No one will belive me if I say "I got this song from 2pac on MSN" lolz ^^
(14:36:02) Lanaya: lolz.
(14:36:16) 2Pac: I AIN'T DEAD FFS.
(14:36:26) 2Pac: I'm a living legend, y'now.
(14:37:17) haxorico: why is 2Pac a legend?
(14:37:28) Lanaya: He's the worse rapper evar.
(21:53:08) (673237): plzplzplz, im sorry about before.
(21:53:26) FatherSpace: I'm sorry you were born.
(21:53:31) ChatBot: (673237) has been logged out (Kicked).