Grand Warlock Rythos

Go down

Grand Warlock Rythos

Post  Guest on Mon Jul 19, 2010 7:57 am

Hello everyone, i am new to these fourms and i thought i should add a script for everyone. I am still new to lua so dont make fun Very Happy. Eventually i will update it with some more things like channeling a spell(just a cool visual) befor entering combat. And i will be coming out with some new bosses. so +rep if you like Very Happy. Also! if your very new to lua like i was(barely know how to make a npc talk) then ask for custom bosses and ill do what i can and make one for you.
In order to install this you need to have Notepad++ and you need to have a testing server of some sort, like a repack or something. I use this on my ArcEmu. then copy and paste this into the notepad++ then save as a WHATEVERYOUWANT.lua make sure its a lua or it wont work. then just save it to anywhere like desktop then drag it into you scripts folder. enjoy!
http://tinypic.com/r/ezjpk9/3

Script
Code:
local NAME = "Grand Warlock Rythos"
local NPCID = 8000040

function pUnit_onspawn(pUnit, Event)
 local guid = pUnit:GetGUID()
pUnit:ChannelSpell(67874, guid)
end

function pUnit_OnCombat(pUnit, event, player)
pUnit=pUnit
pUnit:SendChatMessage(42, 0, "Face The Consuming Shadows Of Rythos!")
pUnit:SetModel(10691)
pUnit:RegisterEvent("GrandWarlockRythos_ShadowBolt",3000,0)
pUnit:RegisterEvent("GrandWarlockRythos_DeathandDecay",5000,0)
pUnit:RegisterEvent("GrandWarlockRythos_ManaShield",1000,0)
pUnit:StopChannel()
end

function GrandWarlockRythos_ShadowBolt(pUnit, Event)
pUnit:CastSpellOnTarget(71297, pUnit:GetRandomPlayer(0))
end

function GrandWarlockRythos_DeathandDecay(pUnit, Event)
pUnit:SendChatMessage(42, 0, "Rythos casts Death And Decay! Move out of the way.")
pUnit:CastSpellOnTarget(71001, pUnit:GetMainTank())
end

function GrandWarlockRythos_ManaShield(pUnit, Event)
pUnit:CastSpell(29880)
end

function pUnit_OnDeath(pUnit, Event, Player)
pUnit:SetModel(263)
pUnit:RemoveEvents()
pUnit:SendChatMessage(42, 0, "I....I will return!")
end

function pUnit_OnLeaveCombat(pUnit, Event, Player)
pUnit:SetModel(263)
pUnit:RemoveEvents()
pUnit:SendChatMessage(42, 0, "I will devour your soul!")
end

RegisterUnitEvent(8000040, 1, "pUnit_OnCombat")
RegisterUnitEvent(8000040, 2, "pUnit_OnLeaveCombat")
RegisterUnitEvent(8000040, 4, "pUnit_OnDeath")

Guest
Guest


Back to top Go down

Re: Grand Warlock Rythos

Post  Blachex on Mon Jul 19, 2010 3:22 pm

Nice, I hope it works as I can't test it right now and I am not pro at lua Very Happy

+rep

_________________
[You must be registered and logged in to see this link.] | [You must be registered and logged in to see this link.] | [You must be registered and logged in to see this link.] | [You must be registered and logged in to see this link.]
avatar
Blachex
TwistGaming Admin
TwistGaming Admin

Posts Posts : 375
Location Location : Romania
Reputation Reputation : 38
Warning :

http://www.twistgaming.com

Back to top Go down

Re: Grand Warlock Rythos

Post  FailZorD on Mon Jul 19, 2010 7:10 pm

mykael wrote:Hello everyone, i am new to these fourms and i thought i should add a script for everyone. I am still new to lua so dont make fun Very Happy. Eventually i will update it with some more things like channeling a spell(just a cool visual) befor entering combat. And i will be coming out with some new bosses. so +rep if you like Very Happy. Also! if your very new to lua like i was(barely know how to make a npc talk) then ask for custom bosses and ill do what i can and make one for you.
In order to install this you need to have Notepad++ and you need to have a testing server of some sort, like a repack or something. I use this on my ArcEmu. then copy and paste this into the notepad++ then save as a WHATEVERYOUWANT.lua make sure its a lua or it wont work. then just save it to anywhere like desktop then drag it into you scripts folder. enjoy!
[You must be registered and logged in to see this link.]

Script
Code:
local NAME = "Grand Warlock Rythos"
local NPCID = 8000040

function pUnit_onspawn(pUnit, Event)
 local guid = pUnit:GetGUID()
