Go Back   EQEmulator Home > EQEmulator Forums > Support > Spell Support

Spell Support Broken Spells? Want them Fixed? Request it here.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 04-19-2013, 03:07 PM
Zamthos
Discordant
 
Join Date: Jan 2013
Posts: 284
Default

Spell Duration has nothing to do with the quest::selfcast as far as I am aware, you could try adjusting the duration of the spell in the spells table? Also, when you post code you may want to put it in code blocks. You know you can also use saylinks so they click a purple 'link' and it says the text before them? Your script is re-written below using them. The , 1 after the "whatever" makes it so that the text within the saylink isn't said out loud. Also, you can use plugin::Whisper, case-sensitive, to whisper the text to the player rather than say it out loud, however, if you want to send a message to a player in a 'whisper' from something other than an NPC you have to use a $client->Message or it will not work, I hope I helped. ~Harbinger Zamthos

Code:
sub EVENT_SAY 
{
	my $hp = quest::saylink("Hit Points", 1);
	my $haste = quest::saylink("Spell Haste", 1);
	my $healing = quest::saylink("Healing", 1);
	my $curing = quest::saylink("Curing", 1);
	
	if($text=~/Hail/i)
	{
		plugin::Whisper("Hello $name. I cast Cleric buffs. Which buff would you like? [$hp], [$haste], [$healing] or [$curing]?");
	}
	elsif($text=~/Hit Points/i)	
	{	
		if($ulevel >= 1 && $ulevel < 35)
		{
			quest::selfcast(312);
			quest::selfcast(485);
			quest::selfcast(1);	
		}	
		if($ulevel > 34 && $ulevel < 61) 
		{
			$npc->CastSpell(4053, $userid);
		}
		if($ulevel > 60) 
		{
			$npc->CastSpell(9811, $userid);
		}
	}
}
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 09:24 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