My Buff Bot, isn't working
These are my Buff Bots that I created using AnalogX's Illusionist_Nomaad.pl as a reference.
However, neither of them work and I don't know why. Code:
#Illusionist_Nomaad.pl and of course: Code:
sub EVENT_SAY Why do my buff bots not work? Is there a column in the npc_type table (or any other) that if set to a specific value will prevent scripts from running? Thanks :) |
Just to post a quick note. I'm aware there are a few spelling errors in the script, all of which I've done my best to correct after I made this post. But the problem is the script does not work at all. Which leads me to my 3rd question.
If there is 1 error in the script, does it prevent the whole script from working? Sorry, I'm really new at this. |
Ok, after getting a little help and using the quest editor from GeorgeS, I was able to solve all the syntax problems. But they still don't work, oh joy.
So here is what I have so far: Code:
#Illusionist_Nomaad.pl Here is the updaded Illusionist Mindbender: Code:
#Illusionist_Mindbender.pl |
Just as a another note, AnalogX... sorry..
Correction: Angelox :) |
Saw this in the first file: "quest:selfcast(2562);"
Need to have another colon there. "quest::selfcast(2562);" |
It's not working because the word Apperance is misspelled. It should be Appearance. Once I changed that it works on my system.
|
Here is your Illusionist_Nomad Quest
Code:
#Illusionist_Nomaad.pl |
Here's a working version of your Illusionist_Mindbender.pl
Code:
#Illusionist_Mindbender.pl |
Wow, was it just the word Appearance in all of the code? I really suck at spelling, wow I can't believe it. Where there any other errors in the code? I really do want to learn what I did wrong as I plan to do many quest scripts in the future.
|
Quote:
|
Yeah, I figured that out after I posted the original scripts.
Well now that my scripts work, I want to take it a little further. My mindbender script works very nicely, except for the fact that when you hail her, she responds to her own name. Since bend is a trigger, when she says something and since her name has the word bend in it, is there a way to script a trigger that says if something is said && player said it? I also run into this same problem with the soulbinders. Which is why I can't use "bind: as a trigger unless I change their names. I also wanted to ask another question, but I honestly can't remember what it was, so I'll just ask it later. Also I wanted to give credit where it is deserved. Aramid thanks a lot for correcting my scripts so that all I had to do was copy and paste. GeorgeS also helped out by helping me getting his script editor to work so I can check my syntax. But although it's not obvious here on this post, leslamarch helped me out a lot by explaining to me the uses of elsif's through private messages. He almost had both my scripts completely correctly, but Aramid beat him to it. |
I have a script similar to that. I turned my girlfriend into an NPC vendor on our server, and have her use custom sayings for everyone on our server (all friends) who come up to her:
Code:
sub EVENT_SAY { She has a basic hail that works for anyone, and then customized ones that work for anyone with a specific name. Hope this gets you on the right track. |
Yeah, but sadly that script is for specific players. But after looking at your script, it gave me an idea. This would work as long as $name can't be used for an npc name. I wonder if this would work and thus would allow the words like bend work in my script.
Code:
sub EVENT_SAY { 1. Can $name =~ $name be used to check to make sure it's a player name and not an npc name? 2. What does ~ tell the script to do? 3. What does /i tell the script to do? 4. When you update a script, will the new script work right away without doing anything to the server? Or do you have to #repop, restart the zone, or do you always have to restart the server? 5. When you add a new npc to the database, to have him spawn, do you have to #repop, restart the zone, or do you always have to restart the server? 6. When you change specific values in a table regarding a specific npc, again, when do the changes take affect? Well there they are, I'm asking those last three b/c it's a real pain in the butt to restart my server. I could always just figure them out on my own through trial and error. However, if someone knows that would be great, in addition, I'm a bit weary of such trial and error as the last time I did that, I somehow screwed up my server and caused my zone.exe to crash everytime someone connected. And to this day, i have no idea what I did. |
Admittedly, I skimmed your post. Was checking the forums real quick before leaving for work. Saw this:
Quote:
1. Can $name =~ $name be used to check to make sure it's a player name and not an npc name? Haven't tested, but that seems to be your idea, and it seems like it should work just fine. You'll have to give it a shot. However, keep reading through this post, and you might see where it's unnecessary. 2. What does ~ tell the script to do? 3. What does /i tell the script to do? Quote:
5. When you add a new npc to the database, to have him spawn, do you have to #repop, restart the zone, or do you always have to restart the server? 6. When you change specific values in a table regarding a specific npc, again, when do the changes take affect? Quote:
|
I had the same problem with the soulbinder. I did a script for her, but when you hailed her, she would automatically bind your soul because the trigger for binding your soul was the word "bind". When she gave her trigger for "hail", it picked up the word "bind" in her name.
Same issue is happening with my Illusionist_Mindbender. You hail her and the trigger is "hail" She says what she needs to but then the say command "bend" is triggered because she just talked and she has the word "bend" in her name. This is why I want to try the $name =~ $name to see if $name is for players only and not npcs. Adding that as to the if statement would allow the script to check to see if it's a player saying the word and not an npc. However, if that does not work, the alternative would be slightly editing the NPCs name so that the word Mindbender would become MindBender. Thus the case sensitive bend would not be picked up. :) |
All times are GMT -4. The time now is 01:57 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.