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, 02:30 PM
Randymarsh9
Dragon
 
Join Date: Dec 2007
Posts: 658
Default Event_command?

I was looking through the quest documentation yesterday and I saw this event, and I was wondering what it does or whether it has been implemented yet. I tried to make a script that messaged the client on EVENT_COMMAND, and then try #commands to see if that was what it was supposed to do, but nothing happened. I am interested to know what this actually does or is supposed to do, if anyone knows.
Reply With Quote
  #2  
Old 12-24-2013, 03:37 PM
lerxst2112
Demi-God
 
Join Date: Aug 2010
Posts: 1,742
Default

I only gave it a quick look, but it looks like it isn't hooked up to anything at the moment.
Reply With Quote
  #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
  #4  
Old 12-24-2013, 09:52 PM
lerxst2112
Demi-God
 
Join Date: Aug 2010
Posts: 1,742
Default

Yeah, I was looking for the EventPlayer(EVENT_COMMAND,...) line and didn't see it.
Reply With Quote
  #5  
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


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 05:31 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