|
@@ -2054,27 +2054,25 @@ end
|
|
!! Used to get price of an outfit uses the variable "price"
|
|
!! Used to get price of an outfit uses the variable "price"
|
|
!! $ARGS[1] set to outfit type
|
|
!! $ARGS[1] set to outfit type
|
|
!! ARGS[2] for outfit number
|
|
!! ARGS[2] for outfit number
|
|
-!! ARGS[3] the store base price
|
|
|
|
if $ARGS[0] = 'get_price':
|
|
if $ARGS[0] = 'get_price':
|
|
- gs 'clothing_attributes', '$ARGS[1]', ARGS[2]
|
|
|
|
- price = (ARGS[3] * ((5 * CloQuality) + 100) / 100) * 1000 / (1250 - Clothingstock[ARGS[2]]) * 3 / 2
|
|
|
|
|
|
+ gs 'clothing_attributes', $ARGS[1], ARGS[2]
|
|
|
|
+ price = (CloPrice * ((5 * CloQuality) + 100) / 100) * 1000 / (1250 - Clothingstock[ARGS[2]]) * 3 / 2
|
|
price = price / 50 * 50
|
|
price = price / 50 * 50
|
|
end
|
|
end
|
|
|
|
|
|
!! use to buy outfit automatically, use with gosub
|
|
!! use to buy outfit automatically, use with gosub
|
|
!! $ARGS[1] = item_type
|
|
!! $ARGS[1] = item_type
|
|
!! ARGS[2] = item number
|
|
!! ARGS[2] = item number
|
|
-!! ARGS[3] = store price
|
|
|
|
!! $ARGS[4] = 'money' or 'karta' for payment type
|
|
!! $ARGS[4] = 'money' or 'karta' for payment type
|
|
if $ARGS[0] = 'quick_buy':
|
|
if $ARGS[0] = 'quick_buy':
|
|
- price = (ARGS[3] * ((5 * CloQuality) + 100) / 100) * 1000 / (1250 - Clothingstock[ARGS[2]]) * 3 / 2
|
|
|
|
|
|
+ price = (CloPrice * ((5 * CloQuality) + 100) / 100) * 1000 / (1250 - Clothingstock[ARGS[2]]) * 3 / 2
|
|
price = price / 50 * 50
|
|
price = price / 50 * 50
|
|
h = 0
|
|
h = 0
|
|
if CloStyle = 2:h = 10
|
|
if CloStyle = 2:h = 10
|
|
if CloStyle = 5:h = 20
|
|
if CloStyle = 5:h = 20
|
|
h += (3 * CloQuality)
|
|
h += (3 * CloQuality)
|
|
- if price > 0: dynamic '<<$ARGS[4]>> -= price'
|
|
|
|
- gs 'clothing', 'view_clothing_item_buy', 'skip', $ARGS[1], ARGS[2], ARGS[3]
|
|
|
|
|
|
+ if price > 0: dynamic '<<$ARGS[3]>> -= price'
|
|
|
|
+ gs 'clothing', 'view_clothing_item_buy', 'skip', $ARGS[1], ARGS[2]
|
|
end
|
|
end
|
|
|
|
|
|
--- clothing ---------------------------------
|
|
--- clothing ---------------------------------
|