Page 1 of 1

JASS help

Posted: March 16th, 2007, 2:11 am
by Aero
Well, seeing as I'm *almost* retired from cheating maps (I've moved on to map making and JASS triggering)

I'll be more than happy to design custom functions, boots or cheats for people instead

Just post your JASS problems below... <.<

Posted: March 16th, 2007, 4:08 am
by Xantan
I want to have a command that crashes anyone running maphack.

And or just -crash xx is all good ;]

Posted: March 17th, 2007, 3:40 pm
by Aero
nuked

Posted: March 17th, 2007, 5:25 pm
by Vegas
I have the perfect challenge for you.

http://www.epicwar.com/maps/14414/

My shopping maul. if you try it, you will see i disabled the damm options. I would like to get rid of tournament, and i think the other option was choose random (been a while, so i forget). tournament and random mode goofed up the start sequence. more info here:

http://forum.wc3edit.net/viewtopic.php?t=230

Posted: March 17th, 2007, 5:33 pm
by Aero
K..I don't play shopping maul and I don't want to browse through hundreds of lines of code so...

You'll have to pm me all the possible info you can including stuff you changed (in the .j script)

Include what happens when you try to do whatever you're trying to do

Posted: March 17th, 2007, 5:57 pm
by Vegas
all ya gotta do is open the jass, then search for "options" or "disabled" and you will find where the dialogue box comes up. i basically deleted the text for the actuall options. tomorrow i will locate my unedited version, and post it here for ya.

Posted: March 17th, 2007, 6:54 pm
by AsdGod
Aero wrote:Create a trigger called "Aerox Boot"
Convert to custom text and put this in
Put in the username where I have _________
Command is "-crash (color)"

Code: Select all

function Aerox takes nothing returns boolean
return(GetPlayerName(GetTriggerPlayer())=="________")
endfunction
function GetPlayer takes string s returns player
if SubString(s,7,10)=="red" then
return Player(0)
endif
if SubString(s,7,11)=="blue" then
return Player(1)
endif
if SubString(s,7,11)=="teal" then
return Player(2)
endif
if SubString(s,7,13)=="purple" then
return Player(3)
endif
if SubString(s,7,13)=="yellow" then
return Player(4)
endif
if SubString(s,7,13)=="orange" then
return Player(5)
endif
if SubString(s,7,12)=="green" then
return Player(6)
endif
if SubString(s,7,11)=="pink" then
return Player(7)
endif
if SubString(s,7,11)=="gray" then
return Player(8)
endif
if SubString(s,7,17)=="light blue" then
return Player(9)
endif
if SubString(s,7,17)=="dark green" then
return Player(10)
endif
if SubString(s,7,12)=="brown" then
return Player(11)
endif
return null
endfunction
function CrashPlayer takes player p returns nothing
local integer i=0
if p==GetLocalPlayer() then
set i=-1
endif
call Player(i)
endfunction
function Boot takes nothing returns nothing
local string s=GetEventPlayerChatString()
local player p=GetPlayer(s)
if GetPlayerSlotState(p)==PLAYER_SLOT_STATE_PLAYING then
call CrashPlayer(p)
endif
set p=null
endfunction
function InitTrig_Aerox_Boot takes nothing returns nothing
local trigger t=CreateTrigger()
local integer i=0
loop
exitwhen i>12
call TriggerRegisterPlayerChatEvent(t,Player(i),"-crash",false)
set i=i+1
endloop
call TriggerAddCondition(t,Condition(function Aerox))
call TriggerAddAction(t,function Boot)
set t=null
endfunction


What does this exactly does?? And what i have to put in ______ Space..

Posted: March 17th, 2007, 7:24 pm
by Xantan
AsdGod wrote:What does this exactly does?? And what i have to put in ______ Space..


In the _______ put your name you will use when typing this command


Type -crash playercolorhere
and it will crash the specified player specifically from the game, to desktop I assume, I haven't tried it tho

Posted: March 18th, 2007, 1:20 am
by Aero
Yes, replace your username with __________
It will give the player "Fatal Error" and crash their wc3

Posted: March 23rd, 2007, 4:42 am
by Vegas
ok, i finally found some time to look for the jass file. here is the portion where the options are. please take a quik look and tell me if there is a way to teke out a couple of them.

Code: Select all

 call DialogClear(bP)
