![]() |
Can't set item's value in game? (or via script) - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: General Help (/Forum-General-Help) +--- Thread: Can't set item's value in game? (or via script) (/Thread-Can-t-set-item-s-value-in-game-or-via-script) Pages: 1 2 |
RE: Can't set item's value in game? (or via script) - RanXerox - 09-03-2012 06:29 AM Maybe you can leverage the @itembuy or @itemsell character triggers... (or @buy and @sell item triggers) RE: Can't set item's value in game? (or via script) - Extreme - 09-03-2012 06:58 AM Yeah thats what I'm planning.. or make a new buy/sell system.. RE: Can't set item's value in game? (or via script) - Rayvolution - 09-03-2012 07:45 AM (09-03-2012 06:29 AM)RanXerox Wrote: Maybe you can leverage the @itembuy or @itemsell character triggers... (or @buy and @sell item triggers) Yeah. I was actually considering that. Although I'm pretty sure that won't change the price displayed when you pull up the buy/sell GUI.. only when the actual sale was made, and IMO, that's too gimmicky. If I have to go that far, I'll write my own buy/sell GUI. Although to be honest, I like the built in GUI so I might just deal with not having variable prices. ![]() RE: Can't set item's value in game? (or via script) - Extreme - 09-03-2012 08:05 AM They could change the value to read/write... would be very nice... I'm thinking to create a new GUI for our server.. the problem is that I'll stay here until thursday.. tomorrow I give you news RE: Can't set item's value in game? (or via script) - Rayvolution - 09-03-2012 08:10 AM Well, I really don't want a new GUI. I'd rather keep the old one. ![]() My ideas for variable prices based on quality isn't worth writing an entire GUI for, we have much more important projects. If thats what it will take just to add one feature, we should invest the time in other features. ![]() It was just a small thing I was tossing around. I just hit a roadblock before I could actually test it. So, if I can't fix it with the original hard coded GUI (Although it works in 51a? odd.. ) we can focus on more important things for now. RE: Can't set item's value in game? (or via script) - Extreme - 09-03-2012 08:23 AM Right RE: Can't set item's value in game? (or via script) - darksun84 - 09-03-2012 09:45 AM is it time to ask for a thing like modprice ![]() RE: Can't set item's value in game? (or via script) - Rayvolution - 09-03-2012 09:56 AM Woo, ModPrice would be wonderful. RE: Can't set item's value in game? (or via script) - Extreme - 09-04-2012 12:11 AM Yeah.. good idea darksun! Hope it is easy to add... Help us Ben !!! ModPrice or ModValue ![]() ![]() ![]() RE: Can't set item's value in game? (or via script) - Extreme - 09-04-2012 05:19 AM Okay, starting the tests, the ARGN1 in @ItemSell isn't the 'amount of selling item'. It's the total amount of the item. In @ItemBuy is okay. I'm planning to check if the item have <TAG.VALUE> If yes, open a gump for each item 'sold' and ask for confirmation of player, showing the 'tag.price' of the item and giving the correct money for the item. Each opened dialog will be invisible while asking for confirmation. If the player close the gump, the item appear again in the backpack. If the player confirm the action, he get the money and the item is sent to npc vendor. If the player disconnect, it will cancel all gumps, so don't apply the purchase. But, I really need the ARGN1 in @ItemSell working to do it better. Of course I can fix it using the total amount and creating buttons to choice how much amount the player want to sell. For now is that. Any idea is welcome. I know its uggly and not shining... I just for tests, I hate code in notebooks... lazy too much... This is just the base, the gump is socks but just to see how it will work. I need know how to close the hardcoded sell gump too. PHP Code: ON=@ITEMSELL |