Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::General Support

Support::General Support Post all topics here having to do with errors while trying to connect to an EQEMu server but not about the setup/running of the Server itself.

Reply
 
Thread Tools Display Modes
  #1  
Old 06-29-2006, 11:21 AM
Runeblade
Sarnak
 
Join Date: Dec 2005
Posts: 46
Default Npc buffing players

Hey, was wondering in how to get a npc to cast a spell on a player using the questeditor. I seen the translocater post but don't think selfcast will work. i just tried quest::cast but i still can't get it to work.

Can anyone post an example?
I just say buff and he responds in text but no buffs land or cast.
Reply With Quote
  #2  
Old 06-29-2006, 01:34 PM
Runeblade
Sarnak
 
Join Date: Dec 2005
Posts: 46
Default npc buffing

I think i might've got it but not quite sure yet.
Reply With Quote
  #3  
Old 06-29-2006, 08:36 PM
Belfedia
Demi-God
 
Join Date: Jan 2005
Posts: 1,109
Default

Quote:
Originally Posted by Runeblade
I think i might've got it but not quite sure yet.
I'm not a perl master,
But selfcast work, not cast on player for buff.
__________________
__________________________________________________ _____________________________________
I speak english like a spanish cow..., I speak spanish like a english pudding...
But I try to speak good french !!! (Non au langage SMS sur forum)
http://eqfroggy.new.fr : Froggy French Server Website.
Reply With Quote
  #4  
Old 06-30-2006, 09:30 AM
Runeblade
Sarnak
 
Join Date: Dec 2005
Posts: 46
Default npc buffage

Still can't get it to work.

I tried this in teh questeditor

sub EVENT_SAY
{
if($text=~/hail/i)
{
quest::selfcast($userid,2049);
}
}
#END of FILE Zone:qeynos2 ID:336104 -- #Boluen Areden

Can anyone tell me if something is wrong with this? He just looks in my direction when i hail him and nothing else :P.

think i need perl enabled or something, seen examples of a message that pops up when your loading up your world and i don't have it or think theres 2 of them.

Last edited by Runeblade; 06-30-2006 at 06:00 PM..
Reply With Quote
  #5  
Old 06-30-2006, 12:52 PM
Runeblade
Sarnak
 
Join Date: Dec 2005
Posts: 46
Default Buffage

Well i'll start it up later when i've edited the server more, every other type of quest i can make, just not that silly selfcast function. I know it can work cause my friend had one that gave buffs, lvled u to 70, etc. But if i find anything i'll post it. Experimented on placing the selfcast bind on on the exterminator npc in qeynos and logged on and he wasn't even there Lol, so took that line of code off and he poped back :P
Reply With Quote
  #6  
Old 07-01-2006, 01:00 PM
Craleu
Sarnak
 
Join Date: Mar 2005
Posts: 54
Default yep yep

KMRA did that to
there was a NPC that gave you level 65 and like 10kplat
then another one gave you buffs
__________________
~Craleu~
Reply With Quote
  #7  
Old 07-01-2006, 01:04 PM
Craleu
Sarnak
 
Join Date: Mar 2005
Posts: 54
Default yep yep

here is a demo of it
i know it works on 6.0

if($platinum == "100")
{
if (($ulevel > 1) && ($ulevel <=70))
{
if(($class eq Magician) || ($class eq Enchanter) || ($class eq Necromancer) || ($class eq Wizzard) || ($class eq Cleric) || ($class eq Druid) || ($class eq Shaman))
{
if($uguildid eq 5)
{
quest::selfcast(1693);
quest::selfcast(67);
}
else{
quest::say("You Need To Give Me Plat!");
}
}
else{
if($uguildid eq 5)
{
quest::selfcast(67);
quest::selfcast(3391);
}
}
}
}
__________________
~Craleu~
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 06:11 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