GUI Triggers~~
Moderator: Cheaters
-
- Senior Member
- Posts: 146
- Joined: June 5th, 2007, 12:51 am
- Location: California
GUI Triggers~~
Can somebody explain it step by step to configure trigger for No ability Cooldowns and No Mana cost?
Life is like a game of cards. The hand that is dealt you represents determinism; the way you play it is free will.
-
- Forum Staff
- Posts: 926
- Joined: June 3rd, 2007, 8:03 pm
Heres from aeros cheat pack Basically just resets cd when ne spell is used, and sets mana to max when any spell is used.
Code: Select all
function ResetCD takes nothing returns nothing
call UnitResetCooldown(GetTriggerUnit())
endfunction
function ResetMP takes nothing returns nothing
local unit u=GetTriggerUnit()
call SetUnitState(u,UNIT_STATE_MANA,GetUnitState(u,UNIT_STATE_MAX_MANA))
set u=null
endfunction
function NoCooldown takes player p returns nothing
local trigger t=CreateTrigger()
local triggeraction ta=TriggerAddAction(t,function ResetCD)
call TriggerRegisterPlayerUnitEvent(t,p,EVENT_PLAYER_UNIT_SPELL_CAST,null)
call TriggerRegisterPlayerUnitEvent(t,p,EVENT_PLAYER_UNIT_SPELL_FINISH,null)
call TriggerRegisterPlayerUnitEvent(t,p,EVENT_PLAYER_UNIT_SPELL_CHANNEL,null)
call TriggerRegisterPlayerUnitEvent(t,p,EVENT_PLAYER_UNIT_SPELL_ENDCAST,null)
call TriggerRegisterPlayerUnitEvent(t,p,EVENT_PLAYER_UNIT_SPELL_EFFECT,null)
call WaitForDisable(p,"-cdon")
call DisableTrigger(t)
call TriggerRemoveAction(t,ta)
call DestroyTrigger(t)
set t=null
set ta=null
endfunction
function InfMana takes player p returns nothing
local trigger t=CreateTrigger()
local triggeraction ta=TriggerAddAction(t,function ResetMP)
call TriggerRegisterPlayerUnitEvent(t,p,EVENT_PLAYER_UNIT_SPELL_CAST,null)
call TriggerRegisterPlayerUnitEvent(t,p,EVENT_PLAYER_UNIT_SPELL_FINISH,null)
call TriggerRegisterPlayerUnitEvent(t,p,EVENT_PLAYER_UNIT_SPELL_CHANNEL,null)
call TriggerRegisterPlayerUnitEvent(t,p,EVENT_PLAYER_UNIT_SPELL_ENDCAST,null)
call TriggerRegisterPlayerUnitEvent(t,p,EVENT_PLAYER_UNIT_SPELL_EFFECT,null)
call WaitForDisable(p,"-nomana")
call DisableTrigger(t)
call TriggerRemoveAction(t,ta)
call DestroyTrigger(t)
set t=null
set ta=null
endfunction
-
- Senior Member
- Posts: 146
- Joined: June 5th, 2007, 12:51 am
- Location: California
-
- Forum Staff
- Posts: 926
- Joined: June 3rd, 2007, 8:03 pm
It's still explained ezly enuf reset cd on units casting spells reset mana on units casting spells if u want it player specific then units owned by triggering player. caked.
Edit: incase you cant tell the events and wut not form aeros code... event = anything to do with casting skill ie, begins effect of abil, starts casting. action reset trig unit cd, set trig unit max mana.and if ur doing plaayer specifc just set a variable to trig player in ur regchat event trig.
Edit: incase you cant tell the events and wut not form aeros code... event = anything to do with casting skill ie, begins effect of abil, starts casting. action reset trig unit cd, set trig unit max mana.and if ur doing plaayer specifc just set a variable to trig player in ur regchat event trig.
Last edited by weirdone2 on June 14th, 2007, 12:54 am, edited 1 time in total.
-
- V.I.P.
- Posts: 332
- Joined: March 4th, 2007, 12:39 am
- Location: United States
Ok.. Make a Boolean variable array with however many players you want to be able to do the cheat. In my example, I only want 4 players to do it, so the array is 4!
To activate the cheat:
The actual cheat:
And to turn it off:
To activate the cheat:
Code: Select all
nocd activate
Events
Player - Player 1 (Red) types a chat message containing -nocd as An exact match
Player - Player 2 (Blue) types a chat message containing -nocd as An exact match
Player - Player 3 (Teal) types a chat message containing -nocd as An exact match
Player - Player 4 (Purple) types a chat message containing -nocd as An exact match
Conditions
Actions
Set BOOL_nocd[(Player number of (Triggering player))] = True
Code: Select all
nocd
Events
Unit - A unit Starts the effect of an ability
Conditions
BOOL_nocd[(Player number of (Owner of (Triggering unit)))] Equal to True
Actions
Unit - Reset ability cooldowns for (Casting unit)
Code: Select all
nocd off
Events
Player - Player 1 (Red) types a chat message containing -cdon as An exact match
Player - Player 2 (Blue) types a chat message containing -cdon as An exact match
Player - Player 3 (Teal) types a chat message containing -cdon as An exact match
Player - Player 4 (Purple) types a chat message containing -cdon as An exact match
Conditions
Actions
Set BOOL_nocd[(Player number of (Triggering player))] = False
Doesn't Dekar make the world easier?
"I Wumbo. YOU Wumbo. He she me.. WUMbo. Wumbo; WumboING; WumBOLogy; the study of WUMBO. It's first grade, Spongebob!"
"I'm sorry I doubted your great wisdom Patrick!"
Catch me on Azeroth (U.S. East) - NameSpoofer
-
- Senior Member
- Posts: 146
- Joined: June 5th, 2007, 12:51 am
- Location: California
-
- V.I.P.
- Posts: 332
- Joined: March 4th, 2007, 12:39 am
- Location: United States
Ok.. 1 sec.. Also, add the event to the other cheat: (the actual cheat)
Gimme a sec for no mana..
K, for mana, same as be4 with variable, and same trigger to activate/de-actiavte it, except for setting the variable!
This is the trigger for mana:
Code: Select all
Events
Unit - A unit Starts the effect of an ability
Unit - A unit Begins channeling an ability
Unit - A unit Begins casting an ability
Unit - A unit Stops casting an ability
K, for mana, same as be4 with variable, and same trigger to activate/de-actiavte it, except for setting the variable!
This is the trigger for mana:
Code: Select all
mana
Events
Unit - A unit Starts the effect of an ability
Unit - A unit Begins channeling an ability
Unit - A unit Begins casting an ability
Unit - A unit Stops casting an ability
Conditions
BOOL_nomp[(Player number of (Owner of (Triggering unit)))] Equal to True
Actions
Unit - Set mana of (Triggering unit) to 100.00%
Doesn't Dekar make the world easier?
"I Wumbo. YOU Wumbo. He she me.. WUMbo. Wumbo; WumboING; WumBOLogy; the study of WUMBO. It's first grade, Spongebob!"
"I'm sorry I doubted your great wisdom Patrick!"
Catch me on Azeroth (U.S. East) - NameSpoofer
-
- Senior Member
- Posts: 146
- Joined: June 5th, 2007, 12:51 am
- Location: California
-
- Senior Member
- Posts: 146
- Joined: June 5th, 2007, 12:51 am
- Location: California
-
- V.I.P.
- Posts: 332
- Joined: March 4th, 2007, 12:39 am
- Location: United States
Use the edit button
Actions->General->Set Variable->Click variable, select your variable->click index->Look for Player - Player Number->Click that and it should already be set to Triggering Player->Click ok-> Set it to true!
Did you get this?
Actions->General->Set Variable->Click variable, select your variable->click index->Look for Player - Player Number->Click that and it should already be set to Triggering Player->Click ok-> Set it to true!
Did you get this?
Doesn't Dekar make the world easier?
"I Wumbo. YOU Wumbo. He she me.. WUMbo. Wumbo; WumboING; WumBOLogy; the study of WUMBO. It's first grade, Spongebob!"
"I'm sorry I doubted your great wisdom Patrick!"
Catch me on Azeroth (U.S. East) - NameSpoofer