rpherbig / dr-scripts

A series of Lich 5 (https://github.com/elanthia-online/lich-5) scripts for use with DragonRealms (http://www.play.net/dr/). Donations are welcome (http://www.paypal.me/rcuhljr)!
GNU General Public License v2.0
52 stars 177 forks source link

[maps] Request "Amusement Pier" in Crossing be mapped #4452

Closed KatoakDR closed 4 years ago

KatoakDR commented 4 years ago

Maps

Cartographers

KatoakDR commented 4 years ago

I've uploaded the mappings of the Amusement Pier during the daytime. Some rooms are different at night, I'll upload those once Elanthia goes to sleep.

KatoakDR commented 4 years ago

I've uploaded the map updates for night time room descriptions in the Amusement Pier (there were just a few rooms).

Also added the transition from room 899 to the Amusement Pier via:

;e Room.current.wayto['15891'] = StringProc.new("fput 'go amusement pier'; fput 'south'")
;e Room.current.timeto['15891'] = 0.2

In discussion with Kali, when moving to the pier from room 899 via "go amusement pier" then the game response is non-standard and Lich doesn't know what room we are in. However, after manually moving to another room within the pier and then back, Lich correctly recognizes the room. The extra "You whisper..." sentence you'll see in the below example throws the XML parsing off.

>go amusement pier

You whisper a command word as you step toward the amusement pier.  The curtain of magic that shimmers over the entry parts, allowing you to pass through.

[Amusement Pier, Entrance]
Salty air drifts upon the wind causing bits of old paper to dance around half-full garbage bins, while sweepers go by cleaning up the day's refuse.  Various buildings and attractions are visible in the torchlight further down the wide wooden and metal pier.
You also see an elaborate gate with carved leaping animal shapes.
Obvious paths: southeast, south, southwest.

The solution we devised was to use a custom transition from room 899 (outside the pier) to a room inside the pier just past the first room.

go2 and get2 are still able to move the character to any of the mapped rooms within the pier, even to the first room in the pier. The side effect is that if you are in the Crossing then say run ;get2 15891 then your path will look like from room 899 to be "go amusement pier, south, north". It's negligible in time cost and allows us to bypass the XML problem when moving from 899 to 15891 in one movement.

KatoakDR commented 4 years ago

As of map-1598252498.json the Amusement Pier mappings and StringProc transition from 899 are approved and available.

Hiinky commented 4 years ago

Image added - issue can be closed.

KatoakDR commented 4 years ago

Thanks @Hiinky