function RPGZoneEntry::newZone(%this, %zoneName, %rzs, %goodZone, %entered) { %cTag = (%goodZone) ? "66FF00" : "990000"; if (%goodZone) %t = "" @ %zoneName; else %t = "" @ %zoneName; RPGZoneEntryText.setValue(collapseEscape(%t)); RPGZoneEntryTitle.setValue("You have "); RPGZoneEntryTitle.addText(%entered ? "entered" : "left", false); RPGZoneEntryInfo.setValue("" @ %rzs); %this.showText(); } function RPGZoneEntry::showText(%this) { canvas.pushDialog(%this); if (isEventPending(%this.dSch)) cancel(%this.dSch); %this.dSch = canvas.schedule(5000, "popDialog", %this); } function clientCmdRPGEnterZone(%zoneName, %rzs, %goodZone, %entered) { RPGZoneEntry.newZone(%zoneName, %rzs, %goodZone, %entered); }