OK, so this is what the room packet normally looks like:
���room.info {"num": "41703", "name": "Tellerium Parcel Service", "zone": "Tellerium", "wilds": "false", "terrain": "indoors", "terraininfo": "sheltered", "size": "normal", "shape": "square", "plane": "physical", "flags": "indoors, no-npcs, anti-magic", "coord": {"id": 1, "name": "Alyria", "x": 1724, "y": 685}, "exits": {"n": "41011", "door": {}}}��
[38;5;11m Tellerium Parcel Service [38;5;12m- [38;5;12m[38;5;11mN [38;5;12m -[0m
[38;5;12m(-------------------------------------------------) [38;5;12m- [38;5;12m<-[38;5;12m-[38;5;12m-([38;5;13mM[38;5;12m)-[38;5;12m-[38;5;12m-> [38;5;11m[38;5;12m-[0m
[38;5;12m- [38;5;12m- [38;5;12m -[0m
[0mCooperating with the international network of delivery services, one may
have nearly anything imaginable shipped to this spot for pickup. Ignoring
an old lady trying to box a bulky package for delivery to her nephew in
Sigil, the clerk offers you his assistance.
[0m <get name="a burnished silver collar" desc="a burnished silver collar">A sparkling burnished silver collar lies here reflecting light.</get>
<get name="a page of parchment" desc="a page of parchment">A faded yellow page of parchment has been dropped here.</get>
[38;5;13m( 2)[0m <get name="a large silver key" desc="(Invisible) a large silver key">[38;5;12m(Invisible) [0mA large silver key lies here.</get>
<get name="a Remorhaz scale" desc="a Remorhaz scale">An iridescent scale lies here.</get>
<get name="a stamp collector's book" desc="a stamp collector's book (new)">A book in which to put collected stamps is here.</get>
[0m[38;5;11m[Shop][0m[0m <pers name="a postal clerk" desc="a postal clerk">[0m[38;5;10mThe postal clerk is checking the log for what parcels have arrived today.[0m</pers>
[38;5;12m<<V Hp>[0m1476</V>[38;5;12mhp <V Sp>[0m493</V>[38;5;12msp <V St>[0m822</V>[38;5;12mst>[0m ���char.vitals {"hp": 1476, "sp": 493, "st": 822}����
And this is what the room usually looks like:
Tellerium Parcel Service - N -
(-------------------------------------------------) - <---(M)---> -
- - -
Cooperating with the international network of delivery services, one may
have nearly anything imaginable shipped to this spot for pickup. Ignoring
an old lady trying to box a bulky package for delivery to her nephew in
Sigil, the clerk offers you his assistance.
A sparkling burnished silver collar lies here reflecting light.
A faded yellow page of parchment has been dropped here.
( 2) (Invisible) A large silver key lies here.
An iridescent scale lies here.
A book in which to put collected stamps is here.
[Shop] The postal clerk is checking the log for what parcels have arrived today.
I have edited the room packet directly through OnPluginPacketReceived to be able to show the room info since, like I said,
res, val = CallPlugin("f67c4339ed0591a5b010d05b", "gmcpval", "room.num") -- calls the MM_GMCP_handler plugin
won't work until the second line of the compass. In fact, I did a trigger to show why, and here's what I got:
Tellerium Parcel Service - N -
val =
(-------------------------------------------------) - <---(M)---> -
- - -
The trigger was
<triggers>
<trigger enabled="y" keep_evaluating="y" match="^ Tellerium Parcel Service - N -$" omit_from_output="n" regexp="y" send_to="12" sequence="100">
<send>res, val = CallPlugin("f67c4339ed0591a5b010d05b", "gmcpval", "room.num") -- calls the MM_GMCP_handler plugin
ColourNote("red", "black", "val = " .. val)</send>
</trigger>
</triggers>
So the GMCP value is empty on the first line. |