Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit dfe33917 authored by deuce's avatar deuce

Add the level file.

parent 4151445d
......@@ -150,6 +150,120 @@ void Add_Object(
write(fd, &obj, sizeof(obj));
}
#define add_level(val) \
lvl.xpneed=(val); write(fd, &lvl, sizeof(lvl));
void create_level_file(void)
{
struct level lvl;
int fd;
fd=open("level.dat", O_WRONLY|O_TRUNC|O_CREAT, 0666);
memset(&lvl, 0, sizeof(lvl));
add_level( 900 );
add_level( 5000 );
add_level( 10000 );
add_level( 15000 );
add_level( 20000 );
add_level( 30000 );
add_level( 40000 );
add_level( 60000 );
add_level( 85000 );
add_level( 120000 );
add_level( 140000 );
add_level( 180000 );
add_level( 240000 );
add_level( 290000 );
add_level( 340000 );
add_level( 400000 );
add_level( 500000 );
add_level( 600000 );
add_level( 850000 );
add_level( 1000000 );
add_level( 1200000 );
add_level( 1400000 );
add_level( 1600000 );
add_level( 1800000 );
add_level( 2200000 );
add_level( 2500000 );
add_level( 2700000 );
add_level( 2900000 );
add_level( 3200000 );
add_level( 3400000 );
add_level( 3600000 );
add_level( 3800000 );
add_level( 4200000 );
add_level( 4400000 );
add_level( 4600000 );
add_level( 4800000 );
add_level( 5000000 );
add_level( 5200000 );
add_level( 5400000 );
add_level( 5600000 );
add_level( 5800000 );
add_level( 6000000 );
add_level( 6200000 );
add_level( 6400000 );
add_level( 6600000 );
add_level( 6800000 );
add_level( 7000000 );
add_level( 7200000 );
add_level( 7400000 );
add_level( 7600000 );
add_level( 7800000 );
add_level( 8000000 );
add_level( 8200000 );
add_level( 8400000 );
add_level( 8600000 );
add_level( 8800000 );
add_level( 9000000 );
add_level( 9200000 );
add_level( 9400000 );
add_level( 9600000 );
add_level( 9800000 );
add_level( 10000000 );
add_level( 10200000 );
add_level( 10400000 );
add_level( 10600000 );
add_level( 10800000 );
add_level( 11000000 );
add_level( 12000000 );
add_level( 13000000 );
add_level( 14000000 );
add_level( 15000000 );
add_level( 16000000 );
add_level( 17000000 );
add_level( 18000000 );
add_level( 19000000 );
add_level( 20000000 );
add_level( 21000000 );
add_level( 22000000 );
add_level( 23000000 );
add_level( 24000000 );
add_level( 25000000 );
add_level( 26000000 );
add_level( 27000000 );
add_level( 28000000 );
add_level( 29000000 );
add_level( 30000000 );
add_level( 31000000 );
add_level( 32000000 );
add_level( 33000000 );
add_level( 35000000 );
add_level( 36000000 );
add_level( 37000000 );
add_level( 39000000 );
add_level( 41000000 );
add_level( 42000000 );
add_level( 43000000 );
add_level( 45000000 );
add_level( 47000000 );
add_level( 48000000 );
add_level( 49000000 );
add_level( 50000000 );
close(fd);
}
void create_king_file(void)
{
int fd;
......@@ -404,4 +518,5 @@ int main(int argc, char **argv)
create_npc_file();
create_king_file();
create_onliner_file();
create_level_file();
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment