Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Quests

Archive::Quests Archive area for Quests's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 08-03-2004, 07:07 PM
hypershadow66
Banned
 
Join Date: Nov 2003
Posts: 335
Default Scribespell

How do you make the quest scribe all the spells for the user?
Reply With Quote
  #2  
Old 08-03-2004, 07:14 PM
thedark2004
Fire Beetle
 
Join Date: Feb 2004
Posts: 13
Default

quest::scribespells(65);
__________________


From "Final Fantasy 7"

What Video Game Villain Are You?
Reply With Quote
  #3  
Old 08-03-2004, 07:24 PM
hypershadow66
Banned
 
Join Date: Nov 2003
Posts: 335
Default

yeah i found it i searched after i posted and it showed it, thanks tho
Reply With Quote
  #4  
Old 08-03-2004, 10:22 PM
cofruben
Old-EQEmu Developer
 
Join Date: Oct 2002
Location: Spain
Posts: 323
Default

btw...implemented it so it will scribe spells up to user lvl.
Reply With Quote
  #5  
Old 08-04-2004, 02:28 AM
hypershadow66
Banned
 
Join Date: Nov 2003
Posts: 335
Default

that would be quest::scribespell() yes?
Reply With Quote
  #6  
Old 08-04-2004, 02:30 AM
Cripp's Avatar
Cripp
Discordant
 
Join Date: Oct 2003
Location: The Shire
Posts: 474
Default

wouldnt this work too? quest::scribespell($ulevel);
__________________
Nug Blazers - ServerOP / founder
^^comming... later!

www.nugblazers.com
Reply With Quote
  #7  
Old 08-04-2004, 04:19 AM
cofruben
Old-EQEmu Developer
 
Join Date: Oct 2002
Location: Spain
Posts: 323
Default

syntax is quest::scribespells();,doingquest::scribespells($u level); won't make anything,unless you change the code.
Reply With Quote
  #8  
Old 08-06-2004, 06:14 AM
jimbox114
Hill Giant
 
Join Date: Jun 2004
Posts: 231
Default

I am haveing some trouble with this quest. I did a direct cut and past from the above post and added it to my own quest. First thing I noticed is when you hail the mob Spells_Wizard she automatically says both parts of the quest. I have double checked it and can't see any reason she should say the quest section spells without the player actually saying spells? Anyways here is what the text reads, hopefully it won't look to sloppy in the forum:

sub EVENT_SAY
{
if ($text=~ /Hail/i){quest::say("Hello $name, are you interested in haveing your [spells] scribed?");}
if ($text=~ /spells/i){quest::say("You have come to the right person, however I need you to do me a small favor. I do not like those thieves that have been hanging around the sewers. You do know where I am talking about right? It is the ones to the left of the gates of Freeport which lead you to North Freeport. Anyways bring me one of there daggers and I will teach you all the spells that a $class can use.");}
}
sub EVENT_ITEM
{
if ($itemcount{1451} == 1){quest::say("Thank you for your troubles $name. As promised here is your spells.");
quest::scribespells(65);
quest::exp(25);}
}
Reply With Quote
  #9  
Old 08-06-2004, 06:54 AM
sotonin
Demi-God
 
Join Date: May 2004
Posts: 1,177
Default

Quote:
Originally Posted by jimbox114
sub EVENT_SAY
{
if ($text=~ /Hail/i){quest::say("Hello $name, are you interested in haveing your [spells] scribed?");}
if ($text=~ /spells/i){quest::say("You have come to the right person, however I need you to do me a small favor. I do not like those thieves that have been hanging around the sewers. You do know where I am talking about right? It is the ones to the left of the gates of Freeport which lead you to North Freeport. Anyways bring me one of there daggers and I will teach you all the spells that a $class can use.");}
}
sub EVENT_ITEM
{
if ($itemcount{1451} == 1){quest::say("Thank you for your troubles $name. As promised here is your spells.");
quest::scribespells(65);
quest::exp(25);}
}
hmm. very strange. i don't see anything wrong. except for some mispellings. Which you might want to work out before putting this on a live server =)

Code:
if ($text=~ /Hail/i){quest::say("Hello $name, are you interested in haveing your [spells] scribed?");}
haveing = having

Code:
Anyways bring me one of there daggers and I will teach you all the spells that a $class can use.
there = their

Code:
 As promised here is your spells.
here *are your spells.

But as far as the scribespells() command. passing a lvl through it won't do anything according to what Cofruben said. It simply scribes all spells for whatever level you are. So if you are lvl 5 and use it. youll have all spells up to lvl 5. ... not to 65. This is what cofruben seems to have said a few posts up. Never used it myself.
Reply With Quote
  #10  
Old 08-06-2004, 07:05 AM
jimbox114
Hill Giant
 
Join Date: Jun 2004
Posts: 231
Default

Yea I probably got alot of mispells in there, been adding alot of quests lately, mainly looking to just get them to work before checking the spellings, etc. I will try taking the number out and see how it does. But yea when you turn that item in she just does nothing at all. I put that experience in there to see if it was doing anything under the item turn in event. I also can't figure out why she displays the text after the quest for spells either. I guess I will go in and delete her from the database and spawn a new one and try again. I will try taking out the numbers first see what happens, then if that dont' work will just make a new mob and see what happens. If that don't work I guess I will just cry.
Reply With Quote
  #11  
Old 08-06-2004, 09:17 AM
Charmy
Discordant
 
Join Date: May 2004
Location: The DeathStar of David
Posts: 337
Default

LoL ok here is your problem

Hail SPELLS_Wizard

you are saying Hail and Spells in the same sentence =) so its activating both parts of the quest. Either you need to change the name of the mob, (give him/her a real name Jimmy CasterGuy, and in the lastname field in the database put Spells Wizard. that way when you hail the mob you won't be saying spells.) Or you can use a different word like [learn] instead of [spells]. You could also use a few of the operators to make it only activate when someone says spells by itself, but i find that people find the strangest ways to RP when they respond to the quests, so your best bet is to change it to a different word, or change the quests name.
__________________
Mess with the Jews, and we will take all your money
Grunties Rule
And with that... I end
Any Other Questions, please refer to the Following:
http://iliilllli1.netfirms.com
Reply With Quote
  #12  
Old 08-06-2004, 09:36 AM
sotonin
Demi-God
 
Join Date: May 2004
Posts: 1,177
Default

omg so obvious. can't beleive i didnt notice that =)
Reply With Quote
  #13  
Old 08-06-2004, 10:44 AM
cofruben
Old-EQEmu Developer
 
Join Date: Oct 2002
Location: Spain
Posts: 323
Default

nice english class lol
Reply With Quote
  #14  
Old 08-06-2004, 11:13 AM
Cisyouc
Demi-God
 
Join Date: Jun 2004
Location: Heaven.
Posts: 1,260
Default

Quote:
Originally Posted by cofruben
nice english class lol
Heh confruben, and with that in mind I refer you to this.

Grammar > All.
__________________
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
  #15  
Old 08-06-2004, 11:37 AM
Richardo
Banned
 
Join Date: Oct 2003
Location: Mattmecks Basement
Posts: 546
Default

Thanks for the ideas fellas
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 08:27 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