Since I'm all for sharing, here's an auto-event ID capture tool I've made, this should help scripters immensely.
As people who script know, to make menus appear, NPCs speak, etc you need to know the unique Event ID for that NPC. These IDs are represented as 0x#### in lua scripting. To find the IDs, a very tedious process of looking up the NPC ID (using POLUtils Monster Lists) and then looking up the corresponding event ID (using a Hex Editor) took a lot of time and not everything was known about just where to start/stop looking for IDs.
This tool automatically does this for you, and dumps all the Event IDs to file. There is a file called "fileinput.txt" which has a list of folder locations and area names, such as:
Quote:
@1\21\47 #1\27\47 %Windurst Waters
@1\20\45 #1\26\45 %Konschtat Highlands
|
The folder format is similar to AltanaViewer in that 1\21\47 represents ROM\21\47.dat
The @ sign signifies an Event list.
The # sign signifies the Monster/NPC list.
The % sign should be the zone name for the event/monster list combo.
To find a list of zones for this, look at:
[Only registered and activated users can see links. Click Here To Register...]
Once you've chosen the zones you want to do, execute the .jar file (double-click on the file works, or use CMD line which displays extra information whilst it's doing it). It will spawn .txt files like the ones in the download, shown as:
Quote:
==========
Kotan-Moritan ID: 12 e0 0e 01
Number of Event IDs:10
0x0179 0x00a6 0x00ae 0x0187 0x0197 0x02d2 and 4 reserved IDs.
==========
Aora-Uora ID: 13 e0 0e 01
Number of Event IDs:12
0x017a 0x00a7 0x00af 0x0188 0x0198 0x02d3 and 6 reserved IDs.
|
Whilst this tool will not tell you which of these IDs is for the thing you're scripting, it does give you the list of events you need to implement when making the npc lua files.
[Only registered and activated users can see links. Click Here To Register...]