Bug - Not A Bug "DRINK ME" potion not recognized as an item

Sputnik1

Member
I've been trying to sell my potions using this code

Code:
put_shop(0,item_amount($item["DRINK ME" potion]),$item["DRINK ME" potion]);

but I keep getting this in the CLI


> call scripts\test.ash

Bad item value: ""DRINK ME" potion" (test.ash, line 1)


This was using build 8241
 
Last edited by a moderator:

Bale

Minion
Your problem is actually the quotes in the item name. I've been using this:

to_item(""DRINK ME" potion")

You should have no problem if you change your code to:

Code:
put_shop(0,item_amount(to_item(""DRINK ME" potion")), to_item(""DRINK ME" potion"));
 
Last edited:

lostcalpolydude

Developer
Staff member
When I put a drink me potion in my mall store and use mafia's Mall Manager to check prices on the item (using the triangle with an exclamation point), it doesn't look up the prices like it does for other items. Something in mafia needs fixing for that.
 
Top