![]() |
@Itembuy @Buy @sell @itemsell - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: @Itembuy @Buy @sell @itemsell (/Thread-Itembuy-Buy-sell-itemsell) |
@Itembuy @Buy @sell @itemsell - rastrero - 01-16-2016 10:36 PM hi, Is there a way to set the kind of coin the vendor gonna accept?? I got diferent kinds of coins in my server, factions coins... Is there a way to tell the vendor which one use? RE: @Itembuy @Buy @sell @itemsell - karma - 01-16-2016 11:32 PM Look here: http://wiki.sphere.torfo.org/index.php/@ItemBuy This trigger fires for each item bought. RE: @Itembuy @Buy @sell @itemsell - rastrero - 01-16-2016 11:58 PM Yes I saw it but with that terms, its so long to script. Anyway its possible. Ty for the answer RE: @Itembuy @Buy @sell @itemsell - karma - 01-17-2016 12:31 AM Can't you do something like this? Code: ON=@ItemBuy The only problem here is that LOCAL.TOTALCOST, as you can see in the wiki, is read-only, changing it to read-write would solve your problem. RE: @Itembuy @Buy @sell @itemsell - rastrero - 01-17-2016 01:30 AM I cant do it. Ur script consume coins twice. As u said I need to set totalcost at 0. I can do it anyway but I got to give money to the char when buy, and take back the extra money on@sell. But this cause so many troubles. Would be nice if this get include in the next build. Local.totalcost RW on sell or buy. and if possible (local.goldtype <baseid>) should be awsome. I dont know anything about visualbasic xD so i cant do myself. RE: @Itembuy @Buy @sell @itemsell - Kanibal - 01-17-2016 02:41 AM (01-16-2016 10:36 PM)rastrero Wrote: hi, Code: [CHARDEF 0401] RE: @Itembuy @Buy @sell @itemsell - rastrero - 01-22-2016 01:04 AM Are u sure if u put it on need, it gonna works? I mean? Do it gonna be the only money a vendor gonna accept for buying or sell? |