I have an After-Adventure script that will create items when possible. In this example, it is a jar of oil.
There is an issue when this triggers just after an adventure that takes no turns. Mafia seems to try to trigger the item creation again. Here is a parsed entry from the CLI:
PHP:
if (creatable_amount($item[jar of oil])>0) {
create(creatable_amount($item[jar of oil]),$item[jar of oil]);
}
There is an issue when this triggers just after an adventure that takes no turns. Mafia seems to try to trigger the item creation again. Here is a parsed entry from the CLI:
Code:
[244] Oil Peak
Encounter: oil cartel
Round 6: ckb1 wins the fight!
You acquire an item: bubblin' crude
You acquire an item: bubblin' crude
After Battle: You gain 21 Fortitude
After Battle: You gain 31 Enchantedness
After Battle: You gain 14 Sarcasm
Conditions satisfied after 1 adventures.
Visit to Highlands: Twin Peak in progress...
[245] Twin Peak
Encounter: Welcome to the Great Overlook Lodge
Encounter: Welcome to the Great Overlook Lodge
creating: 1 jar of oil
Verifying ingredients for jar of oil (1)...
You acquire an item: jar of oil
[COLOR="#0000FF"]Successfully created jar of oil (1)[/COLOR]
Visit to Highlands: Twin Peak in progress...
[245] Twin Peak
Encounter: the Bubblemint Twins
Round 7: ckb1 wins the fight!
You acquire an item: that gum you like
You acquire an item: dusty barrel
After Battle: You gain 15 Muscleboundness
After Battle: You gain 36 Wizardliness
You gain a Mysticality point!
After Battle: You gain 21 Cheek
creating: 1 jar of oil
Verifying ingredients for jar of oil (1)...
[COLOR="#FF0000"]You need 11 more bubblin' crude to continue.[/COLOR]
Last edited: