Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > World of Warcraft > WoW Private Server
You last visited: Today at 21:33

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



WoW-BossSkript Probleme :-(

Discussion on WoW-BossSkript Probleme :-( within the WoW Private Server forum part of the World of Warcraft category.

Reply
 
Old   #1
 
klemi3's Avatar
 
elite*gold: 0
Join Date: Apr 2010
Posts: 155
Received Thanks: 22
WoW-BossSkript Probleme :-(

Hio,
ich hab mir mal, nachdem ich mit C schon Erfahrung haben, gedacht, ich könnte doch mal nen Lua WoW Boss skripten...^^
Hab mir ein Tutorial geholt, und hab los gelegt...
Dass is dabei rausgekommen, und iwie kennt er die Funktion "OnCombat" nicht...
Code:
RegisterUnitEvent(100000, 1, "Boss_OnCombat")
RegisterUnitEvent(100000, 2, "Boss_OnLeaveCombat")
RegisterUnitEvent(100000, 3, "Boss_OnKilledTarget")
RegisterUnitEvent(100000, 4, "Boss_OnDied")

-- main funktions
function Boss_OnCombat(Unit, Event)
     Unit:SendChatMessage(14, 0, "Now you shall burn!" )
     Unit:RegisterEvent("Name_Phase1", 1000, 0)
end

function Boss_OnKilledTarget(Unit, Event)
	Unit:SendChatMessage(14, 0, "...just another one!" )
end

function Boss_OnLeaveCombat(Unit, Event)
    Unit:RemoveEvents()
	Unit:SendChatMessage(14, 0, "Haha, running away like a child!" )
    end

function Boss_OnDied(Unit, Event)
	Unit:SendChatMessage(14, 0, "You... you... have it done..." )
    Unit:RemoveEvents()
end	
	

	
	
	
-- phasen
function Name_Phase1(Unit, Event)
     if Unit:GetHealthPct() < 95 then
    Unit:RemoveEvents()
    Unit:RegisterEvent("Phase1_spell1", 20000, 0)
	Unit:RegisterEvent("Phase1_spell2", 35000, 0)
    Unit:RegisterEvent("Name_Phase2", 1000, 0)
	 
    end
end

function Name_Phase2(Unit, Event)
     if Unit:GetHealthPct() < 50 then
    Unit:RegisterEvent("Phase2_spell1", 15, 0)
    Unit:RegisterEvent("Name_Phase3", 1000, 0)
     end
end

function Name_Phase3(Unit, Event)
     if Unit:GetHealthPct() < 20 then
     Unit:RemoveEvents()
     Unit:RegisterEvent("Phase3_spell1", 10000, 0)
     Unit:RegisterEvent("Phase3_spell2", 120000, 0)
	 Unit:RegisterEvent("Phase3_spell3", 180000, 0)
	 Unit:RegisterEvent("Phase3_spell2", 120000, 0)
	 Unit:RegisterEvent("Name_Phase4", 1000, 0)
    end
end

function Name_Phase4(Unit, Event)
     if Unit:GetHealthPct() > 25 then
     Unit:RegisterEvent("Phase4_spell1", 1500, 1)
     Unit:RegisterEvent("Phase4_spell2", 1500, 1)
     Unit:RegisterEvent("Phase4_spell3", 1500, 1)
     Unit:RegisterEvent("Phase4_spell4", 1000, 0)
    end
end




-- casts	
function Phase1_spell1(Unit, Event)
local spell1ziel = Unit:GetRandomPlayer(7)
    if (spell1ziel~=nil) then
     Unit:FullCastSpellOnTarget(67628, spell1ziel)
	 Unit:SendChatMessage(14, 0, "Burn!" )
     end
end

function Phase1_spell2(Unit, Event)
local spell2ziel = Unit:GetClosestPlayer()
    if (spell2ziel~=nil) then
     Unit:CastSpellOnTarget(67660, spell2ziel)
	 Unit:SendChatMessage(14, 0, "Sleep!" )

end

function Phase2_spell1(Unit, Event)
local spell3ziel = Unit:GetMainTank()
     if (spell3ziel~=nil) then
     Unit:FullCastSpellOnTarget(67477, spell3ziel)
	 Unit:SendChatMessage(14, 0, "Take this!" )
     end
end

function Phase3_spell1(Unit, Event)
local spell4ziel = Unit:GetMainTank()
     if (spell4ziel~=nil) then
     Unit:FullCastSpellOnTarget(67477, spell4ziel)
	 Unit:SendChatMessage(14, 0, "...and now, I am engaging!" )
     end
end

function Phase3_spell2(Unit, Event)
     Unit:CastSpell(47585)
	 Unit:SendChatMessage(14, 0, "You are just wasting your time!" )
end
	
function Phase3_spell3(Unit, Event)
     Unit:CastSpell(47788)
	 Unit:SendChatMessage(14, 0, "Angels are flying!" )
end

function Phase3_spell3(Unit, Event)
     Unit:CastSpell(48068)

end

function Phase4_spell1(Unit, Event)
     Unit:CastSpell(47008)
     Unit:SetScale(3.2)
     Unit:SendChatMessage(14, 0, "Now.. Now it is over! ENRAGE!" )
end

function Phase4_spell2(Unit, Event)
     Unit:CastSpell(61714)
end

function Phase4_spell3(Unit, Event)
     Unit:CastSpell(64238)
end

function Phase4_spell4(Unit, Event)
     Unit:CastSpell(61715)
end

function Phase4_spell4(Unit, Event)
local spell10ziel = Unit:GetMainTank()
     if (spell10ziel~=nil) then
     Unit:FullCastSpellOnTarget(64487, spell10ziel)
	 Unit:SendChatMessage(14, 0, "Big BANG!" )
    end
end
Ich hoff mal, dass is jetzt nicht zusehr unstrukturiert, wenn ihr mir sagen könntet, wo das problem is, wär ich sehr dankbar, der server is 3.3.3a ArcEmu.
Und wenn wer nen Wuala WoWEmulator Debugger iwo rumliegen hat, hoch laden und link pls, hab nix nützliches gefunden zum debuggen^^
klemi3 is offline  
Reply


Similar Threads Similar Threads
Hamachi Probleme Über Probleme.
02/21/2010 - Metin2 Private Server - 9 Replies
Hallo Com. also ich hab ein Problem also auf meinen hamachi kann ich dmg ändern von 2händern 1 hand usw dolche aber bei Glocke kommt so eine meldung wenn ich die dann hinterher anziehen will ingame. http://img51.imageshack.us/img51/3891/glocke.png
2 Probleme mit WoW
11/12/2009 - World of Warcraft - 12 Replies
Huhu. Da ich mich von Metin2 abgewendet habe und nun mit WoW anfangen habe ich auch schon mit 2 Problemen zu kämpfen. Wenn ihr eine Antwort au Problem 1 findet, dann brauch ich Problem 2 nichtmehr zu lösen. :) Dann leg ich mal los. 1.)Ich habe mir den Curse Client geholt beim starten kommt aber: http://img687.imageshack.us/img687/1623/prob1.jpg
AHK Probleme
10/27/2008 - General Coding - 0 Replies
Hallo Leute mein skipt sieht wie folgt aus: WinWait, xxx, IfWinNotActive, xxx, , WinActivate, xxx, WinWaitActive, xxx, loop, 1 { loop, 27 { Random, way, 1, 2 ;1=xy; 2=xy If way=1
Probleme mit MHS 1.84
07/23/2008 - Metin2 - 13 Replies
hi ich habe Probleme mit mhs 1.84. Wenn ich das Spiel starte und MHS auch, dann kommt das: http://img3.imagebanana.com/img/au9o9olm/ppp.jpg Kann mir da jemand weiterhelfen? Gruß mEpAx
probleme mit exe
07/12/2007 - World of Warcraft - 3 Replies
hiho habe da probs mit dem einlogen also eher gesagt wow startet net mehr mit meiner mcptr datei was ist los gibt es ne aktuelle datei? =) help plx



All times are GMT +2. The time now is 21:33.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.