Grandelf
Esteemed Member
GMS (Grandelf's Mercenary System)
General information
So I have been working on a mercenary system for quite some time now, I actually even made 2 versions.
However version one was crap so I sort of rewritten it and went straight to version 2 which I will present to you here.
This thread is going to be quite long, because there is much to say and I will also do a little guide
on how to add your own mercenaries with this system. I took special care to add something, so it is easy to add mercenaries,
with little script knowledge required. That said, let’s get on to it.
Table of contents
Video
What does this script offer?
The scripts that I am releasing will give you the ability to have mercenaries on your server.
As of now these mercenaries are purely for leveling purposes, which means that you can only have one mercenary
and they can’t enter instances, raids, arena’s or battleground. Furthermore will they not attack players so they are useless in pvp,
which was the point. I might consider changing this later, so you can have more mercenaries etc, but for now it is like this.
As stated in the general information, you can add your own mercenaries as well, for that I want to refer you to the guide section.
List of things that are added
This mercenary will follow you everywhere. Different speed (mounts),
even flying however this does look a bit crappy (no matter what I did, the bitch didn’t want to fly properly >.>).
If you teleport the mercenary will teleport with you, if you log out, the mercenary with ‘log out’ as well. Good luck trying to get rid of it =P.
A spell interface (gossip). These spells are casted in the order which they are put in,
meaning the spell in spell slot 1 will be cast before the spell in spell slot 2. This is done so you can prioritize spells.
A combat system with a custom target function. This function will first try to target the target of the player.
If there is no target, the npc can’t attack that target or the target is a player
then it will try to find a target which it can attack and also has the player on its threat list.
A spell casting system, which supports cooldowns, global cooldowns and mana costs. Furthermore will she regenerate her health and mana slowly out of combat.
The amount of spells a mercenary has depend on the level of the player / mercenary.
And … I probably forgot some things.
Instructions on how to add this system.
It’s quite simple actually, simply pull the source and put the scripts in your scripts folder.
Then run the SQL file from the SQL folder in your world database (this will add the 3 npc’s that come with this system) and you’re done.
Source: Under development..
Guide on how to add your mercenary.
Guide is moved to the repository and can now be found here: How to add your own mercenaries
Last words.
At last, the end of this thread which is way too long.. Yet there are still a few words left to say.
I’ve spend quite some time making and testing this, however there may still be bugs / errors in this script.
If you find any of those or if you have a suggestion on something that could be done better, please leave a reply =D.
Grandelf.
General information
So I have been working on a mercenary system for quite some time now, I actually even made 2 versions.
However version one was crap so I sort of rewritten it and went straight to version 2 which I will present to you here.
This thread is going to be quite long, because there is much to say and I will also do a little guide
on how to add your own mercenaries with this system. I took special care to add something, so it is easy to add mercenaries,
with little script knowledge required. That said, let’s get on to it.
Table of contents
- Video about the system.
- What does this script offer?
- List of things that are added.
- Instructions on how to add this system.
- Guide on how to add your own mercenaries.
Video
What does this script offer?
The scripts that I am releasing will give you the ability to have mercenaries on your server.
As of now these mercenaries are purely for leveling purposes, which means that you can only have one mercenary
and they can’t enter instances, raids, arena’s or battleground. Furthermore will they not attack players so they are useless in pvp,
which was the point. I might consider changing this later, so you can have more mercenaries etc, but for now it is like this.
As stated in the general information, you can add your own mercenaries as well, for that I want to refer you to the guide section.
List of things that are added
This mercenary will follow you everywhere. Different speed (mounts),
even flying however this does look a bit crappy (no matter what I did, the bitch didn’t want to fly properly >.>).
If you teleport the mercenary will teleport with you, if you log out, the mercenary with ‘log out’ as well. Good luck trying to get rid of it =P.
A spell interface (gossip). These spells are casted in the order which they are put in,
meaning the spell in spell slot 1 will be cast before the spell in spell slot 2. This is done so you can prioritize spells.
A combat system with a custom target function. This function will first try to target the target of the player.
If there is no target, the npc can’t attack that target or the target is a player
then it will try to find a target which it can attack and also has the player on its threat list.
A spell casting system, which supports cooldowns, global cooldowns and mana costs. Furthermore will she regenerate her health and mana slowly out of combat.
The amount of spells a mercenary has depend on the level of the player / mercenary.
And … I probably forgot some things.
Instructions on how to add this system.
It’s quite simple actually, simply pull the source and put the scripts in your scripts folder.
Then run the SQL file from the SQL folder in your world database (this will add the 3 npc’s that come with this system) and you’re done.
Source: Under development..
Guide on how to add your mercenary.
Guide is moved to the repository and can now be found here: How to add your own mercenaries
Last words.
At last, the end of this thread which is way too long.. Yet there are still a few words left to say.
I’ve spend quite some time making and testing this, however there may still be bugs / errors in this script.
If you find any of those or if you have a suggestion on something that could be done better, please leave a reply =D.
Grandelf.
Last edited: