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-25-2005, 03:46 PM
SiliconeClone
Sarnak
 
Join Date: Apr 2005
Posts: 42
Default Castspell($userid,num) not working

I can not implement this in anyquest I do. I took the nexus scion transporters and had to changed them all to a self cast translocate to work. I tried to implement a mob with death touch and castspell would still not work so I had to goto a selfcast. I am using 6.0 dr2 has anyone else experienced this problem?


Prince_Thirneg.pl
Code:
sub EVENT_SAY { 
if ($text=~/Hail/i){
quest::say("Hello $name .  What have you come to growth for?"); 
}
if ($text=~/phatty lewts/i)
{
quest::say("There are no Phatty Lewts for you here $name!");
quest::castspell($userid,982);
}
}
opinions? fixes?
Reply With Quote
  #2  
Old 04-26-2005, 04:38 AM
mwmdragon's Avatar
mwmdragon
Discordant
 
Join Date: Apr 2003
Location: Winnipeg, Manitoba Canada
Posts: 270
Default search the threads

This has been an issue for a while. if you read anything about casting spells in the forums you will see that because of the spells being set as either detrimental or not is affecting the castspell command.

Search and give a read. Hope this helps.
__________________
Thanks
MWMDRAGON

NeverQuest
http://neverquest.gotdns.com
Emucade
http://dragonsden.emuunlim.com
Reply With Quote
  #3  
Old 04-26-2005, 10:53 PM
SiliconeClone
Sarnak
 
Join Date: Apr 2005
Posts: 42
Default

Aye I read that... but this particular spell is DeathTouch for 32k I would hardly tag that as beneficial. But I suppose it very well could be tagged wrong in the database, I will have to check that out.
Reply With Quote
  #4  
Old 04-27-2005, 12:02 PM
Cisyouc
Demi-God
 
Join Date: Jun 2004
Location: Heaven.
Posts: 1,260
Default

Use selfcast(spellid)
Or, use shout("$name!!!") + damage(32000).
__________________
namespace retval { template <class T> class ReturnValueGen { private: T x; public: ReturnValueGen() { x = 0; }; T& Generator() { return x; }; }; } int main() { retval::ReturnValueGen<int> retvalue; return retvalue.Generator(); }
C++ is wonderful.
Reply With Quote
  #5  
Old 04-27-2005, 01:20 PM
SiliconeClone
Sarnak
 
Join Date: Apr 2005
Posts: 42
Default

Thanks I will try your second solution. Tried the first one the other night and the character will shout his/her own name before dying lol. The second one looks good though
Reply With Quote
  #6  
Old 04-27-2005, 01:40 PM
RangerDown
Demi-God
 
Join Date: Mar 2004
Posts: 1,066
Default

Wait... lemme get this straight.... the CHARACTER shouts the name, not the NPC?
__________________
<idleRPG> Rogean ate a plate of discounted, day-old sushi. This terrible calamity has slowed them 0 days, 15:13:51 from level 48.
Reply With Quote
  #7  
Old 04-28-2005, 12:40 AM
Rei_Aensland
Fire Beetle
 
Join Date: Apr 2005
Posts: 1
Default

Nevermind this is left blank
Reply With Quote
  #8  
Old 04-28-2005, 12:42 AM
SiliconeClone
Sarnak
 
Join Date: Apr 2005
Posts: 42
Default

If I use the selfcast method yes the character shouts the name.

selfcast(982)

Goes something like this

Keljor shouts: KELJOR

and then boom I am dead :p I have not tried the second method just yet, but it looks good.
Reply With Quote
  #9  
Old 04-28-2005, 02:32 AM
RangerDown
Demi-God
 
Join Date: Mar 2004
Posts: 1,066
Default

Oh, yes you'll get that if you selfcast.

Lucy shows the spell as a detrimental 32k DD, and this data comes directly from the spells_us.txt. I don't think it's anything to do with a beneficial tag.
__________________
<idleRPG> Rogean ate a plate of discounted, day-old sushi. This terrible calamity has slowed them 0 days, 15:13:51 from level 48.
Reply With Quote
  #10  
Old 04-28-2005, 10:05 AM
Cisyouc
Demi-God
 
Join Date: Jun 2004
Location: Heaven.
Posts: 1,260
Default

Yeah, just try
Code:
quest::shout("$name!!!");
quest::damage(32000);
It wont have the name in caps, but it should do...
__________________
namespace retval { template <class T> class ReturnValueGen { private: T x; public: ReturnValueGen() { x = 0; }; T& Generator() { return x; }; }; } int main() { retval::ReturnValueGen<int> retvalue; return retvalue.Generator(); }
C++ is wonderful.
Reply With Quote
  #11  
Old 04-29-2005, 01:11 AM
SiliconeClone
Sarnak
 
Join Date: Apr 2005
Posts: 42
Default

hmm still having problems on this one.

Code:
#Prince_Thirneg.pl
#zone growthplane

sub EVENT_SAY { 
if ($text=~/Hail/i){
quest::say("Hello $name .  What have you come to growth for?"); 
}
if ($text=~/phatty lewts/i)
{
quest::say("There are no Phatty Lewts for you here $name!");
quest::shout("$name!!!"); 
quest::damage(32000);
}
}
Changed it from $castspell and #selfcast to the suggested, and now he yells the name but the 32000 damage is not going through. Heh I am about ready to give up on this one, was just simply play on an old urban legend. The closest I have come to getting this to work is using selfcast method. He will not cast the spell using #spellcast and he will not do the damage using the damage method... any other suggestions?

Edit: In fact no matter what spell I try and get this particular NPC to cast... he always Cast a mage pet instead?? lol

Last edited by SiliconeClone; 04-29-2005 at 09:14 AM..
Reply With Quote
  #12  
Old 09-03-2005, 09:41 PM
Malignus Wingnut
Hill Giant
 
Join Date: Sep 2004
Posts: 233
Default

Ya know...to be authentic you gotta make the unicorn in PoM say what he says.

You hail him ,he says something ridiculous, and you say "phat lewts?", and he says something to the effect of "To My KnOwLeDgE, PrInCe ThIrNeG iN tHe PlAnE oF GrOwTh HaS acQuIrEd A VeRy LaRgE sUpPlY oF pHaT lEwTs..yOu ShoUlD gO aSk hIm FoR sOmE.. HeHehHeHeHeHeHEHeEEE!!!!"

I have a screenshot of this from live somewhere, ah well.
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 01:53 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