Switch to edit mode.
Name(s): Connect Disconnect1: if (verb == "Connect" && !(player in this.connected))
2: this.connected = {@this.connected, player}
3: this:announce(player.name, " climbs off the dock into a boat.")
4: player:tell("You climb off the dock into a boat.")
5: this.FisherStats[player in this.fishers][1] = {1, 1}
6: this:announce(player.name, " climbs from the dock, into a boat.")
7: this:look_self()
8: elseif (verb == "Disconnect" && player in this.connected)
9: this.casts = setremove(this.casts, player)
10: this.connected = setremove(this.connected, player)
11: if (this:loc(player) != {1, 1})
12: this:announce(player.name, " rows the boat back to the dock.")
13: this.FisherStats[player in this.Fishers][1] = {1, 1}
14: this:announce(player.name, " rows in.")
15: endif
16: this:announce(player.name, " gets out of a boat, and climbs onto the dock.")
17: this.FisherStats[player in this.Fishers][1] = {0, 0}
18: this:announce(player.name, " climbs up onto the dock.")
19: this:look_self()
20: elseif (verb == "Connect")
21: return player:tell("You're already connected. Type \"Disconnect\" to disconnect.")
22: elseif (verb == "Disconnect")
23: return player:tell("You're not connected. Use \"Connect\" to connect.")
24: endif
25: "Last modified by James (#6397) on Wed May 27 17:13:06 1998 EDT."