Scribespell
How do you make the quest scribe all the spells for the user?
|
quest::scribespells(65);
|
yeah i found it i searched after i posted :wink: and it showed it, thanks tho
|
btw...implemented it so it will scribe spells up to user lvl.
|
that would be quest::scribespell() yes?
|
wouldnt this work too? quest::scribespell($ulevel);
|
syntax is quest::scribespells();,doingquest::scribespells($u level); won't make anything,unless you change the code.
|
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);} } |
Quote:
Code:
if ($text=~ /Hail/i){quest::say("Hello $name, are you interested in haveing your [spells] scribed?");} Code:
Anyways bring me one of there daggers and I will teach you all the spells that a $class can use. Code:
As promised here is 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. |
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.
|
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. |
omg so obvious. can't beleive i didnt notice that =)
|
nice english class lol
|
Quote:
Grammar > All. |
Thanks for the ideas fellas :)
|
All times are GMT -4. The time now is 09:38 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.