-
Notifications
You must be signed in to change notification settings - Fork 43
SUMMONMONSTER.WREGION
Robsus edited this page Nov 15, 2015
·
1 revision
This is the file for editing mob spawns
//--------------------------------------
//--- 010 Editor v3.1 Binary Template
//
// File: *.WREGION
// Author: Liam Mitchell / Rob van den Bekerom
// Revision:
// Purpose: To edit monster spawns on Chinese TwelveSky server.
//--------------------------------------
typedef struct {
uint unknown; // Type 0 == Point 1 == Area probably.
uint ID1; // ID of mob that spawns
int ID2; //ID of mob that spawns
// You can make a range with ID1 and ID2, then a random mob within that ID spawns
int u1; // number of mobs in a group
// x,y top left, xy bottom right
int x; // X coordinates of mob / NPC
int z; // Z coordinates of mob / NPC
int y; // Y coordinates of mob / NPC
int spread; // spread of the group of mobs (diameter)
} record;
LittleEndian();
uint count;
record records[count] <optimize=false>;
The spawns are all done in circles, its a diameter.
You may find this script handy to count the total # of things that would be spawned.
//--------------------------------------
//--- 010 Editor v5.0 Script File
//
// File: WREGION Count Amount
// Author: Liam Mitchell
// Revision: 1
// Purpose: Counts the total amount of things in the WREGION and gives a breakdown.
//--------------------------------------
int u1Total = 0;
int i;
for (i=0;i<count;i++) {
u1Total += records[i].u1;
}
Printf( "Total u1: %d\n", u1Total );