• 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 8 as of 2012-11-07 18:16:40

    Clear message

    

    buyPrice(0)

    Usage:

    city.buyPrice(0)

    Example:

    city.buyPrice(0)

    Refers to the current price of food.

    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

    buyPrice(1)

    Usage:

    city.buyPrice(1)

    Example:

    city.buyPrice(1)

    Refers to the current price of wood.

    Script

    echo "wood costs"city.buyPrice(2)

    Output

    19:03:29 wood costs 15.62

    Example of usage

    label start

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

    2: sleep 50

    3: loop start

    label sellwood

    4: sell wood 1000 1

    5: goto start

    buyPrice(2)

    Usage:

    city.buyPrice(2)

    Example:

    city.buyPrice(2)

    Refers to the current price of stone.

    Script

    echo "stone costs"city.buyPrice(2)

    Output

    19:03:29 stone costs 15.62

    Example of usage

    label start

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

    2: sleep 50

    3: loop start

    label sellstone

    4: sell stone 1000 1

    5: goto start

    buyPrice(3)

    Usage:

    city.buyPrice(3)

    Example:

    city.buyPrice(3)

    Description goes here.

    sellPrice(food)

    Usage:

    city.sellPrice(food)

    Example:

    city.sellPrice(food)

    Refers to the current price of iron.

    Script

    echo "iron costs"city.buyPrice(2)

    Output

    19:03:29 iron costs 15.62

    Example of usage

    label start

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

    2: sleep 50

    3: loop start

    label selliron

    4: sell 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)



    ScriptObjects