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 063887ba authored by deuce's avatar deuce

Add a reset program to create data files

parent 074d1313
CFLAGS += -g -std=c99 -Wall -pedantic
CFLAGS += -I..
vpath %.c ..
all: edabody.o edarmor.o edarms.o edbody.o eddrink.o edface.o edfeets.o edfood.o edhands.o edhead.o edlegs.o edmonst.o edmonst2.o edneck.o edrings.o edshield.o edwaist.o edweap.o edweap01.o edweap2.o edweap3.o reset.o
reset: edabody.o edarmor.o edarms.o edbody.o eddrink.o edface.o edfeets.o edfood.o edhands.o edhead.o edlegs.o edneck.o edrings.o edshield.o edwaist.o edweap.o edweap01.o edweap2.o edweap3.o edmonst.o edmonst2.o reset.o files.o
clean:
rm -rf *.o
This diff is collapsed.
/*
Copyright 2007 Jakob Dangarden
This file is part of Usurper.
Usurper is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
Usurper is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Usurper; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
void Reset_Armor(void)
{
add("Skin",0,1);
add("Cloth",250,2);
add("Leather",500,3);
add("Plate Mail",1500,4);
add("Studded",2500,5);
add("Gnolls Leather",3000,6);
add("Banded Mail",4500,7);
add("Orcs Shield",5000,8);
add("Great Shield",6000,9);
add("Troll Shield",7000,10);
add("Holy Mail",8500,11);
add("Priests Cross",10000,12);
add("Dragons Shield",12500,13);
add("Amulet of Sleep",15000,14);
add("Beowulfs Shield",20000,15);
add("Necklace of life",25000,16);
add("Agnars Ring",30000,17);
add("Alfheims Protection",35000,18);
add("Angel Wings",40000,19);
add("Gods Helper",50000,20);
add("Draupners Shield",60000,21);
add("Elaines Kiss",70000,22);
add("Ring of Steel",75000,23);
add("King Arthurs Armour",80000,24);
add("Ring of Bronze",90000,25);
add("Gawaines Angel",100000,26);
add("Carados Cross",110000,27);
add("Ring of Silver",120000,28);
add("Merlyns Staff",130000,29);
add("Benwicks Shield",140000,30);
add("Ring of Gold",150000,31);
add("Stones of Camelot",160000,32);
add("Bedegraines Shield",170000,33);
add("Ring of Diamonds",175000,34);
add("Dark Moon Ring",180000,35);
add("Nimues Rescue",190000,36);
add("Hand of Galahad",200000,37);
add("Ring of Rubys",225000,38);
add("Reynauds Stones",240000,39);
add("Uthers Shield",250000,40);
add("Gareths Spell",260000,41);
add("King Melwas Armour",270000,42);
add("Menelaos Protection",280000,43);
add("Gunnars Firewall",290000,44);
add("Gwydions Necklace",300000,45);
add("Grendels Sorrow",310000,46);
add("Hand of Brahma",320000,47);
add("Brennius Shield",330000,48);
add("Boaz Whisper",340000,49);
add("Death Shield",350000,50);
add("Arts Experience",360000,51);
add("Artemis Bowring",370000,52);
add("Arjunas Ring",380000,53);
add("Aqhats Shield",390000,54);
add("Mauis Trick",400000,55);
add("Mati-Syras Prophecy",410000,56);
add("Mawus Boll",420000,57);
add("Memes Necklace",430000,58);
add("Hands of Midas",440000,59);
add("Forcefield of Mesak",450000,60);
add("Modrons Stallion",460000,61);
add("Morgan Le Fays Word",470000,62);
add("Death Mask",480000,63);
add("Munins Rescue",490000,64);
add("Satans Mask",500000,65);
add("Morpheus Sleep",510000,66);
add("Morrigans Fear",520000,67);
add("Shield of the Celts",530000,68);
add("Montezumas Healing",540000,69);
add("Montezumas Whisper",550000,70);
add("Yis Necklace",560000,71);
add("Zarathustras Faith",570000,72);
add("Shield of Ygg",580000,73);
add("Zeus Love",590000,74);
add("Ring of Life",600000,75);
add("Balders Protection",610000,76);
add("Balors Eye",620000,77);
add("Hand of Baal",630000,78);
add("Belis Freedom",640000,79);
add("Bedeveres Choice",650000,80);
add("Beelzebubs Spear",660000,81);
add("Bellefrons Stallion",670000,82);
add("Flight of Pegasus",680000,83);
add("Bladuds Flight",690000,84);
add("Blodeuedds Treason",700000,85);
add("Stallion of God",710000,86);
add("Branwens Heart",720000,87);
add("Monks Pray",730000,88);
add("Berzerks Protection",740000,89);
add("Buddhas Light",750000,90);
add("Spear of Bron",760000,91);
add("Buchius Bulldefence",770000,92);
add("Buris Birthskin",780000,93);
add("Butos Cobra Shield",790000,94);
add("Darth's Reflexion",800000,95);
add("Mother Wolfs Shield",810000,96);
add("Cloth of God",820000,97);
add("Jesus Charisma",830000,98);
add("Ceridwens Potion",840000,99);
add("Pot of Protection",850000,100);
add("Cerunnos Horn",860000,101);
add("Chacs Shield",870000,102);
add("Sea of Power",880000,103);
add("Chimaeras Defence",890000,104);
add("Chi Songzis Water",900000,105);
add("Lamb of Protection",910000,106);
add("Corineus GiantSpell",920000,107);
add("Crown of Creiddylad",930000,108);
add("Deaths Deflector ++",940000,109);
add("Scipios Defence",950000,110);
add("Shield of Hannibal",960000,111);
add("Simsons Hair",970000,112);
add("Sling of David",980000,113);
add("Darius Throne",990000,114);
add("Danus Demondefence",1000000,115);
add("Bastards Guard",1100000,116);
add("Paladins Dream",1200000,117);
add("Ring of Thoran",1300000,118);
add("Floating Mystery",1400000,119);
add("Pearl of Protection",1500000,120);
add("Spear of Healing",1600000,121);
add("Satans Armour",1700000,122);
add("Lions Defence",1800000,123);
add("Elronds Protection",1900000,124);
add("Ring of the Undead",2000000,125);
add("Ddundas Staff",2100000,126);
add("Delgeths Protection",2200000,127);
add("Demeters Necklace",2300000,128);
add("Diomedes Defence",2400000,129);
add("Gandalfs Steel",2500000,130);
add("Wizards Vest",2600000,131);
add("Saurons Shield",2700000,132);
add("Whisper of Sauron",2800000,133);
add("Warlords Defence+++",2900000,134);
add("Shield Supreme",3000000,135);
add("Saurons Ring",3100000,136);
add("Coat of Whispers",3200000,137);
add("Roof of Deng",3300000,138);
add("Galtungs Song",3400000,139);
add("Ballad of Freedom",3500000,140);
add("Merlins Icewall",3600000,141);
add("Merlins Stonewall",3700000,142);
add("Dragons Nightmare",3800000,143);
add("Merlins Steelwall",3900000,144);
add("Didos Resurrection",4000000,145);
add("Djabos Armour",4100000,146);
add("Necklace of Hekates",4200000,147);
add("EA:s Wand",4300000,148);
add("Ekkekkos Thought",4400000,149);
add("Chant of Elaine",4500000,150);
add("Ring of Elektra",4600000,151);
add("Elffins Salvation",4700000,152);
add("Robe of Elisa",4800000,153);
add("Sphere of Spectrum",4900000,154);
add("Flight of Mamba",5000000,155);
add("Shield of Water",5100000,156);
add("Wall of Stone",5200000,157);
add("Hair of Embla",5300000,158);
add("Endymions Sleep",5400000,159);
add("Wall of Diamonds",5500000,160);
add("Enkidus Health",5600000,161);
add("Air of Enlil",5700000,162);
add("Ring of Epona",5800000,163);
add("Eshus Spirit",5900000,164);
add("Carpet of Steel",6000000,165);
add("Erectheus Power",6100000,166);
add("Eros Shield",6200000,167);
add("Esaus Mantel",6300000,168);
add("Guardian of Europa",6400000,169);
add("Light of healing",6500000,170);
add("Evas Defence",6600000,171);
add("Evas Ring +++",6700000,172);
add("Gaias Robe",6800000,173);
add("Deflector of Hope",6900000,174);
add("Deflector of Fafne",7000000,175);
add("Feng Bos Wisdom",7100000,176);
add("Fountain of Force",7200000,177);
add("Dantes Defence",7300000,178);
add("Boromirs Shield",7400000,179);
add("Rune Shield",7500000,180);
add("Narvis Ring",7600000,181);
add("Ring of Moria",7700000,182);
add("Demonlords Shield",7800000,183);
add("Necklace of Mithril",7900000,184);
add("Robe of God",8000000,185);
add("Gollums Disguise",8100000,186);
add("Ultimate Elfring",8300000,187);
add("Ceasars Protector",8500000,188);
add("Forcefield of Stone",8900000,189);
add("Forcefield of Glass",9400000,190);
add("Robe of Gandalf",9700000,191);
add("Thors Helmet",9900000,192);
add("Protector of Faith",13000000,193);
add("Demons Armour",15000000,194);
add("Queen Dragons Skin",17500000,195);
add("Troll Wizards Skin",22500000,196);
add("Elf Emperors Skin",25000000,197);
add("Dwarf Lords Skin",27500000,198);
add("Nocturnes Rescue",29000000,199);
add("Moons Defence",30000000,200);
add("Shield of Evil",40000000,201);
add("Hair of Gaia",50000000,202);
add("Armour of Gaia",60000000,203);
add("The Forgiveness",70000000,204);
add("Wisdom of Baal",80000000,205);
add("Millenniums Will",90000000,206);
add("First Spell of God",100000000,207);
add("Freyas Seed",200000000,208);
add("Shield of Universe",300000000,209);
add("Dust of Hope",400000000,210);
add("Ring of Hope",550000000,211);
add("Princess Crown",600000000,212);
add("Queens Crown",650000000,513);
add("Dauphins Crown",700000000,514);
add("Prince Crown",750000000,615);
add("Kings Crown",800000000,716);
add("Emperors Crown",850000000,817);
add("Supreme Protector",900000000,918);
}
/*
Copyright 2007 Jakob Dangarden
This file is part of Usurper.
Usurper is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
Usurper is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Usurper; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "files.h"
void Reset_Arms(void)
{
/*typ av objekt :
1. head
2. body
3. arms
4. hands
5. fingers
6. legs
7. feets
8. waist
9. neck
10. face
11. shield
12. mat
13. dryck
14. vapen */
Add_Object("Grass Straps", /*name*/
Arms, /*typ*/
250, /*vrde i gold*/
0, /*ka/minska hps*/
0, /*ka stamina*/
0, /*ka agility*/
0, /*ka charisma*/
0, /*ka dexterity*/
0, /*ka wisdom*/
0, /*ka mana*/
1, /*ka armor vrde*/
0, /*ka attack vrde*/
"", /*gd av?*/
false, /*bara EN i spelet*/
Nothing, /*kurerar*/
true, /*finnas i shoppen*/
true, /*kunna hittas i dungeons?*/
false, /*cursed item?*/
1, /*min level att hittas i dngs*/
5, /*max level att hittas i dngs*/
"You see nothing special",
"", /*normal beskrivning 2*/
"", /*normal beskrivning 3*/
"", /*normal beskrivning 4*/
"", /*normal beskrivning 5*/
"", /*detaljerad beskrivning 1*/
"", /*detaljerad beskrivning 2*/
"", /*detaljerad beskrivning 3*/
"", /*detaljerad beskrivning 4*/
"", /*detaljerad beskrivning 5*/
0, /*ka strength*/
0, /*ka defence*/
0); /*strength demanded to use object*/
Add_Object("Wool Straps", /*name*/
Arms, /*typ*/
1000, /*vrde i gold*/
0, /*ka/minska hps*/
0, /*ka stamina*/
0, /*ka agility*/
0, /*ka charisma*/
0, /*ka dexterity*/
0, /*ka wisdom*/
0, /*ka mana*/
2, /*ka armor vrde*/
0, /*ka attack vrde*/
"", /*gd av?*/
false, /*bara EN i spelet*/
Nothing, /*kurerar*/
true, /*finnas i shoppen*/
true, /*kunna hittas i dungeons?*/
false, /*cursed item?*/
2, /*min level att hittas i dngs*/
7, /*max level att hittas i dngs*/
"You see nothing special",
"", /*normal beskrivning 2*/
"", /*normal beskrivning 3*/
"", /*normal beskrivning 4*/
"", /*normal beskrivning 5*/
"", /*detaljerad beskrivning 1*/
"", /*detaljerad beskrivning 2*/
"", /*detaljerad beskrivning 3*/
"", /*detaljerad beskrivning 4*/
"", /*detaljerad beskrivning 5*/
0, /*ka strength*/
0, /*ka defence*/
0); /*strength demanded to use object*/
Add_Object("Leather Straps", /*name*/
Arms, /*typ*/
2500, /*vrde i gold*/
0, /*ka/minska hps*/
0, /*ka stamina*/
0, /*ka agility*/
0, /*ka charisma*/
0, /*ka dexterity*/
0, /*ka wisdom*/
0, /*ka mana*/
3, /*ka armor vrde*/
0, /*ka attack vrde*/
"", /*gd av?*/
false, /*bara EN i spelet*/
Nothing, /*kurerar*/
true, /*finnas i shoppen*/
true, /*kunna hittas i dungeons?*/
false, /*cursed item?*/
4, /*min level att hittas i dngs*/
15, /*max level att hittas i dngs*/
"You see nothing special",
"", /*normal beskrivning 2*/
"", /*normal beskrivning 3*/
"", /*normal beskrivning 4*/
"", /*normal beskrivning 5*/
"", /*detaljerad beskrivning 1*/
"", /*detaljerad beskrivning 2*/
"", /*detaljerad beskrivning 3*/
"", /*detaljerad beskrivning 4*/
"", /*detaljerad beskrivning 5*/
0, /*ka strength*/
0, /*ka defence*/
0); /*strength demanded to use object*/
Add_Object("Heavy Leather Straps", /*name*/
Arms, /*typ*/
5500, /*vrde i gold*/
0, /*ka/minska hps*/
0, /*ka stamina*/
0, /*ka agility*/
0, /*ka charisma*/
0, /*ka dexterity*/
0, /*ka wisdom*/
0, /*ka mana*/
4, /*ka armor vrde*/
0, /*ka attack vrde*/
"", /*gd av?*/
false, /*bara EN i spelet*/
Nothing, /*kurerar*/
false, /*finnas i shoppen*/
true, /*kunna hittas i dungeons?*/
false, /*cursed item?*/
10, /*min level att hittas i dngs*/
25, /*max level att hittas i dngs*/
"You see nothing special",
"", /*normal beskrivning 2*/
"", /*normal beskrivning 3*/
"", /*normal beskrivning 4*/
"", /*normal beskrivning 5*/
"", /*detaljerad beskrivning 1*/
"", /*detaljerad beskrivning 2*/
"", /*detaljerad beskrivning 3*/
"", /*detaljerad beskrivning 4*/
"", /*detaljerad beskrivning 5*/
0, /*ka strength*/
0, /*ka defence*/
0); /*strength demanded to use object*/
Add_Object("Battle Straps", /*name*/
Arms, /*typ*/
25500, /*vrde i gold*/
0, /*ka/minska hps*/
0, /*ka stamina*/
0, /*ka agility*/
0, /*ka charisma*/
0, /*ka dexterity*/
0, /*ka wisdom*/
0, /*ka mana*/
7, /*ka armor vrde*/
0, /*ka attack vrde*/
"", /*gd av?*/
false, /*bara EN i spelet*/
Nothing, /*kurerar*/
false, /*finnas i shoppen*/
true, /*kunna hittas i dungeons?*/
false, /*cursed item?*/
25, /*min level att hittas i dngs*/
45, /*max level att hittas i dngs*/
"You see nothing special",
"", /*normal beskrivning 2*/
"", /*normal beskrivning 3*/
"", /*normal beskrivning 4*/
"", /*normal beskrivning 5*/
"", /*detaljerad beskrivning 1*/
"", /*detaljerad beskrivning 2*/
"", /*detaljerad beskrivning 3*/
"", /*detaljerad beskrivning 4*/
"", /*detaljerad beskrivning 5*/
0, /*ka strength*/
0, /*ka defence*/
0); /*strength demanded to use object*/
Add_Object("Zulu War Rings", /*name*/
Arms, /*typ*/
50500, /*vrde i gold*/
35, /*ka/minska hps*/
0, /*ka stamina*/
0, /*ka agility*/
0, /*ka charisma*/
0, /*ka dexterity*/
0, /*ka wisdom*/
0, /*ka mana*/
10, /*ka armor vrde*/
0, /*ka attack vrde*/
"", /*gd av?*/
false, /*bara EN i spelet*/
Nothing, /*kurerar*/
false, /*finnas i shoppen*/
true, /*kunna hittas i dungeons?*/
false, /*cursed item?*/
55, /*min level att hittas i dngs*/
58, /*max level att hittas i dngs*/
"Golden War Rings of famed Zulu origin.",
"", /*normal beskrivning 2*/
"", /*normal beskrivning 3*/
"", /*normal beskrivning 4*/
"", /*normal beskrivning 5*/
"", /*detaljerad beskrivning 1*/
"", /*detaljerad beskrivning 2*/
"", /*detaljerad beskrivning 3*/
"", /*detaljerad beskrivning 4*/
"", /*detaljerad beskrivning 5*/
0, /*ka strength*/
0, /*ka defence*/
0); /*strength demanded to use object*/
Add_Object("Adder Protection", /*name*/
Arms, /*typ*/
150000, /*vrde i gold*/
25, /*ka/minska hps*/
5, /*ka stamina*/
0, /*ka agility*/
0, /*ka charisma*/
0, /*ka dexterity*/
0, /*ka wisdom*/
0, /*ka mana*/
10, /*ka armor vrde*/
0, /*ka attack vrde*/
"", /*gd av?*/
false, /*bara EN i spelet*/
Nothing, /*kurerar*/
true, /*finnas i shoppen*/
false, /*kunna hittas i dungeons?*/
false, /*cursed item?*/
55, /*min level att hittas i dngs*/
58, /*max level att hittas i dngs*/
"The Adder is the only thing that can stop UR.",
"", /*normal beskrivning 2*/
"", /*normal beskrivning 3*/
"", /*normal beskrivning 4*/
"", /*normal beskrivning 5*/
"", /*detaljerad beskrivning 1*/
"", /*detaljerad beskrivning 2*/
"", /*detaljerad beskrivning 3*/
"", /*detaljerad beskrivning 4*/
"", /*detaljerad beskrivning 5*/
10, /*ka strength*/
10, /*ka defence*/
0); /*strength demanded to use object*/
Add_Object("Turmoil Bolts", /*name*/
Arms, /*typ*/
750000, /*vrde i gold*/
65, /*ka/minska hps*/
20, /*ka stamina*/
10, /*ka agility*/
10, /*ka charisma*/
0, /*ka dexterity*/
0, /*ka wisdom*/
60, /*ka mana*/
0, /*ka armor vrde*/
80, /*ka attack vrde*/
"", /*gd av?*/
false, /*bara EN i spelet*/
Nothing, /*kurerar*/
false, /*finnas i shoppen*/
true, /*kunna hittas i dungeons?*/
false, /*cursed item?*/
80, /*min level att hittas i dngs*/
90, /*max level att hittas i dngs*/
"Big and bulky this protection can stop almost anything.",
"", /*normal beskrivning 2*/
"", /*normal beskrivning 3*/
"", /*normal beskrivning 4*/
"", /*normal beskrivning 5*/
"", /*detaljerad beskrivning 1*/
"", /*detaljerad beskrivning 2*/
"", /*detaljerad beskrivning 3*/
"", /*detaljerad beskrivning 4*/
"", /*detaljerad beskrivning 5*/
20, /*ka strength*/
20, /*ka defence*/
50); /*strength demanded to use object*/
Add_Object("Thunder Bolts", /*name*/
Arms, /*typ*/
170000, /*vrde i gold*/
15, /*ka/minska hps*/
5, /*ka stamina*/
10, /*ka agility*/
10, /*ka charisma*/
0, /*ka dexterity*/
0, /*ka wisdom*/
-5, /*ka mana*/
0, /*ka armor vrde*/
80, /*ka attack vrde*/
"", /*gd av?*/
false, /*bara EN i spelet*/
Measles, /*kurerar*/
false, /*finnas i shoppen*/
true, /*kunna hittas i dungeons?*/
false, /*cursed item?*/
70, /*min level att hittas i dngs*/
80, /*max level att hittas i dngs*/
"Enchanted arm protection.",
"", /*normal beskrivning 2*/
"", /*normal beskrivning 3*/
"", /*normal beskrivning 4*/
"", /*normal beskrivning 5*/
"", /*detaljerad beskrivning 1*/
"", /*detaljerad beskrivning 2*/
"", /*detaljerad beskrivning 3*/