Well, this is yet another "Howto guide", completely written by me.
1. How to create a monster.
First of all go to WoW Vendetta - Wage Your War | WoW-V.com, You need to be registered to be able to create things, so if you're not registered then go on and do it.
After you finished registering you have to verify that it's you, so log onto your email account and click the link in the mail from WoW-V, After you're done with that you go can log onto your account.
After you've logged on theres a bar at the top of the screen, on that bar it says "Create" click there and it will redirect you to what you want to create.
Click on Npc / Creature creator.
Now to the creation itself... Once the page has loaded you first of all type in the name of the creature, then you will need a Display ID for the creature, either you can use the function on WoW-V named "Display Finder" wich is a big blue button, or if you have your own server just log in-game and find a creature you want it to look like, target the creature and type ".npc info"
Once you have the display ID you just type it in where it says "Display ID"
Everything else is pretty obvious, just type in how much health you want it to have, how much damage you want it to do, and so on.
When you're done with creating the monster you click "Submit" at the bottom of the page, then you just click on "Download" and you choose wichever kind of emulator you're using.
2. How to execute into database.
When you are done downloading the .sql file it's time to execute it into the database, ofcourse when you wanna access your database "MySql" has to be on.
When you get inside the database, depending on wich on you use... Ill be explaining how to do it on HeidiSQL, because that's what i use.
When you get inside the database it will say at the top of the screen almost "Query", its kind of like a tab option... You just look around and you'll find it...
When you have found it, there is a small icon that looks like a folder, wich ofcourse means "Open", Click it and choose the Sql file, where ever you have put it, once you're done with opening it into the database, you click the green button that looks like a "play" button on a stereo.
Now you should have the monster inside the database, but to get it into the game you either have to restart the server, or reload the tables from ingame, the tables on ArcEmu are named "creature_names" and "creature_proto" so if you're using ArcEmu just type in ".server Reloadtable creature_names" and ".server Reloadtable creature_proto".
Then you just spawn the monster with the ID you gave it while creating it.
The Entry ID that is.
3. How to script the Monster / Boss.
Alright, i will now start doing the scripting part.
To start of with, i will make the mob cast a spell as soon as it enters combat.
To do that i have to do like this:
Code:
function Boss_OnCombat(pUnit, event)
pUnit:FullCastSpellOnTarget(12345,pUnit:GetMainTank()
end
This will make the creature cast the spell that has the ID "12345" on the Main Tank.
Now i want the boss to say something when it casts the spell, so then i add this:
Code:
pUnit:SendChatMessage(14,0,"Test text")
so now the script will look like this:
Code:
function Boss_OnCombat(pUnit, event)
pUnit:FullCastSpellOnTarget(12345,pUnit:GetMainTank()
pUnit:SendChatMessage(14,0,"Test text")
end
and then i want to boss to cast a certain spell at a certain ammount of HP, so then creature a new function, wich i just write like this:
Code:
function Boss_GetHP(pUnit, event)
if pUnit:GetHealthPct < 50 then
pUnit:FullCastSpellOnTarget(54321,pUnit:GetClosestPlayer()
end
so now the script looks like this:
Code:
function Boss_OnCombat(pUnit, event)
pUnit:FullCastSpellOnTarget(12345,pUnit:GetMainTank()
pUnit:SendChatMessage(14,0,"Test text")
pUnit:RegisterEvent("Boss_GetHPAndThenCastSpell",1000,0)
end
function Boss_GetHPAndThenCastSpell(pUnit, event)
if pUnit:GetHealthPct < 50 then
pUnit:FullCastSpellOnTarget(54321,pUnit:GetClosestPlayer()
end
So now the monster will cast spell 54321 at 50% hp.
and ofcourse to finish the script of we need to enter the register unit events.
so then i do like this:
Code:
function Boss_OnCombat(pUnit, event)
pUnit:FullCastSpellOnTarget(12345,pUnit:GetMainTank()
pUnit:SendChatMessage(14,0,"Test text")
pUnit:RegisterEvent("Boss_GetHPAndThenCastSpell",1000,0)
end
function Boss_GetHPAndThenCastSpell(pUnit, event)
if pUnit:GetHealthPct < 50 then
pUnit:FullCastSpellOnTarget(54321,pUnit:GetClosestPlayer()
end
RegisterUnitEvent(10000,"Boss_OnCombat")
The "10000" is the ID of the monster.
That's basicly all i have time to do, i might update this at a later point, but i hope it helped a little atleast.