Jump to content

I changed the economy, but it's not working properly.


Pop Guy

Recommended Posts

local TRADER = {
    pigman_collector =         { items= {"chitin", "mosquitosack", "mosquitosack_yellow", "venomgland", "spidergland"},                    
                                delay=0, reset=0, current=0, desc=STRINGS.CITY_PIG_COLLECTOR_TRADE,  reward = "oinc",           rewardqty = 3},
    pigman_banker =           { items= {"redgem", "bluegem", "purplegem", "greengem", "orangegem", "yellowgem"},
                                delay=0, reset=0, current=0, desc=STRINGS.CITY_PIG_BANKER_TRADE,      reward = "oinc10",          rewardqty = 1},
    pigman_beautician =     { items= {"feather_crow", "feather_robin", "feather_robin_winter", "goose_feather", "peagawkfeather", "feather_thunder", "doydoyfeather"},                    
                                delay=0, reset=1, current=0, desc=STRINGS.CITY_PIG_BEAUTICIAN_TRADE, reward = "oinc",           rewardqty = 2},
    pigman_mechanic =       { items= {"boards", "rope", "cutstone", "papyrus", "fabric", "limestone", --[[]] "torch", "axe", "pickaxe", "shovel", "machete", "hammer"},
                                delay=0, reset=1, current=0, desc=STRINGS.CITY_PIG_MECHANIC_TRADE,      reward = "oinc",           rewardqty = 2},
    pigman_professor =       { items= {"relic_1", "relic_2", "relic_3", "trinket_18", "thulecite", "infused_iron"}, 
                                delay=0, reset=0, current=0, desc=STRINGS.CITY_PIG_PROFESSOR_TRADE,  reward = "oinc10",         rewardqty = 1},                                
     pigman_hunter =         { items= {"beardhair", "houndstooth", "stinger", "bill_quill", "venus_stalk", --[[]] "armorgrass", "armorwood", "spear", "tentaclespike"},       
                                delay=0, reset=0, current=0, desc=STRINGS.CITY_PIG_HUNTER_TRADE,      reward = "oinc",           rewardqty = 5},
    pigman_mayor =            { items= {"relic_4", "relic_5", --[[]] "antler"},      
                                delay=0, reset=0, current=0, desc=STRINGS.CITY_PIG_MAYOR_TRADE,      reward = "oinc100",        rewardqty = 1},
    pigman_florist =         { items= {"petals", "petals_evil", "foliage", "seeds"},              
                                delay=0, reset=1, current=0, desc=STRINGS.CITY_PIG_FLORIST_TRADE,    reward = "oinc",           rewardqty = 1},
    pigman_storeowner =     { items= {"clippings", "vine", "nitre", "weevole_carapace"},           
                                delay=0, reset=0, current=0, desc=STRINGS.CITY_PIG_STOREOWNER_TRADE, reward = "oinc",           rewardqty = 1},
    pigman_farmer =         { items= {"cutgrass", "twigs", "charcoal"}, 
                                delay=0, reset=1, current=0, desc=STRINGS.CITY_PIG_FARMER_TRADE,      reward = "oinc",           rewardqty = 1},
    pigman_miner =             { items= {"rocks", "iron", "charcoal"},               
                                delay=0, reset=1, current=0, desc=STRINGS.CITY_PIG_MINER_TRADE,      reward = "oinc",           rewardqty = 1},
    pigman_erudite =         { items= {"nightmarefuel", "livinglog", "goldnugget", "thulecite_pieces"},      
                                delay=0, reset=1, current=0, desc=STRINGS.CITY_PIG_ERUDITE_TRADE,    reward = "oinc",           rewardqty = 5},
    pigman_hatmaker =        { items= {"silk", --[[]] "bandithat", "telescope"},               
                                delay=0, reset=0, current=0, desc=STRINGS.CITY_PIG_HATMAKER_TRADE,     reward = "oinc",           rewardqty = 5},
    pigman_usher =            { items= {"honey", "nectar_pod", "jammypreserves", "icecream", "pumpkincookie", "waffles", "berries", "berries_cooked", "lotus_flower"},                 
                                delay=0, reset=1, current=0, desc=STRINGS.CITY_PIG_USHER_TRADE,      reward = "oinc",           rewardqty = 4},
    pigman_queen =             { items= {"pigcrownhat", "pig_scepter", "relic_4", "relic_5"},
                                 delay=0, reset=0, current=0, desc=STRINGS.CITY_PIG_QUEEN_TRADE,         reward = "pedestal_key",   rewardqty = 1},                                
}

Some items I have entered are not traded correctly by merchants; why?

EDIT: I understood that I had to add "tradable" to some items; thanks anyway to those who read.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
×
  • Create New...