View Single Post
  #2  
Old 08-04-2015, 05:11 PM
NatedogEZ's Avatar
NatedogEZ
Developer
 
Join Date: Dec 2012
Posts: 515
Default

I had NO idea how to do this either lol.. but at the same time I did know how to do it.. was a huge brain fart .

Here are the identifiers that can be used..
https://github.com/EQEmu/Server/blob..._item.cpp#L908


I kept trying to do..
"myitem:GetName()" -- which is wrong .. but the correct way is in the code below. Which is why I was having a brain fart .. :(

Code:
function event_say(e)
	
	local myitem = Item(1001);
	
	if(e.message:findi("hail")) then
		e.other:Message(335, "Item name is.. " .. myitem:Name());
	end

end

Last edited by NatedogEZ; 08-04-2015 at 05:22 PM..
Reply With Quote