GUI Triggers~~

For fulfilled maps that most likely don't work on the latest patch (1.24 or later).

Moderator: Cheaters

User avatar
Lacos
Senior Member
Posts: 146
Joined: June 5th, 2007, 12:51 am
Location: California

GUI Triggers~~

Post by Lacos »

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.
User avatar
weirdone2
Forum Staff
Posts: 926
Joined: June 3rd, 2007, 8:03 pm

Post by weirdone2 »

Heres from aeros cheat pack

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
Basically just resets cd when ne spell is used, and sets mana to max when any spell is used.
User avatar
Lacos
Senior Member
Posts: 146
Joined: June 5th, 2007, 12:51 am
Location: California

Post by Lacos »

This is GUI Trigger section.
Life is like a game of cards. The hand that is dealt you represents determinism; the way you play it is free will.
User avatar
weirdone2
Forum Staff
Posts: 926
Joined: June 3rd, 2007, 8:03 pm

Post by weirdone2 »

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.
Last edited by weirdone2 on June 14th, 2007, 12:54 am, edited 1 time in total.
namespoofer
V.I.P.
Posts: 332
Joined: March 4th, 2007, 12:39 am
Location: United States

Post by namespoofer »

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:

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
The actual cheat:

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)
And to turn it off:

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
Image
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
User avatar
Lacos
Senior Member
Posts: 146
Joined: June 5th, 2007, 12:51 am
Location: California

Post by Lacos »

How about 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.
namespoofer
V.I.P.
Posts: 332
Joined: March 4th, 2007, 12:39 am
Location: United States

Post by namespoofer »

Ok.. 1 sec.. Also, add the event to the other cheat: (the actual cheat)

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
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

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%
Image
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
User avatar
Lacos
Senior Member
Posts: 146
Joined: June 5th, 2007, 12:51 am
Location: California

Post by Lacos »

Thanks~ :)
Life is like a game of cards. The hand that is dealt you represents determinism; the way you play it is free will.
User avatar
Lacos
Senior Member
Posts: 146
Joined: June 5th, 2007, 12:51 am
Location: California

Post by Lacos »

I'm having hard time finding that trigger-- Set BOOL_nocd[(Player number of (Triggering player))] = True .

What is it?
Life is like a game of cards. The hand that is dealt you represents determinism; the way you play it is free will.
namespoofer
V.I.P.
Posts: 332
Joined: March 4th, 2007, 12:39 am
Location: United States

Post by namespoofer »

Use the edit button :wink:

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?
Image
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