What is wrong with this? Super simple
PHP Code:
I dont understand why this simple script doesnt work? It's a hail to set globals - thats it. I've written tons of scripts its just that there must be a space somewhere im not seeing or something.... quite irritating actually. Maybe someone sees something i dont - Thanks for your time. Just to eliminate some things - .pl file is named correctly, in correct file - npcs globals are turned on and everything. When you hail, he does nothing. Also I've used the global check for "Zero" before and never had problems - but to be sure i removed it and just put if hailed = then he says stuff.... still nothing? I dont understand. |
You're missing a curly bracket here.
Code:
sub EVENT_SAY { |
Okay well i didnt copy and paste the last bracket - but it is there - sorry. Good lookin out though.
|
Try this:
Code:
sub EVENT_SAY { This is assuming, as you said above, that this NPC has qglobals set to 1 in the database. |
I'll give it a shot - also do you know of a way to reset script on mob without restarting? Cuz i got like 30 players on my server on average so i dont wanna keep restarting - Only asking cuz I never tried. Thanks
|
#reloadpl
#repop |
#reloadpl will save me so much time =) Thank you. Also for the portion that jolligoro submitted - when i hail him he says the quest::say part and doesnt respon to "tyrant" at all....? Im wondering why any of the;
$client->Message(5,"Have you heard of the new [tyrant] of Last World?"); arent working? I just dont understand... the syntax/text everything is exactly the same as working quests - is there some plugin fix or something? Not quite sure what to do to fix - Thanks. |
nvm I figured it out - just missing some brackets - Thanks
|
http://ult-tex.net/tools/ultra/line_count.pl
i like to use this if i wanna check for syntax errors :) |
All times are GMT -4. The time now is 12:27 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.