No categories assigned

ContentDesigner:SpawnScripts

LUA - SpawnScripts

Return to: LUA | Tutorials | Portal | Forum | Project Manager | Bug Tracker


There are a few ways to create and edit spawnscripts. You can use a program like notepad++, Jabantiz's EQ2 LUA Editor, and the web editor. Although you will have to use the web editor at some point to submit your scripts, it is not necessary to edit or create your scripts on the web editor. If you choose to use a notepad editor, then notepad++ is a great editor to use. My favorite editor is Jabantiz's EQ2LuaEditor, is recommend, and will be used in the guides on this pages.

The EQ2LuaEditor is available on the EQ2Tools SVN Repository (name: anonymous, no password required) under trunk->DBEditors->Jabantiz->EQ2LuaEditor


Spawn Script Template

In order to have a spawn script that can be submitted to the server you must follow a certain structure. Use this Spawn Script Template for the spawn scripts. This will have a break down of the code with an explanation of what each part does, and it will also have the full template that you can copy and paste into your editor like notepad++.


Creating Conversations

The Creating Conversations is a guide that covers adding a conversation to a NPC from scratch. It will use an NPC conversation that can be found on EverQuest2 Live or our very own server. Hopefully this will help make things more clear and easier to understand when writing spawnscript conversations. There will also be a conversation that is not on live or the emulator that can be followed along with on a local server.


Adding Quest Function

How to add a quest function in the spawnscript. If a NPC is to offer a quest then this function will have to be included in the spawn script. This guide will only cover adding the function to the spawnscript, and how to setup multiple quest call functions.


Creating Movement

The Creating Movement guide shows how to add movement to a NPC from.


Assigning Spawn Access

Spawn Access gives the developer the ability to keep players from being able to see a NPC unless certain conditions are met first.