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 02-25-2014, 02:19 PM
kimura
Hill Giant
 
Join Date: Oct 2011
Posts: 132
Default Check for buff?

cant seem to find an if check for a certain buff. is there a variable or function to check if a client has a specific buff?

thanks

Kimura
Reply With Quote
  #2  
Old 02-25-2014, 02:37 PM
Township EQ
Hill Giant
 
Join Date: Sep 2013
Posts: 118
Default

try this.. no clue if it works or not just got it from the wiki.. put this on a random npc and change the spell id.

Code:
sub EVENT_SAY {
	if($text=~/hail/i) {
		if($client->FindBuff(123456) {
			$client->Message(15, "You have dat buff on you dawwwwwg");
		}
	}
}
Reply With Quote
  #3  
Old 02-25-2014, 02:55 PM
kimura
Hill Giant
 
Join Date: Oct 2011
Posts: 132
Default

thanks, I actually already had that one in the script...just used it wrong lol
Reply With Quote
  #4  
Old 02-25-2014, 03:00 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,595
Default

FROM:
Code:
if($client->FindBuff(123456)
TO:
Code:
if($client->FindBuff(123456))
You're missing a parenthesis, that script would not run.
Reply With Quote
  #5  
Old 02-25-2014, 06:48 PM
ghanja's Avatar
ghanja
Dragon
 
Join Date: Aug 2012
Location: Hershey, PA
Posts: 499
Default

Quote:
Originally Posted by Kingly_Krab View Post
FROM:
Code:
if($client->FindBuff(123456)
TO:
Code:
if($client->FindBuff(123456))
Reply With Quote
  #6  
Old 02-26-2014, 09:53 AM
Township EQ
Hill Giant
 
Join Date: Sep 2013
Posts: 118
Default

Quote:
Originally Posted by Kingly_Krab View Post
FROM:
Code:
if($client->FindBuff(123456)
TO:
Code:
if($client->FindBuff(123456))
You're missing a parenthesis, that script would not run.
i'm sure he would've figured that out when he changed the spell id.. i was rushed because i had work an stuffs.. wrote it in 2 seconds.
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 11:37 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3