Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 12-24-2013, 04:37 PM
KLS
Administrator
 
Join Date: Sep 2006
Posts: 1,348
Default

It most definitely is hooked up and working.

Here's a version I had for testing purposes (player.lua):
Code:
function event_command(e)
	if(e.command == "item_upgrade") then
		local item = e.self:GetInventory():GetItem(Slot.Cursor);
		if(item.valid) then		
			local scale = math.random(10, 225) / 100.0;
			item:SetItemScaleMod("base", scale);
			item:SetScaling(true);
			e.self:SendItemScale(item);
		else
			e.self:Message(0, "Could not find item to upgrade.");
		end
	end
end
Oh and in Perl we maintained stupid backwards compatibility (Perl is lame) so it is still "EVENT_SAY".
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 08:34 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3