Jump to content

npc sctipts


atreiu
 Share

Recommended Posts

hello all

where npc sctips is or where i can find behavior code of npc?

creature_template table have column `ScriptName` but there nothing.

"ScriptName - The name of the script that this creature uses, if any. This ties a script from a scripting engine to this creature." :/

opcodes nothing said =(

for example npc 5060 World Banker - where his ai/code? where the entering point? where i can start searching?

thanks in advance for answering.

Link to comment
Share on other sites

World Banker has npcflags 131073, which is 1 (Gossip) + 131072 (Banker). See: http://udbwiki.no-ip.org/index.php/Creature_template#npcflag

Bankers are not scripted server-side. When the NPC has the flag set, the client allows the player to view bank info. This is all done client-side. All the server does is respond to bank opcodes (i.e. send bank data to the client when it requests it, see WorldSession::HandleBankerActivateOpcode).

The menus can be custom scripted. This can be done via ScriptName for C++ scripts or gossip_menu_id for DB scripts. But it's optional.

Link to comment
Share on other sites

  • 2 weeks later...
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use