07-06-2009, 01:25 PM
((I was not sure where to put this but if people use it it will help Roleplay))
GHI Missions Tutorial
How to make a GHI Mission, this will also help people have a better idea of the potentials of GHI and just a good tutorial on how GHI works
Now what I mean is you can give people an item then it will have requirements that it will only produce a certain item when the requirements are met.
So as an example,
“Go and hunt the rare black lion of the barrens and bring me its headâ€Â
First, make the reward; make a new item name it, icon, and what ever else you want to do with it and finish it. For this example, I am making the black lion head.
![[Image: Reward.jpg]](http://www.evolo.org/coth/GHI/Reward.jpg)
Next make another new item again name it and pick the icon and what not. I am making a hatchet
Hit next and go to the next screen. Click the drop down box and select produce item then hit “add newâ€Â
Next click “chose item†and select your reward. Then make sure you put a 1 in the amount box or what ever amount you want. You can also set a delay and the drop down box to if you want them to loot, produce, etc…When you are done click the ok button
![[Image: ProduseItem.jpg]](http://www.evolo.org/coth/GHI/ProduseItem.jpg)
Now you are back at the create new item screen, this part is important you need to click the button next to produce item it will change from “Run Always†to “is fulfilled†this means that it will only produce the item if the requirements (Which we are going to make next) are fulfilled. You must do this for it to work right.
![[Image: IsForfilled.jpg]](http://www.evolo.org/coth/GHI/IsForfilled.jpg)
Next we need to make the requirements. Hit the drop down box and select requirement then “add new†Once in the requirement box there are many requirements in the drop down box the you can select every thing from skill requirement to zones. If what you want is not in the drop down box you can select Lua Statement and make your own. This is what we are going to be doing. So select Lua Statement and in the requirement filter put this code.
UnitName("target")=="Humar the Pridelord"
![[Image: LuaStatement.jpg]](http://www.evolo.org/coth/GHI/LuaStatement.jpg)
What this mean is if Humar the Pridelord is targeted then you have fulfilled the requirement. You can replace Humar the Pridelord with any name of a mob, or even another player character.
Before you close the frame you might want to put something in the tooltip text box the code looks really ugly in the tooltip. I put just Humar the Pridelord in it.
Next you need to make 2 more requirements do the same thing as the last step except put in this code
UnitIsDead("target")==1
This lets the item know that the what ever you are targeting is dead. The 1 just means true.
Make another requirement with this code
CheckInteractDistance("target",3) == 1
This lets the item know how far away you are from the target. The 3 mean melee range.
Now you are ready to go and you can close it. You could add some emotes if you want, also making them is fulfilled. You might also want to check the is consumed box so that the player you give it to cannot get more than one of that item.
![[Image: end.jpg]](http://www.evolo.org/coth/GHI/end.jpg)
So to sum up, you can give some one this item and they have to target Humar the Pridelord, he has to be dead and you have to be with in melee range then when they right click the hatchet they get The black lion head as proof of there kill.
There are many more requirements that can be done and I found that code here mostly the Unit Function section. Oh one really fun requirement is Coordinates but it is much harder (well not much harder just very different) to do I will post another tutorial on it later
If you have any questions please ask.
GHI Missions Tutorial
How to make a GHI Mission, this will also help people have a better idea of the potentials of GHI and just a good tutorial on how GHI works
Now what I mean is you can give people an item then it will have requirements that it will only produce a certain item when the requirements are met.
So as an example,
“Go and hunt the rare black lion of the barrens and bring me its headâ€Â
First, make the reward; make a new item name it, icon, and what ever else you want to do with it and finish it. For this example, I am making the black lion head.
![[Image: Reward.jpg]](http://www.evolo.org/coth/GHI/Reward.jpg)
Next make another new item again name it and pick the icon and what not. I am making a hatchet
Hit next and go to the next screen. Click the drop down box and select produce item then hit “add newâ€Â
Next click “chose item†and select your reward. Then make sure you put a 1 in the amount box or what ever amount you want. You can also set a delay and the drop down box to if you want them to loot, produce, etc…When you are done click the ok button
![[Image: ProduseItem.jpg]](http://www.evolo.org/coth/GHI/ProduseItem.jpg)
Now you are back at the create new item screen, this part is important you need to click the button next to produce item it will change from “Run Always†to “is fulfilled†this means that it will only produce the item if the requirements (Which we are going to make next) are fulfilled. You must do this for it to work right.
![[Image: IsForfilled.jpg]](http://www.evolo.org/coth/GHI/IsForfilled.jpg)
Next we need to make the requirements. Hit the drop down box and select requirement then “add new†Once in the requirement box there are many requirements in the drop down box the you can select every thing from skill requirement to zones. If what you want is not in the drop down box you can select Lua Statement and make your own. This is what we are going to be doing. So select Lua Statement and in the requirement filter put this code.
UnitName("target")=="Humar the Pridelord"
![[Image: LuaStatement.jpg]](http://www.evolo.org/coth/GHI/LuaStatement.jpg)
What this mean is if Humar the Pridelord is targeted then you have fulfilled the requirement. You can replace Humar the Pridelord with any name of a mob, or even another player character.
Before you close the frame you might want to put something in the tooltip text box the code looks really ugly in the tooltip. I put just Humar the Pridelord in it.
Next you need to make 2 more requirements do the same thing as the last step except put in this code
UnitIsDead("target")==1
This lets the item know that the what ever you are targeting is dead. The 1 just means true.
Make another requirement with this code
CheckInteractDistance("target",3) == 1
This lets the item know how far away you are from the target. The 3 mean melee range.
Now you are ready to go and you can close it. You could add some emotes if you want, also making them is fulfilled. You might also want to check the is consumed box so that the player you give it to cannot get more than one of that item.
![[Image: end.jpg]](http://www.evolo.org/coth/GHI/end.jpg)
So to sum up, you can give some one this item and they have to target Humar the Pridelord, he has to be dead and you have to be with in melee range then when they right click the hatchet they get The black lion head as proof of there kill.
There are many more requirements that can be done and I found that code here mostly the Unit Function section. Oh one really fun requirement is Coordinates but it is much harder (well not much harder just very different) to do I will post another tutorial on it later
If you have any questions please ask.