wc3edit.net

United Warcraft 3 map hacking!
It is currently April 28th, 2024, 10:35 am

All times are UTC




Post new topic Reply to topic  [ 31 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Post subject:
PostPosted: June 14th, 2007, 5:42 pm 
Offline
V.I.P.
User avatar

Joined: March 4th, 2007, 12:39 am
Posts: 332
Location: United States
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


Top
 Profile  
 
 Post subject:
PostPosted: June 14th, 2007, 5:45 pm 
Offline
Forum Drunk
User avatar

Joined: January 17th, 2007, 4:22 pm
Posts: 2903
Location: Darmstadt, Germany
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


Top
 Profile  
 
 Post subject:
PostPosted: June 14th, 2007, 5:52 pm 
Offline
V.I.P.
User avatar

Joined: March 4th, 2007, 12:39 am
Posts: 332
Location: United States
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:
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


Top
 Profile  
 
 Post subject:
PostPosted: June 14th, 2007, 6:02 pm 
Offline
Forum Drunk
User avatar

Joined: January 17th, 2007, 4:22 pm
Posts: 2903
Location: Darmstadt, Germany
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


Top
 Profile  
 
 Post subject:
PostPosted: June 14th, 2007, 6:38 pm 
Offline
V.I.P.
User avatar

Joined: March 4th, 2007, 12:39 am
Posts: 332
Location: United States
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:
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:
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_blizzard_spell2()) "Abilities\\Spells\\Undead\\FrostNova\\FrostNovaTarget.mdl")


In WEU, it says
Code:
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


Top
 Profile  
 
 Post subject:
PostPosted: June 15th, 2007, 2:31 am 
Offline
Forum Staff
User avatar

Joined: January 28th, 2007, 8:10 pm
Posts: 830
Location: Canada
Title: JASS Programmer
Code:
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


Top
 Profile  
 
 Post subject:
PostPosted: June 15th, 2007, 2:46 am 
Offline
V.I.P.
User avatar

Joined: March 4th, 2007, 12:39 am
Posts: 332
Location: United States
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


Top
 Profile  
 
 Post subject:
PostPosted: June 15th, 2007, 8:12 pm 
Offline
Forum Staff
User avatar

Joined: January 28th, 2007, 8:10 pm
Posts: 830
Location: Canada
Title: JASS Programmer
Sure, easy


Top
 Profile  
 
 Post subject:
PostPosted: June 15th, 2007, 9:18 pm 
Offline
V.I.P.
User avatar

Joined: March 4th, 2007, 12:39 am
Posts: 332
Location: United States
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:
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


Top
 Profile  
 
 Post subject:
PostPosted: June 15th, 2007, 10:01 pm 
Offline
Forum Staff
User avatar

Joined: January 28th, 2007, 8:10 pm
Posts: 830
Location: Canada
Title: JASS Programmer
Wouldnt it make more sense to damage units in an AoE of 100 of each Frost Nova effect?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 31 posts ]  Go to page Previous  1, 2, 3, 4  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 22 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO


Privacy Policy Statement
Impressum (German)