Issue Information
-
#006362
-
0 - None Assigned
-
Unable To Reproduce
Issue Confirmations
-
Yes (0)No (0)
Originally posted by Vali
npc/custom/events/disguise.txt is not working correctly. Sometimes it doesn't disguise, others, even if the player say the correct monster name doesn't accept it....
Vali~
npc/custom/events/disguise.txt is not working correctly. Sometimes it doesn't disguise, others, even if the player say the correct monster name doesn't accept it....
Vali~
Originally posted by Euphy
Do you have PCRE enabled? Also, the "NPC Name" field is different for some event/special monsters.
Do you have PCRE enabled? Also, the "NPC Name" field is different for some event/special monsters.
Originally posted by Vali
Its installed, also, the first time without change nothing from the NPC the NPC doesn't disguise and you win the prize writing anything.
Its installed, also, the first time without change nothing from the NPC the NPC doesn't disguise and you win the prize writing anything.
Originally posted by Euphy
Re-tested, could not reproduce. x.x
Re-tested, could not reproduce. x.x
Originally posted by Vali
Ok, here is my problem and how I fixed. The first time I launch the script the NPC doesn't disguise. This was because $Rule was set to other thing that was not 1 or 2 by default (maybe for the OS or any other thing, I dont know). My fix was modify the OnInit from:
to:
Also there is a param that is not used in the script: "set $Points,$Points;"
The other problem is a bug, now is accepting me the names of the monsters, but if I write the name of the monster and more things after that, it also accept it. I attached the screenshot with the matyrasdfasdf.
Vali~
Ok, here is my problem and how I fixed. The first time I launch the script the NPC doesn't disguise. This was because $Rule was set to other thing that was not 1 or 2 by default (maybe for the OS or any other thing, I dont know). My fix was modify the OnInit from:
if (!$Rounds) set $Rounds,10; else set $Rounds,$Rounds; if (!$Prize) set $Prize,512; else set $Prize,$Prize; if (!$PrizeAmt) set $PrizeAmt,1; else set $PrizeAmt,$PrizeAmt; if ($Rule) set $Rule,1; else set $Rule,$Rule;
to:
set $Rounds,10; set $Prize,512; set $PrizeAmt,1; set $Rule,1;
Also there is a param that is not used in the script: "set $Points,$Points;"
The other problem is a bug, now is accepting me the names of the monsters, but if I write the name of the monster and more things after that, it also accept it. I attached the screenshot with the matyrasdfasdf.
Vali~
Originally posted by Vali
You had reason, I had PCRE installed but not enabled with --with-pcre. Maybe a note in the header of the script would be great, something like "This script needs PCRE enabled to work correctly".
Vali~
Do you have PCRE enabled? Also, the "NPC Name" field is different for some event/special monsters.
You had reason, I had PCRE installed but not enabled with --with-pcre. Maybe a note in the header of the script would be great, something like "This script needs PCRE enabled to work correctly".
Vali~
Originally posted by Euphy
The OnInit label is there to prevent @reloadscript causing catastrophes (I'm guessing, at least), and I haven't touched a lot of this script. XD I deleted the $Points line and added a PCRE notice at the top in [rev=16540].
The OnInit label is there to prevent @reloadscript causing catastrophes (I'm guessing, at least), and I haven't touched a lot of this script. XD I deleted the $Points line and added a PCRE notice at the top in [rev=16540].