Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #1  
Old 04-03-2014, 10:09 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default LUA $name

Strange thing my LUA is working, but either $name is not working like I thought or something is off.

Code:
function event_say(e)
		if(e.message:findi("hail")) then
			e.self:Say("Hello $name. If you possess a Dark Wedding Certificate you may hand it to me when you are ready to begin your wedding. If you are currently in a wedding party you may [" .. eq.say_link("enter the chapel",false,"enter the chapel") .. "] now.");
		end
end
That is actually printing out $name
Reply With Quote
  #2  
Old 04-03-2014, 10:44 PM
Uleat's Avatar
Uleat
Developer
 
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
Default

I found this in '\quests\freeporteast\Groflah_Steadirt.lua':

e.self:Say(string.format("Greetings, %s! Join in the [celebration]! Have a few drinks. Alas, there are no [Tumpy Tonics].",e.other:GetName()));


I think '$name' is a perl holdover.
__________________
Uleat of Bertoxxulous

Compilin' Dirty
Reply With Quote
  #3  
Old 04-03-2014, 11:22 PM
Robregen
Developer
 
Join Date: May 2011
Posts: 108
Default

I just did a massive commit on correcting those https://code.google.com/p/projecteqq.../detail?r=1562
Reply With Quote
  #4  
Old 04-03-2014, 11:30 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

Looks like I need to get off my ass and do an update this weekend.
Reply With Quote
  #5  
Old 04-03-2014, 11:42 PM
Akkadius's Avatar
Akkadius
Administrator
 
Join Date: Feb 2009
Location: MN
Posts: 2,071
Default

Quote:
Originally Posted by provocating View Post
Looks like I need to get off my ass and do an update this weekend.
Reply With Quote
  #6  
Old 04-04-2014, 12:37 AM
sorvani
Dragon
 
Join Date: May 2010
Posts: 966
Default

Quote:
Originally Posted by Uleat View Post
I found this in '\quests\freeporteast\Groflah_Steadirt.lua':

e.self:Say(string.format("Greetings, %s! Join in the [celebration]! Have a few drinks. Alas, there are no [Tumpy Tonics].",e.other:GetName()));


I think '$name' is a perl holdover.
Additionally, this does work, but is horribly unreadable to people not familiar with C++

This is the preferred way to do it.
Quote:
e.self:Emote("begins to furiously work the metal. Sparks fly and a faint magical e.self:Say("Greetings, " .. e.other:GetName() .. "! Join in the [celebration]! Have a few drinks. Alas, there are no [Tumpy Tonics].");
Reply With Quote
  #7  
Old 04-04-2014, 08:19 AM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

Quote:
Originally Posted by sorvani View Post
Additionally, this does work, but is horribly unreadable to people not familiar with C++

This is the preferred way to do it.
I also like the second way better. I am familiar with the first way, just from dabbling in C++, but it is not that readable to me.
Reply With Quote
  #8  
Old 04-04-2014, 08:20 AM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

Good one Akkadius.
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 03:57 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3