View/Edit #1961:put

Switch to edit mode.

Name(s): put
1:  if (this.location != player)
2:    player:Tell("You're don't have that.")
3:  elseif (this.mode == 1)
4:    this:handle_normal_put()
5:  elseif (player != this.owner)
6:    player:tell("You don't own ", this.name, "!")
7:  elseif (iobjstr == "")
8:    this:place()
9:  elseif (iobjstr == "me")
10:   player:tell("You put ", this.name, " on yourself.")
11:   this.on_where = iobjstr
12:   this.on = 1
13: elseif (this.on && iobjstr in this.wearable_place && iobjstr == this.registered)
14:   player:tell("You replace ", this.name, " to your ", iobjstr, ".")
15:   this.on = 1
16:   this.on_where = iobjstr
17: elseif (iobjstr in this.wearable_place && iobjstr == this.registered)
18:   player:tell("You put ", this.name, " on your ", iobjstr, ".")
19:   this.on = 1
20:   this.on_where = iobjstr
21: else
22:   player:Tell("You can't put ", this.name, " there.")
23: endif
24: "Last modified by cheese-whiz (#8596) on Tue May 16 12:13:23 2000 MDT."

Verb arguments: this on top of/on/onto/upon any
Verb perms: Readable eXecutable NOT-Debug
Verb owned by: cheese-whiz (#8596)

You are not logged in.

[home | help | who | search | setup | code]