Merentha
Come code with us
Come code with us
The adventure begins

Merentha Website
Overview
About LPC Coding
Header Files
The Problem Sets

Rooms
Normal Rooms
Monster Rooms
Search Rooms
Exit Rooms
Door Rooms

Monsters
Normal Monster
Random/Emote Monster
Patrol/Talking Monster
Skills/Interactive Monster

Armour
A Vest
A Ring
Cursed Armour

Weapons
Normal Staff
Two Handed Sword
Special Attack Weapon
Cursed Weapon
Talkin Weapon

Lights
A Match
A Torch
A Lantern

Bags
A Normal Bag
A Backpack (wearable)
An Expanding Bag

Misc Objects
A Leaf
A Sea Shell
A Key
A Snowball

// Petrarch (from MN Mudlib) #include <std.h> inherit LIGHT; void create() { light::create(); set_name("match"); set_id( ({ "match", "matchstick" }) ); set_adjectives( ({ "a", "small", "wooden" }) ); set_short("a small match"); set_long( "A small match made of wood with a flamable strike-point " "at the tip. Evidently, if you strike it, it will catch fire." ); set_light(1, "strike", "extinguish"); set_fire(1); set_fuel_required(1); set_fuel(45); set_source_required(0); set_disable_weapon(1); set_light_function( (: call_other, this_object(), "strike_match" :) ); set_mass(1); set_value(11); set_burnt_value(10); set_material(({"wood","organic"})); } int strike_match(object ob) { if(random(100) > 50) { write("You strike the match and it burns to life!"); say((string)this_player()->query_cap_name()+" lights a match."); return 1; } else { write("You strike a match, but nothing happens."); say((string)this_player()->query_cap_name()+" strikes a match, " "but nothing happens."); return 0; } }


Merentha
It's your creation
Merentha Entertainment
© Copyright 1998-2002
Merentha Entertainment
All rights reserved.