Need help with fixing broken NPC

Post Reply
x8jason8x
Posts: 44
Joined: Mon Jan 15, 2018 9:20 am

Need help with fixing broken NPC

Post by x8jason8x » Wed Jan 17, 2018 6:24 pm

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.

User avatar
whasf
Site Admin
Posts: 1312
Joined: Thu Jul 19, 2012 9:11 pm

Re: Need help with fixing broken NPC

Post by whasf » Wed Jan 17, 2018 10:27 pm

Sounds like NPC IDs shifted again, was there a recent client update?
-- Whasf

x8jason8x
Posts: 44
Joined: Mon Jan 15, 2018 9:20 am

Re: Need help with fixing broken NPC

Post by x8jason8x » Wed Jan 17, 2018 10:56 pm

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?

x8jason8x
Posts: 44
Joined: Mon Jan 15, 2018 9:20 am

Re: Need help with fixing broken NPC

Post by x8jason8x » Wed Jan 17, 2018 11:07 pm

Also, his npcid ingame and his table number correspond on my server, it parses the input from the player, but he does nothing.

x8jason8x
Posts: 44
Joined: Mon Jan 15, 2018 9:20 am

Re: Need help with fixing broken NPC

Post by x8jason8x » Fri Jan 19, 2018 3:11 pm

Anyone? Could really use some kind of tool to see what's going on with him........

User avatar
TeoTwawki
Developer
Posts: 527
Joined: Mon Jul 15, 2013 9:50 pm

Re: Need help with fixing broken NPC

Post by TeoTwawki » Mon Jan 29, 2018 11:15 pm

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..
Hi, I run The Demiurge server.


Image
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. - Martin Golding
PLS USE [ code ] CODE TAGS [ /code ] WHEN POSTING CODE
DO NOT PRIVATE MESSAGE ME ABOUT BUGS

x8jason8x
Posts: 44
Joined: Mon Jan 15, 2018 9:20 am

Re: Need help with fixing broken NPC

Post by x8jason8x » Tue Jan 30, 2018 1:07 am

Oh hahah yeah I figured it out. Sorry for not updating.

Post Reply