SphereCommunity
REQUEST For 56c - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Requests (/Forum-Script-Requests)
+--- Thread: REQUEST For 56c (/Thread-REQUEST-For-56c)



REQUEST For 56c - rastrero - 02-28-2016 12:42 PM

Its possible to put on @itemsell tag.override.moneytype???
To change the coin the vendors accept or give... ty


RE: REQUEST For 56c - Khaos - 02-28-2016 03:50 PM

Ugh. Completely dislike the @(Item)Buy @(Item)Sell triggers. Try this. It is hard doing a custom currency with these triggers. This could be horribly wrong what I am adding in here. If so, sorry. The way these triggers work (or lack to work), deciding whether or not to rewrite a dialog system for vendors.

Code:
ON=@ItemBuy
if !<restest <local.totalcost> i_silver_coin>
smsg You do not have enough silver coins to buy all of this!
return 1
else
act.bounce <uid>
argo.say Thank you <name>.
smsg You have purchased the items.
return 1
endif