Come code with us
Come code with us
The adventure begins

Merentha Website
About LPC Coding
Header Files
The Problem Sets

Normal Rooms
Monster Rooms
Search Rooms
Exit Rooms
Door Rooms

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

A Vest
A Ring
Cursed Armour

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

A Match
A Torch
A Lantern

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; } }

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