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

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

Reply
 
Thread Tools Display Modes
  #1  
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
  #2  
Old 12-24-2013, 10:24 PM
Akkadius's Avatar
Akkadius
Administrator
 
Join Date: Feb 2009
Location: MN
Posts: 2,072
Default

Quote:
Originally Posted by KLS View Post
Oh and in Perl we maintained stupid backwards compatibility (Perl is lame) so it is still "EVENT_SAY".
I'm pretty positive Perl is amazing, you have some misinformation
Reply With Quote
Reply

Thread Tools
Display Modes

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 07:10 PM.


 

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