View Single Post
  #5  
Old 04-09-2016, 10:30 PM
NatedogEZ's Avatar
NatedogEZ
Developer
 
Join Date: Dec 2012
Posts: 515
Default

I would suggest using `event_killed_merit` BTW!

Code:
function event_killed_merit(e)
	local total = 0;
	local qglobals = eq.get_qglobals(e.other);
	if (qglobals["reborn_credits"] == nil) then
		total = 1;
	else
		total = tonumber(qglobals["reborn_credits"]) + 1;
	end

	e.other:SetGlobal("reborn_credits", tostring(total), 5, "F");
	e.other:Message(5, "You have gained a Reborn armor credit! You currently have "..total..".");
end
Reply With Quote