How can I create a greeter NPC or Buff NPC?
Hello There folks! I created my own server, "Adventure Unlimited".
I compiled it to allow for #bot commands and I edited the Veteran AA "Steadfast Servant" to be able to re-use every 25 minutes and he lasts for 30 minutes so that is my version of an all around merc if you prefer to use a merc instead of OR with your bots. I was able to figure out how to make some custom merchants so I made some to sell each type of defiant armor and I created a merchant to be a greeter and to sell epic 1.0 items. Veteran AA's are free at lvl 1 like any PEQ type server and the server supports clients up to Underfoot. I will also allow players to use Macroquest if they choose to. My problem is I want to make that greeter that I created in the guild lobby to be able to offer new players this information when they hail him. How do I add dialogue to the NPC I made? I was thinking of adding some buff NPC's to the lobby also but I am thinking with the bots and the Steadfast Servant Merc, they should get all the buffs they would need anyway unless they choose to totally solo without bots or npc's and then that is their choice. I would like to be able to add some custom quests and maybe trade skills in the future but my knowledge of how to accomplish this is limited at the moment. Also, I don't know how to do it or if it is going to be possible but I really liked the #seller (bazaar seller bots for players) that I saw on the EQ Titan server, but it is custom code and I doubt they will let me have it. I would like to know if anyone has a solution like that AND would also be willing share the code with me, to allow for offline player bazaar sellers. I used the PEQ Database Editor to do what I have done so far. Is there a tool some where I can get to help make custom quests and such? As always I appreciate any support you folks can offer me. If not for this forum I would never have been able to get my server up and running at all! Sincerely, Daniel Walker Adventure Unlimited Server Admin and GM |
Unable Connect with Underfoot client
If i read right dont you say can use Underfoot if not oh well server useless to me try i wont ever go any lower on clients.
Thanks |
Yes, the underfoot client is supported, also Titanium, SoD, and SoF
I use the underfoot client myself. You may have tried to connect when I restarted the server, sorry about that. :) |
If you search there are many buff bot examples out there. If you can't find one PM me and I'll share mine. Can't remember who to credit for it. As for a greeter... Here's the script for my server info bot. It uses Akka's pop up window plugin. I'm sure I could have done a lot better, but it'll give ya an idea of what you can do. Any quests just ask.
Code:
sub EVENT_SAY { Goregut |
Thanks that helps me a lot. I can use your sample script and edit it to fit my own needs i think and save it as the greeter's name with the .pl extension.
Do I need to edit the database to link that script to the greeter/merchant? Thanks for your help, I really appreciate it. |
Nothing needs be done as long as the name is the file name.
Goregut |
Thanks again!
|
What's wrong with my code?
Hello!
I thought I had this working but now it isn't. I have the npc named Server_Greeter and saved the code as Server_Greeter.pl in the quest/guildlobby folder. I am thinking it must be something wrong with my code but I can't see what it could be. Code:
|
Start small, just the hail response, and if that works add the other bits one by one until it stops working and then you've found your problem.
perl -c your_script_name.pl is a good way to spot any obvious errors. |
LOL, good idea.
I decided to make is simple and just do it as a hail response and [text] responses. Wouldn't you know that as soon as I finished it the old script started working again? There must be some delay on the server. Going to restart it now and check it after a while to make sure this new script works. Code:
Sincerely, Daniel Walker, Adventure Unlimited Server Admin & GM |
Check the name versus the file. And yes you can test out parts at a time. You can put # in front of things to comment them out so that it doesn't read them as code. Put in a Quest::say("Hi!"); to test each step.
btw love that you kept "No on likes douches" lol Goregut |
There isn't a delay on the server, but if you make changes to perl files you must tell the server to reload them. Use #rq to do so.
|
Thanks again :)
Do you have a sample script for an npc to create a guild for players? Is there some place I can search for scripts like these? I know there are a lot of scripts for quests already in the game and now that I have a basic understanding, I am looking at some of them to learn how to do things. :) |
Quote:
I appreciate that. |
Quote:
|
All times are GMT -4. The time now is 08:55 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.