pUnit:ChannelSpell(67874, guid)
end

function pUnit_OnCombat(pUnit, event, player)
pUnit=pUnit
pUnit:SendChatMessage(42, 0, "Face The Consuming Shadows Of Rythos!")
pUnit:SetModel(10691)
pUnit:RegisterEvent("GrandWarlockRythos_ShadowBolt",3000,0)
pUnit:RegisterEvent("GrandWarlockRythos_DeathandDecay",5000,0)
pUnit:RegisterEvent("GrandWarlockRythos_ManaShield",1000,0)
pUnit:StopChannel()
end

function GrandWarlockRythos_ShadowBolt(pUnit, Event)
pUnit:CastSpellOnTarget(71297, pUnit:GetRandomPlayer(0))
end

function GrandWarlockRythos_DeathandDecay(pUnit, Event)
pUnit:SendChatMessage(42, 0, "Rythos casts Death And Decay! Move out of the way.")
pUnit:CastSpellOnTarget(71001, pUnit:GetMainTank())
end

function GrandWarlockRythos_ManaShield(pUnit, Event)
pUnit:CastSpell(29880)
end

function pUnit_OnDeath(pUnit, Event, Player)
pUnit:SetModel(263)
pUnit:RemoveEvents()
pUnit:SendChatMessage(42, 0, "I....I will return!")
end

function pUnit_OnLeaveCombat(pUnit, Event, Player)
pUnit:SetModel(263)
pUnit:RemoveEvents()
pUnit:SendChatMessage(42, 0, "I will devour your soul!")
end

RegisterUnitEvent(8000040, 1, "pUnit_OnCombat")
RegisterUnitEvent(8000040, 2, "pUnit_OnLeaveCombat")
RegisterUnitEvent(8000040, 4, "pUnit_OnDeath")
Good work mykael i would like to work with you. I need a NPC, a Warning NPC Smile I have it in-game but i need you to make it Warn the player and teleport him somewhere. I can give you the ID and i hope you will make it talk Smile Or i will .kill t Smile Razz
See you soon PM me
.
Definetely
Keep up the good work.
avatar
FailZorD
Power User (Special)
Power User (Special)

Posts Posts : 82
Location Location : Athens
Reputation Reputation : 23
Warning :

http://www.lord-kings.co.nr

Back to top Go down

Re: Grand Warlock Rythos

Post  Guest on Mon Jul 19, 2010 7:22 pm

hehe, ok sure. but not tonight. im off to bed Very Happy but im glad to help anyone with anything if i can. currently im working on a teleporter for someone's special starting place as well so id be glad to try my best with whatever. also lol whats the + rep thing for? i just see everyone doing it. Also if you want something just pm me.

Guest
Guest


Back to top Go down

Re: Grand Warlock Rythos

Post  Blachex on Mon Jul 19, 2010 7:32 pm

If you click on + button means you give +reputation to someone and for - you decrease reputation on forum. Also from time to time we give rewards for how much reputation points you have (Like King rank or God rank) and there is already running an event on our forums for King Rank (EVENT - [You must be registered and logged in to see this link.] )

[You must be registered and logged in to see this link.]

_________________
[You must be registered and logged in to see this link.] | [You must be registered and logged in to see this link.] | [You must be registered and logged in to see this link.] | [You must be registered and logged in to see this link.]
avatar
Blachex
TwistGaming Admin
TwistGaming Admin

Posts Posts : 375
Location Location : Romania
Reputation Reputation : 38
Warning :

http://www.twistgaming.com

Back to top Go down

Re: Grand Warlock Rythos

Post  Guest on Tue Jul 20, 2010 5:51 am

ahk

Guest
Guest


Back to top Go down

Re: Grand Warlock Rythos

Post  Moggie on Tue Jul 20, 2010 8:17 am

Nice work, mykael.
Even though you'r new to lua, its seems like you have no problems with it at all Smile
Keep up the good work Wink
If you want to join our private server as a scripter, pm me.
We would really like you to join Smile


Moggie Smile
avatar
Moggie
Super Moderator
Super Moderator

Posts Posts : 125
Location Location : Sweden
Reputation Reputation : 13
Warning :

http://www.twistgaming.com

Back to top Go down

Re: Grand Warlock Rythos

Post  Guest on Tue Jul 20, 2010 10:07 am

awesome, im glad you all like this. im working on a boss using phases should be done in like 30 minutes-a few hours. all depends on when i get one of the phases working that arnt(wont be hard) then if i want to add some more things.

Guest
Guest


Back to top Go down

Re: Grand Warlock Rythos

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum