Page 1 of 1

Need help with fixing broken NPC

Posted: Wed Jan 17, 2018 6:24 pm
by x8jason8x
Hello!

I'm currently trying to fix Sanraku to trigger the ZNM system properly, but I'm having a couple issues:

1. I can trigger all his CS's manually, but he will not react to just the standard enter press
2. I've checked his table, and not just his ID, but all IDs seem to be off by 12 numbers when compared with the wiki list.
(EG, wiki says his number is 16982556, mine says 16982568)

He's not missing, he looks like he's supposed to, his interactions are all there. What am I missing?

EDIT: His script is there and matches latest on the git, and his assistant is functioning properly as well. I just need to connect him to his script it seems.

Re: Need help with fixing broken NPC

Posted: Wed Jan 17, 2018 10:27 pm
by whasf
Sounds like NPC IDs shifted again, was there a recent client update?

Re: Need help with fixing broken NPC

Posted: Wed Jan 17, 2018 10:56 pm
by x8jason8x
whasf wrote:Sounds like NPC IDs shifted again, was there a recent client update?
I just installed the server 3 days ago, so if there has been, it's been since then. Should I try updating it?

Re: Need help with fixing broken NPC

Posted: Wed Jan 17, 2018 11:07 pm
by x8jason8x
Also, his npcid ingame and his table number correspond on my server, it parses the input from the player, but he does nothing.

Re: Need help with fixing broken NPC

Posted: Fri Jan 19, 2018 3:11 pm
by x8jason8x
Anyone? Could really use some kind of tool to see what's going on with him........

Re: Need help with fixing broken NPC

Posted: Mon Jan 29, 2018 11:15 pm
by TeoTwawki
check the in game ID of him when your cursor is on him: !getid

Compare the output to his ID in the npc_list table on your server's sql database - the server may think the NPC you are clicking is actually some other NPC if the ID's got moved.

Also check for errors in your console log, his script is working for me on stock master branch after I remove the block comments above and below the code. Make sure you didn't miss something that broke the script, it'll stop it from executing the code and leave him just staring off like NPC Alzheimers.

EDIT:
Hahaha..we didn't ask..You removed the block comment right? He's disabled by default..

Re: Need help with fixing broken NPC

Posted: Tue Jan 30, 2018 1:07 am
by x8jason8x
Oh hahah yeah I figured it out. Sorry for not updating.