#include #include #include inherit LIB_ITEM; int CheckOrc(){ string ret = "The runes' meaning is undecipherable to you."; if(this_player()->GetRace() == "orc"){ write("You get an uneasy feeling."); } return write(ret); } static void create() { item::create(); SetKeyName("sword"); SetId( ({ "short sword", "shortsword"})); SetAdjectives( ({ "crafted","finely crafted","short","sharp","fine","runic"})); SetShort("a finely crafted short sword"); SetLong("This is a very fine blade, covered with ancient runes."); SetMass(300); SetBaseCost("silver",500); SetVendorType(VT_WEAPON); SetClass(35); SetDamageType(BLADE); SetWeaponType("blade"); SetItems( ([ ({"rune","runes"}) : (: CheckOrc :), ]) ); SetRead( ([ ({"rune","runes"}) : "You do not understand them." ]) ); } void init(){ ::init(); }