First Script!

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

namespoofer
V.I.P.
Posts: 332
Joined: March 4th, 2007, 12:39 am
Location: United States

Post by namespoofer »

But if WEU does care about it, then it wont let me enable the trigger! :cry:
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
Dekar
Forum Drunk
Posts: 2895
Joined: January 17th, 2007, 4:22 pm
Location: Darmstadt, Germany

Post by Dekar »

Insert it the way you insert cheatpacks... Just extract and use JASScraft :)
I don't know if there's another way... I've read something about a cracked
WE syntax checker .dll file, but I haven't found a dl link.. -.-
Maybe Aero knows a workaround...
Don't pm me with Warcraft questions, this is a forum so just make a post!

In the world of thinking we are all immigrants. -Robert Nozick
namespoofer
V.I.P.
Posts: 332
Joined: March 4th, 2007, 12:39 am
Location: United States

Post by namespoofer »

Zomg!!@!@ JASScraft is giving the same problem.. -.-

'cannot convert unitevent to player event'

And now, (I'm in the war3map.j) it's telling me that I can't 'convert code to boolexpr'

Why does JASS have to be so gay sometimes -.-

edit- In WE, it's only giving me the unitevent->playerevent in this line:

Code: Select all

call TriggerAddCondition(gg_trg_spell2,function spell2_cond)
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
Dekar
Forum Drunk
Posts: 2895
Joined: January 17th, 2007, 4:22 pm
Location: Darmstadt, Germany

Post by Dekar »

Hmm get a player event :P
My pc isn't working atm, cause I sold my graphics card, -.-
but when the new one arrives, I'll have a closer look at your code. :)
Don't pm me with Warcraft questions, this is a forum so just make a post!

In the world of thinking we are all immigrants. -Robert Nozick
namespoofer
V.I.P.
Posts: 332
Joined: March 4th, 2007, 12:39 am
Location: United States

Post by namespoofer »

Dekar, you gotta understand, I'm still an uber noob at JASS -.- What you mean by get a player event?

Also, I have 'buffed' up my spell ^.^

Here is the newest 1.

Code: Select all

function spell2_cond takes nothing returns boolean
    return GetSpellAbilityId() == 'A001'
endfunction

function spell2_act takes nothing returns nothing
    local integer int_weather
    call AddWeatherEffectSaveLast( gg_rct_blizzard_spell2, 'SNbs' )
    set udg_weather = GetLastCreatedWeatherEffect()
    call EnableWeatherEffect( udg_weather, true )
   
    loop
        exitwhen int_weather > 8
        call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_blizzard_spell2()) "Abilities\\Spells\\Undead\\FrostNova\\FrostNovaTarget.mdl")
        set int_weather = int_weather + 1
        call TriggerSleepAction( .20)
    endloop
    call TriggerSleepAction( 6.00 )
    call EnableWeatherEffect( udg_weather, false )
    call RemoveWeatherEffectBJ( udg_weather )
endfunction

//==== Init Trigger NewTrigger ====
function InitTrig_spell2 takes nothing returns nothing
    set gg_trg_spell2 = CreateTrigger()
    //call TriggerRegister__(gg_trg_NewTrigger, )
    call TriggerRegisterAnyUnitEventBJ( gg_trg_spell2, EVENT_UNIT_SPELL_EFFECT)
    call TriggerAddCondition( gg_trg_spell2, Condition( function spell2_cond ) )
    call TriggerAddAction(gg_trg_spell2, function spell2_act)
endfunction


Still same problem with unitevet->playerevent, but now there is a syntax error in this line:

Code: Select all

call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_blizzard_spell2()) "Abilities\\Spells\\Undead\\FrostNova\\FrostNovaTarget.mdl")


In WEU, it says

Code: Select all

Expected '


Eh.. I'm trying -.-
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
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Post by Aero »

Code: Select all

function Spell2Cond takes nothing returns boolean
return(GetSpellAbilityId()=='A001')
endfunction

function SpellTimer takes nothing returns nothing
call DestroyEffect(AddSpecialEffect("Abilities\\Spells\\Undead\\FrostNova\\FrostNovaTarget.mdl",GetRandomReal(GetRectMinX(gg_rct_blizzard_spell2),GetRectMaxX(gg_rct_blizzard_spell2)),GetRandomReal(GetRectMinY(gg_rct_blizzard_spell2),GetRectMaxY(gg_rct_blizzard_spell2))))
endfunction

function Spell2Actions takes nothing returns nothing
local timer t=CreateTimer()
local weathereffect we=AddWeatherEffect(gg_rct_blizzard_spell2,'SNbs')
call EnableWeatherEffect(we,true)
call TimerStart(t,0.2,true,function SpellTimer)
call PolledWait(1.6)
call DestroyTimer(t)
call PolledWait(4.4)
call EnableWeatherEffect(we,false)
call RemoveWeatherEffect(we)
set t=null
set we=null
endfunction

function InitTrig_spell2 takes nothing returns nothing
set gg_trg_spell2=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_spell2,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_spell2,Condition(function Spell2Cond))
call TriggerAddAction(gg_trg_spell2,function Spell2Actions)
endfunction
namespoofer
V.I.P.
Posts: 332
Joined: March 4th, 2007, 12:39 am
Location: United States

Post by namespoofer »

Yesssss.. Thank you much, yes? :D

Now I gotta make another spell for you to correct for me.. -.-
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
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Post by Aero »

Sure, easy
namespoofer
V.I.P.
Posts: 332
Joined: March 4th, 2007, 12:39 am
Location: United States

Post by namespoofer »

Ok, I made a somewhat similar spell, but I used your timer shit, (does seem to set-up easier! :D) and your special effect thing.. Though I don't understand how that works.. Care to explain it? :)

Now what I'm wanting to know is how I can damage and freeze every unit in the AOE (550), or in the region I centered at target point of abil cast..

Code: Select all

function Spell3Cond takes nothing returns boolean 
return(GetSpellAbilityId()=='A002')
endfunction

function SpellTimer2 takes nothing returns nothing
call DestroyEffect(AddSpecialEffect("Abilities\\Spells\\Undead\\FrostNova\\FrostNovaTarget.mdl",GetRandomReal(GetRectMinX(gg_rct_spell3),GetRectMaxX(gg_rct_spell3)),GetRandomReal(GetRectMinY(gg_rct_spell3),GetRectMaxY(gg_rct_spell3))))
endfunction

function Spell3Act takes nothing returns nothing
local timer t=CreateTimer()
call MoveRectToLoc(gg_rct_spell3, GetSpellTargetLoc())
call TimerStart(t, 0.1, true, function SpellTimer2)
call PolledWait(2.0)
call DestroyTimer(t)
set t=null
endfunction

function InitTrig_spell3 takes nothing returns nothing
set gg_trg_spell3=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_spell3, EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddAction(gg_trg_spell3, function Spell3Act)
call TriggerAddCondition(gg_trg_spell3,Condition(function Spell3Cond))
endfunction


I'm thinking that.. wait.. I actually have no idea where to start on the damage adding and freezing.. -.-
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
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Post by Aero »

Wouldnt it make more sense to damage units in an AoE of 100 of each Frost Nova effect?