• My Pages
  • Comments
  • Add Link
  • Subscribe
  • Subscribe User
  • Edit (GUI)
  • Edit (Text)
  • Rename Page
  • Copy Page
  • Load Page
  • Save Page
  • Delete Page
  • Attachments
  • Check Spelling
  • Diffs
  • Info
  • Revert to this revision
  • XML
  • Render as Docbook
  • Print View
  • Raw Text
  • Delete Cache
  • Like Pages
  • Local Site Map
  • Remove Spam
  • Package Pages
  • Sync Pages

    Revision 6 as of 2013-08-02 00:40:27

    Clear message

    mapCastleBean objects reference details about a location on the map.

    mapCastleBean objects can be referenced as:

    • userDefinedObject.property

    The .property at the end is how you will specify which detail you are referencing. Using the table below, you can for example get the name of the city with city.name.

    Properties

    Property

    Type

    Description

    lastUpdated

    int

    time the information in the mapCastleBean was last updated

    furlough

    Boolean

    If player at indicated coords is in holiday, returns True, otherwise returns False

    changeface

    int

    not sure what this indicates. seems to always be 0.

    flag

    String

    returns the player's flag (or null if unowned/unoccupied)

    canLoot

    Boolean

    If you can loot from the coords. Returns: True / False

    canSend

    Boolean

    If you can send to the coords. Returns: True / False

    canOccupy

    Boolean

    If you can occupy the coords. Returns: True / False

    fieldId

    id

    int

    Gives the FieldID of the mapCastleBean

    Examples

    • fid = GetFieldId(123,456) // convert coordinates into FieldId
      mcb = GetDetailInfo(fid) // retrieve mapCastleBean object containing details for specified FieldId
      if mcb == null repeat // if the server did not send updated info, repeat last step
      echo mcb.name
      echo mcb.allianceName
      echo mcb.prestige



    ScriptObjects

    "playerLogoUrl":"string"

    "userName":"string"

    "canScout":false

    "zoneName":"string - name of state"

    "":false

    "canTrans":true

    "allianceName":"string"

    "name":"string"

    "id": int - same as FieldId

    "relation":0

    "npc":false

    "state":1 see player state

    "prestige":int

    "":true

    "honor":0


    ScriptObjects