/* $Id: ImageViewTest.java,v 1.8 2010/09/19 02:36:26 nhnb Exp $ */
/***************************************************************************
* (C) Copyright 2003-2010 - Stendhal *
***************************************************************************
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
package games.stendhal.server.script;
import games.stendhal.server.core.scripting.ScriptImpl;
import games.stendhal.server.entity.player.Player;
import java.util.List;
import marauroa.common.game.RPEvent;
/**
* A simple test for the client ImageViewer.
*
* @author timothyb89
*/
public class ImageViewTest extends ScriptImpl {
@Override
public void execute(final Player admin, final List<String> args) {
final RPEvent event = new RPEvent("examine");
event.put("path", "/data/sprites/examine/map-semos-city.png");
event.put("alt", "Map of Semos City");
event.put("title", "Semos City");
event.put(
"text",
"Semos City is your starting point and you will return here often during your journey through the world.<br>"
+ "1 Townhall, Tad lives here, "
+ "2 Library, 3 Bank, 4 Storage, 5 Bakery, "
+ "6 Blacksmith, Carmen, 7 Inn, Margaret, "
+ "8 Temple, ilisa, 9 Dangerous Dungeon<br>"
+ "A Semos Village, B Northern Plains and Mine, "
+ "C Very long path to Ados, "
+ "D Southern Plains and Nalwor Forest");
admin.addEvent(event);
}
}