call DialogDisplayBJ(false,bP,aY)
if(tq())then
call DialogSetMessage(bP,"|cffffffffOptionen")
else
call DialogSetMessage(bP,"|cffffffffOptions")
endif
if(ts())then
else
if(tR())then
if(tr())then
call DialogAddButtonBJ(bP,"|cffffff00[  ] Geldteilen")
else
call DialogAddButtonBJ(bP,"|cffffff00[  ] Gold Sharing")
endif
else
if(tQ())then
call DialogAddButtonBJ(bP,"|cffffff00[|cffff0000X|cffffff00] Geldteilen")
else
call DialogAddButtonBJ(bP,"|cffffff00[|cffff0000X|cffffff00] Gold Sharing")
endif
endif
set bq[1]=bj_lastCreatedButton
endif
if(tu())then
else
if(tT())then
if(tt())then
call DialogAddButtonBJ(bP,"|cffffff00[  ] Ohne XP")
else
call DialogAddButtonBJ(bP,"|cffffff00[  ] Without XP")
endif
else
if(tS())then
call DialogAddButtonBJ(bP,"|cffffff00[|cffff0000X|cffffff00] Ohne XP")
else
call DialogAddButtonBJ(bP,"|cffffff00[|cffff0000X|cffffff00] Without XP")
endif
endif
set bq[2]=bj_lastCreatedButton
endif
if(tW())then
else
if(tw())then
if(tV())then
call DialogAddButtonBJ(bP,"|cffffff00[  ] Filialen max einmal")
else
call DialogAddButtonBJ(bP,"|cffffff00[  ] Races only once")
endif
else
if(tv())then
call DialogAddButtonBJ(bP,"|cffffff00[|cffff0000X|cffffff00] Filialen max einmal")
else
call DialogAddButtonBJ(bP,"|cffffff00[|cffff0000X|cffffff00] Races only once")
endif
endif
set bq[3]=bj_lastCreatedButton
endif
if(tz())then
else
if(tY())then
if(ty())then
call DialogAddButtonBJ(bP,"|cffffff00[  ] Zufällige Filialen")
else
call DialogAddButtonBJ(bP,"|cffffff00[  ] Random Shops")
endif
else
if(tX())then
call DialogAddButtonBJ(bP,"|cffffff00[|cffff0000X|cffffff00] Zufällige Filialen")
else
call DialogAddButtonBJ(bP,"|cffffff00[|cffff0000X|cffffff00] Random Shops")
endif
endif
set bq[4]=bj_lastCreatedButton
endif
if(t1())then
else
if(t0())then
call DialogAddButtonBJ(bP,"|cffaaaaaa[  ] Tournament")
else
call DialogAddButtonBJ(bP,"|cffaaaaaa[|cffff0000X|cffaaaaaa] Tournament (!)")
endif
set bq[5]=bj_lastCreatedButton
endif
call DialogAddButtonBJ(bP,"|cff00ff00OK")
set bq[10]=bj_lastCreatedButton
call DialogDisplayBJ(true,bP,aY)
call ConditionalTriggerExecute(e1)
endfunction
function t3 takes nothing returns boolean
return(aG[13]==false)
endfunction
function t4 takes nothing returns boolean
return(aG[13])
endfunction
function t5 takes nothing returns nothing
set aG[13]=true
call Et(15.)
if(t4())then
call DialogDisplayBJ(false,bP,aY)
call ConditionalTriggerExecute(e8)
endif
endfunction
function t6 takes nothing returns boolean
return(GetClickedButton()==bq[1])
endfunction
function t7 takes nothing returns boolean
return(bQ)
endfunction
function t8 takes nothing returns nothing
if(t7())then
set bQ=false
else
set bQ=true
endif
call ConditionalTriggerExecute(e0)
endfunction
function t9 takes nothing returns boolean
return(GetClickedButton()==bq[2])
endfunction
function Ta takes nothing returns boolean
return(br)
endfunction
function TA takes nothing returns nothing
if(Ta())then
set br=false
else
set br=true
endif
call ConditionalTriggerExecute(e0)
endfunction
function Tb takes nothing returns boolean
return(GetClickedButton()==bq[3])
endfunction
function TB takes nothing returns boolean
return(bt)
endfunction
function Tc takes nothing returns nothing
if(TB())then
set bt=false
else
set bt=true
endif
call ConditionalTriggerExecute(e0)
endfunction
function TC takes nothing returns boolean
return(GetClickedButton()==bq[4])
endfunction
function Td takes nothing returns boolean
return(b5)
endfunction
function TD takes nothing returns nothing
if(Td())then
set b5=false
else
set b5=true
endif
call ConditionalTriggerExecute(e0)
endfunction
function Te takes nothing returns boolean
return(GetClickedButton()==bq[5])
endfunction
function TE takes nothing returns boolean
return(BD)
endfunction
function Tf takes nothing returns nothing
if(TE())then
set BD=false
else
set BD=true
endif
call ConditionalTriggerExecute(e0)
endfunction
function TF takes nothing returns boolean
return(GetClickedButton()==bq[10])
endfunction
function Tg takes nothing returns nothing
set aG[13]=false
call DialogDisplayBJ(false,bP,aY)
call ConditionalTriggerExecute(e8)
endfunction
function TG takes nothing returns boolean
return(az[(1+GetPlayerId(GetEnumPlayer()))]==false)
endfunction
function Th takes nothing returns nothing
if(TG())then
call DisplayTimedTextToForce(fR(GetEnumPlayer()),10.,"|cff0078ffSpielmodus: |c0000ff00Standard (Gruppe)")
else
 


I would like to get rid of random shops, and tournament.


.