riverbank.c

ds2.1.1/lib/domains/town/room/riverbank.c · 1.1 KB

From the archive ds2.1.1.zip

Download the archive   « Back to the archive contents

#include <lib.h>
inherit LIB_FISHING;

static void create() {
    ::create();
    SetTown("town");
    SetClimate("temperate");
    SetAmbientLight(30);
    SetShort("riverbank");
    SetLong("This is the bank of a narrow but swift-moving river. A steep path leads back up to the bridge.");
    SetProperties (([
	"no attack":0, 
	"no bump":0, 
	"no steal":0, 
	"no magic":0, 
	"no paralyze":0, 
	"no teleport":0]));
    SetItems(([  "river" : "A swift moving river, probably quite deep." ,
	({"bank","riverbank","here","water"}) : "This is the edge of a powerful river."]));
    SetListen(([
	({ "river", "water" }) : "You hear it rushing by.",
	"default" : "You can hear the roar of the river rushing by.",
      ]));
    SetInventory(([
	"/domains/town/npc/troll" : 1,
	"/domains/town/obj/rocks" : 1,
      ]));
    AddExit("up", "/domains/town/room/bridge");
    SetChance(90);
    SetFish( ([
	"/domains/town/meals/shark" : 10,
      ]) );
}
void init() {
    ::init();
    SetSmell(([]));
}

int CanReceive(object ob){
    if(answers_to("provost",ob)) return 0;
    return ::CanReceive();
}

Site Stats

Snippets: 1791
Codebases: 571