Quest Whispering
I am working on my first quest and would like to know the command to make the text that the NPC says come up in a "whisper/tell" format to where only you can see it.
For example, on some servers that I play on, when I talk to an NPC it will say something like: "NPC Name whispers to you, 'Text' " How do I have the NPC text that you have to say back a link? For example, if I were to hail the NPC and it said something like: Greetings, would you like to [know] more? How do I make [know] a link. And how do I link an item should I want to link something like: Rusty Dagger? Sorry in advance for all the noob questions. Any and all help is appreciated. Thank you. |
See the Wiki to answer most of your questions:
http://www.eqemulator.net/wiki/wikka...=QuestTutorial Here is an example that does the 3 things you were requesting: Code:
sub EVENT_SAY { |
Thank you Trevius.
|
Thank you for your response Trevius.
I have another question. I got the quest working just fine, but when I attempted another one, I get the NPC saying some of my "Links" when I hail him. Would someone mind taking a look at this and telling me what I may or may not have done? Code:
Also, if it helps, the 3 things he keeps saying are: Components Rusty Dagger Next Thanks. |
Code:
my $rusty_dagger = quest::say("Rusty Dagger"); |
DOH xD... Thank you so much Trev lol...
|
Okay, so I got that done, thanks to Trev... Once More lol... But now I want to make it to where when they complete one part of the quest, they can't see it again.
For example, with the quest posted above, when they turn in the first item (Dragonbane Herb), if they re-hail the guy, he doesn't start the whole quest line over again..... Thanks in advance. |
For that, your best best would probably be to use qglobals. They are discussed near the bottom of the quest wiki:
http://www.eqemulator.net/wiki/wikka...=QuestTutorial You would just set a qglobal on the char when they do the turn in, and in the EVENT_SAY, you would check if they have that qglobal defined yet and if so, set it to skip the intro part. |
I saw where it is posted at the bottom of the page, but is there a certain part of my quest script that I need to insert it at? This is what I have right now:
(I took out the sub EVENT_ITEM so it wasn't as long) Code:
(Sorry for being a nuisciance, but I am trying to learn this. :) ) |
you've used $Dragon_Charm1 and $dwarf for both a varlink and a saylink and maybe others. You should organize your variables a bit so they're not so confusing with the same names and don't use the same one twice.
watch in the quest log files for clues to quest syntax errors. |
I have no errors with the varlinks, or the quest:saylinks, what I am having an issue with is the qglobals....
|
i have never tried this saylink feature, but you are basically redefining the variable when you have both
Code:
my $Toes = quest::saylink("Toes"); |
I appreciate all your help with this, and I have those working just fine. Yes, I might have used those two lines together, but it doesn't read like that. How it reads is varlink before saylink in that instance, I know because I have it running on my server and I JUST tested it while posting this... my issue is with
Code:
|
Well, there's a couple things...
You may have taken the help page a bit too literally. Generally having something in [] in an example is just to show you what that parameter is for. An actual setglobal line should look something like this: quest::setglobal("bic",1,5,"F"); Also, once you've set it, it won't do anything unless you actually check if it is set somewhere to change how the script operates. Check out the #Fezbin_Fizzles.pl script in the abysmal directory for a pretty good example of using a qglobal to change how the NPC acts depending on things you've done in the past. There are some other examples of how you might use them to track handins and such in some other scripts there. Just grep for "qglobal" and you should see them. One last thing, make sure you read and understand the last paragraph on the quest tutorial page. If you don't set the options right or set the NPC up to allow for qglobals you'll have problems. If you think you have it all setup and it still isn't working, check the quest_globals table in your database. You can verify if it is being set and what the data is there. You can also delete it if you mess up and want to go back to the start. |
Quote:
|
All times are GMT -4. The time now is 03:48 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.