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)

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

sellPrice(0)

Usage:

city.sellPrice(0)

Example:

city.sellPrice(0)

Refers to the current price of food.

Script

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

Output

19:03:29 food is offered at 15.62

Example of usage

label start

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

2: sleep 50

3: loop start

label buyfood

4: buy food 1000 1

5: goto start

sellPrice(1)

Usage:

city.sellPrice(1)

Example:

city.sellPrice(1)

Refers to the current price of wood.

Script

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

Output

19:03:29 wood is offered at 15.62

Example of usage

label start

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

2: sleep 50

3: loop start

label buywood

4: buy wood 1000 1

5: goto start

sellPrice(2)

Usage:

city.sellPrice(2)

Example:

city.sellPrice(2)

Refers to the current price of stone.

Script

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

Output

19:03:29 stone is offered at 15.62

Example of usage

label start

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

2: sleep 50

3: loop start

label buystone

4: buy stone 1000 1

5: goto start

sellPrice(3)

Usage:

city.sellPrice(3)

Example:

city.sellPrice(3)

Refers to the current price of 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)



ScriptObjects

Market (last edited 2012-11-07 18:21:52 by Kento11)