Gryphonheart Items

  • Increase font size
  • Default font size
  • Decrease font size
Home Home Popular Scripts

Popular Scripts

ItemID Finder
Insert this script into a blank item, then Use the item and click an existing item. It will show you the ItemID of that particular item.

GHI_ID ={};
GHI_ID.cursorFeedback = function(id)
   if id then
      local name = GHI_GetItemInfo(id);
      GHI_Message(name..": "..id);
   end
end
GHI_SetCursor("choose_item",GHI_ID);


He/She Detection
This script will detect the gender of the user.
x = UnitSex("player") 
if x == 2 then 
x = "his" 
elseif x == 3 then 
x = "her" 
end 
emote("takes a bomb from "..x.." backpack and throws it at "..x.." target!")

Slash Emote
Insert this command into a script to do a /emote. You can find emotes here.

DoEmote("cheer","none");

Color Flash
This script creates a flash(es) on your screen. Edit only the variables below to change color/opacity and length/time/amount.
(.4, .2, .1) Each number stands for Red Green Blue respectively. The number's distance between 0.0 and 1.0 indicates the strength (opacity) of that color. Mix and match color strengths for different colors and opacities.
4,6,10 The first number represents fade-in time, the second number represents fade-out time, and the third number is total flash time. For a single flash, the total flash time should equal the sum of the first and second number. This can be changed for multiple flashes. 2,3,15 would result in three flashes with a 2-sec fade-in and 3-sec fade-out.

GHI_EffectFrameEffect3Texture:SetVertexColor(.4, .2, .1)
UIFrameFlash(GHI_EffectFrameEffect3, 4,6,10, nil, 0.0, 0);

Random Functions
This script rolls a die to determine which function the item should do. You can insert any API function you'd like!

alex = random(3);
if alex == 1 then
  PlaySoundFile("Sound\\Music\\Zonemusic\\Desert\\Daydesert01.Mp3");
elseif alex == 2 then
  Emote("thinks Kelhan is extremely attractive.")
elseif alex == 3 then
  DoEmote("cheer","none");
end;

Remove GHI Debuffs
This script removes all GHI debuffs from the user.

GHI_DebuffList = {};

Useful Requirements
Copy these lines of script into the LUA Statement box of your Requirement action. Enter nil into the Optional box to hide the line in the tooltip.

Must be targeting this class
UnitClass("target")=="Rogue"

Must be targeting a target
not(UnitName("target") == "" or UnitName("target") == nil)

Must have a specific GHI item
GHI_CountItem("Characternamehere_12345678") > 0

Must be mounted
IsMounted(1)
 

Last Active Forum Topics