[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 678: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 678: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 678: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 678: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 678: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 678: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4668: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4670: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4671: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4672: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
Gryphonheart AddOns - View topic - Tutorial
View unanswered posts | View active topics It is currently Tue Jun 18, 2019 1:46 am



Reply to topic  [ 9 posts ] 
 Tutorial 
Author Message

Joined: Wed Feb 24, 2010 12:59 am
Posts: 4
Can anyone link me to a decent tutorial for making GH items (Including lua script, how it works, how to include animations, etc.) that is complete (and in english preferably) as I'd love to learn how to make the items properly but can't find any real info on how to work the system.

Thanks.

(I know this probably isnt the right place to post this but I couldnt find a better place)


Tue Mar 02, 2010 11:13 pm
Profile

Joined: Mon Nov 03, 2008 3:37 pm
Posts: 391
Realm Region: Europe
Realm Name:
You may take a look at:

It doesn't cover all of your questions and its kind of specific to a special use for the items.


Wed Mar 03, 2010 2:14 am
Profile WWW

Joined: Mon Mar 30, 2009 9:53 pm
Posts: 178
Although this is no ware as good as Laruna's it is a simple one I made and its got pics

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.


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


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.


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"



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.



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 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.


Sat Mar 06, 2010 1:37 am
Profile

Joined: Wed Mar 03, 2010 5:59 pm
Posts: 8
Hey, thanks for that, the mission thing is actually really helpful, I can implement a guild mission and reward system now :D !

_________________
If I use the mouse to turn, how do I click my GHI item?


Sat Mar 06, 2010 11:05 am
Profile

Joined: Tue Apr 12, 2011 12:08 am
Posts: 13
Realm Name:
I know the Produce Item is bugged right now, but I can't seem to get any of these scripts to work. Any ideas?


Tue Apr 12, 2011 5:41 pm
Profile

Joined: Tue Jun 22, 2010 1:01 pm
Posts: 799
Realm Region: Europe
Realm Name:


Tue Apr 12, 2011 6:01 pm
Profile

Joined: Tue Apr 12, 2011 12:08 am
Posts: 13
Realm Name:
My apologies! I did not see that.


Tue Apr 12, 2011 6:23 pm
Profile

Joined: Mon Feb 27, 2012 1:39 am
Posts: 12
Realm Name:
Very useful info. Resurrecting the old post to ask if DuskWolf ever made the tutorial on coordinate requirements

Ted


Fri Aug 10, 2012 6:14 am
Profile

Joined: Thu Oct 13, 2011 6:38 am
Posts: 303
Realm Name:
The info in here will be invalid in a month or so. 2.0 will be releasing and works in a slightly different way. The wiki for GHI will contain tutorials for how new and old functions work.


Fri Aug 10, 2012 7:49 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 9 posts ] 

Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.