Skip to content

Instantly share code, notes, and snippets.

@Road-block
Last active January 14, 2016 23:10
Show Gist options
  • Save Road-block/c45e3c1440693433c642 to your computer and use it in GitHub Desktop.
Save Road-block/c45e3c1440693433c642 to your computer and use it in GitHub Desktop.
/script local _,_,i=strfind(GetInventoryItemLink("player",18),"\124Hitem:(%d+)")local _,_,_,_,_,p=GetItemInfo(i)local t={}t.Bows="Bow"t.Guns="Gun"t.Crossbows="Crossbow"t.Thrown="Throw"CastSpellByName((string.gsub(t[p],"^([^T])","Shoot %1")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment