generic item spawner #305
Aliases: generic item spawner, item, spawner
5 verbs · 18 properties · 0 children
Verbs
| Verb | Spec | Flags | Definer | Lines |
|---|---|---|---|---|
on_reset | this none this | rxd | #305 | 10 |
@force-reset | this none none | rxd | #305 | 6 |
look_place_msg | this none this | rxd | #305 | 1 |
do_examine | this none this | rxd | #305 | 2 |
is_hidden | this none this | rxd | #305 | 1 |
Properties
| Property | Definer | Flags | Owner | Value |
|---|---|---|---|---|
item | #305 | rc | #29 | #-1 |
spawn_msg | #305 | rc | #29 | "%IN slowly fades in from nothingness." |
look_place_msg | #305 | rc | #29 | " " |
respawn_interval | #305 | rc | #29 | 30 |
lastitem | #305 | r | #29 | #-1 |
last_task | #305 | r | #29 | 0 |
is_hidden | #305 | rc | #29 | 1 |
last_spawn | #305 | rc | #29 | 0 |
aliases | #1 | rc | #29 | {"generic item spawner", "item", "spawner"} |
description | #1 | rc | #29 | <clear> |
object_size | #1 | r | #29 | {2781, 1298433826} |
hidden_verbs | #1 | rc | #29 | <clear> |
phelp_msg | #1 | rc | #29 | <clear> |
weight | #1 | rc | #29 | <clear> |
owner_verbs | #1 | rc | #29 | <clear> |
plural_name | #1 | rc | #29 | <clear> |
client_image | #1 | rc | #29 | <clear> |
listening | #1 | rc | #29 | <clear> |
Ancestry
Ancestors (nearest first): #1 root
Children: none
Call graph
Source
on_reset
Referenced by
- #305:@force-reset line 3:
this:on_reset
Source
1if (!valid(this.location)) 2return; 3endif 4if (!this.location:occupants(this.item)) 5if ((time() - this.last_spawn) > (this.respawn_interval * 60)) 6new = $rpg:spawn(this.item); 7new:moveto(this.location); 8(m = this.spawn_msg) && this.location:announce_all($su:ps(m, new, new)); 9endif 10endif
@force-reset
Referenced by
none
Source
1if ((player.programmer == 1) || (player.wizard == 1)) 2player:tell("Resetting ", this.name, "."); 3this:on_reset(); 4else 5player:tell("I don't understand that."); 6endif
look_place_msg
Referenced by
none
Source
1return this.(verb);
do_examine
Referenced by
none
Source
1"Copied from generic monster generator (#4609):do_examine by Pan (#413632) Mon Oct 12 15:14:14 2009 CDT"; 2player:tell("I see no \"", argstr, "\" here.");
is_hidden
Referenced by
none
Source
1return this.(verb);