How To: Simple Map Item for custom treasure/quest maps.

Discussion in 'XmlSpawner Development' started by Chris, Jun 17, 2014.

  1. Chris

    Chris Renaissance Staff
    Renaissance Staff

    Joined:
    May 14, 2012
    Messages:
    3,385
    Likes Received:
    6,195
    The SimpleMap item allows you to add/spawn cartography maps with preplaced pins.

    You can create a cartography map with custom pin placements by adding or spawning a SimpleMap item.

    Setting the Bounds property on the map allows you to define the area displayed.
    To add a pin to the map, just set the NewPin property to the pin location in world coordinates.
    You can insert multiple pins by just adding more newpin assignments.
    Setting the Protected property lets you control whether users are allowed to place or change pins on the map.

    For example, you could spawn a map with a pin already placed that the user could not change with

    simplemap/bounds/(3000,3200,400,400)/newpin/(3100,3350)/protected/true

    Note, that bounds are set as (x,y,width,height) in world coordinates and the pin coordinates are set as (x,y)

    You can clear all pin locations by setting the ClearAllPins property to true.

    You can have the map automatically displayed to a player by setting the ShowTo property to point to the player.

    For example, making a triggered spawner with the following spawn entry

    simplemap/bounds/(3000,3200,400,400)/newpin/(3100,3350)/protected/true/showto/TRIGMOB

    would spawn the map and display it to the triggering mob

    The sample quest called draugquest.xml that is included in xmlextras can be loaded with "[xmlloadhere draugquest.xml". It demonstrates the use of the simplemap item in a quest. Note, you need to have enabled support for skill triggering to complete the quest.

    Original Document by ArteGordon - Modified for use on UO:Renaissance
    Original Article - http://xmlspawner.fr.yuku.com/topic/119#.U6BtdJTiKy4

Share This Page