Jump to content

Recommended Posts

Posted

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.

Posted

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.

  • 2 weeks later...
Posted

I'm also confused about ScriptName. I'm trying to add some scripts into the instance_template however, not sure where the scripts need to be. can I put the full path into the script location or is it looking for something specific?

Posted

u need to edit system/scriptloader.cpp from scriptdev2 with the path of the script. Once opened that file u will know what I mean

After u add into creature_template the name of your script under ScriptName..

I believe this is what u are looking for

×
×
  • 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