• 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 11 as of 2012-12-04 18:36:01

    Clear message

    

    buyPrice(X)

    Usage:

    city.buyPrice(X)

    Example:

    city.buyPrice(X)

    Refers to the highest bid of a given resource.

    0=food,1=wood,2=stone,3=iron

    Script

    echo "food costs"city.buyPrice(2)

    Output

    19:03:29 food costs 15.62

    Example of usage

    label start

    1: ifgoto city.buyPrice(2) >= 1 sellfood

    2: sleep 50

    3: loop start

    label sellfood

    4: sell food 1000 1

    5: goto start

    sellPrice(X)

    Usage:

    city.sellPrice(X)

    Example:

    city.sellPrice(X)

    Refers to the cheapest offer of a given resource.

    0=food,1=wood,2=stone,3=iron

    Script

    echo "iron is offered at"city.sellPrice(2)

    Output

    19:03:29 iron is offered at 15.62

    Example of usage

    label start

    1: ifgoto city.sellPrice(2) >= 1 buyiron

    2: sleep 50

    3: loop start

    label buyiron

    4: buy iron 1000 1

    5: goto start

    tradesArray.length

    Usage:

    city.tradesArray.length

    Example:

    city.tradesArray.length

    Description goes here.

    tradesArray[0].amount

    Usage:

    city.tradesArray[0].amount

    Example:

    city.tradesArray[0].amount

    Description goes here.

    tradesArray[1].amount

    Usage:

    city.tradesArray[1].amount

    Example:

    city.tradesArray[1].amount

    Description goes here.

    tradesArray[2].amount

    Usage:

    city.tradesArray[2].amount

    Example:

    city.tradesArray[2].amount

    Description goes here.

    tradesArray[6].amount

    Usage:

    city.tradesArray[6].amount

    Example:

    city.tradesArray[6].amount

    Description goes here.

    tradesArray[0].resType

    Usage:

    city.tradesArray[0].resType

    Example:

    city.tradesArray[0].resType

    Description goes here.

    tradesArray[0].tradeType

    Usage:

    city.tradesArray[0].tradeType

    Example:

    city.tradesArray[0].tradeType

    Description goes here.

    tradesArray[0].resourceName

    Usage:

    city.tradesArray[0].resourceName

    Example:

    city.tradesArray[0].resourceName

    Description goes here.

    tradesArray[0].price

    Usage:

    city.tradesArray[0].price

    Example:

    city.tradesArray[0].price

    Description goes here.

    tradesArray[0].id

    Usage:

    city.tradesArray[0].id

    Example:

    city.tradesArray[0].id

    Description goes here.

    tradesArray[0].tradeTypeName

    Usage:

    city.tradesArray[0].tradeTypeName

    Example:

    city.tradesArray[0].tradeTypeName

    Description goes here.

    tradesArray[0].dealedAmount

    Usage:

    city.tradesArray[0].dealedAmount

    Example:

    city.tradesArray[0].dealedAmount

    Description goes here.

    tradesArray[0].dealedTotal

    Usage:

    city.tradesArray[0].dealedTotal

    Example:

    city.tradesArray[0].dealedTotal

    Description goes here.

    transingTradesArray.length

    Usage:

    city.transingTradesArray.length

    Example:

    city.transingTradesArray.length

    Description goes here.

    transingTradesArray[0].amount

    Usage:

    city.transingTradesArray[0].amount

    Example:

    city.transingTradesArray[0].amount

    Description goes here.

    transingTradesArray[0].endTime

    Usage:

    city.transingTradesArray[0].endTime

    Example:

    city.transingTradesArray[0].endTime

    Description goes here.

    transingTradesArray[0].resourceName

    Usage:

    city.transingTradesArray[0].resourceName

    Example:

    city.transingTradesArray[0].resourceName

    Description goes here.

    transingTradesArray[0].price

    Usage:

    city.transingTradesArray[0].price

    Example:

    city.transingTradesArray[0].price

    Description goes here.

    transingTradesArray[0].total

    Usage:

    city.transingTradesArray[0].total

    Example:

    city.transingTradesArray[0].total

    Description goes here.

    transingTradesArray[0].id

    Usage:

    city.transingTradesArray[0].id

    Example:

    city.transingTradesArray[0].id

    Description goes here.

    transingTradesArray[0].resType

    Usage:

    city.transingTradesArray[0].resType

    Example:

    city.transingTradesArray[0].resType

    Description goes here.

    m_context.sellPrice(0)

    m_context.buyPrice(0)

    m_context.sellPrice(1)

    m_context.buyPrice(1)

    m_context.sellPrice(2)

    m_context.buyPrice(2)

    m_context.sellPrice(3)

    m_context.buyPrice(3)


    ObjectCity