Ind 945 Posted December 24, 2013 (edited) Gift'o! From Hercules, to your server!We wish you happy holidays, and thank you for your support.May the New Year bring you happiness and peace. 2013-12-23c Client Support Thanks to Yommy and Rytech! NPC Market Support A new type of NPC Shop where item availability is limited, for example you can have a vender start with 50x Red Potions and set mechanics for the red potions to be refurbished (for example could be as simple as a OnClock, where Red Potions are refurbished every y hour, or elaborate e.g. be connected with a game quest where players need to help a merchant npc get to the shop in order for it to be resupplied) Available as a NPC Trader subset (details will follow) @costume Oktoberfest NPC Trader A whole different way to set up shops, they're easier to read and flexible to customize. Previous format still supported (in the scenario we drop the previous we'll provide a conversion tool) To begin with, 'trader' is a phony name, its only purpose is to sign the parser that 'this npc will open the shop when clicked'. the trader npc is in fact a 'script' type (and thus script types can create/manipulate trader shops, and open them with the help of openshop()). Normal Zeny Shop moc_ruins,93,53,2 trader Item Collector#moc1 4_M_03,{ OnInit: sellitem Scell; sellitem Monster's_Feed; sellitem Animal's_Skin; sellitem Bill_Of_Birds; } Custom Shop Script has full control over currency, which allows for scripts to use anything, from quests, to items, variables, etca. For Example: prontera,153,152,1 trader TestCustom2 952,{ OnInit: tradertype(NST_CUSTOM); sellitem Red_Potion; end; /* allows currency to be Red_Potion */ OnCountFunds: setcurrency(countitem(Red_Potion)); end; /* receives @price (total cost) */ OnPayFunds: if( countitem(Red_Potion) < @price ) end; delitem Red_Potion,@price; purchaseok(); end; } NPC Market ShopThis is the type I mentioned earlier, where item availability is limited prontera,150,160,6 trader HaiMarket 952,{ OnInit: tradertype(NST_MARKET); sellitem Red_Potion,-1,50; end; OnClock0000://resupplies red potions on midnight OnMyResupply://instead of midnight, a event could trigger HaiMarket::OnMyResupply if( shopcount(Red_Potion) < 50 ) sellitem Red_Potion,-1,50; end; }The quantity data is disaster-safe, I mean it is persistent to @reloadscript and server restarts (If there were 39 Red Potions on sale upon restart/reloadscript, it continues to be 39 instead of resetting back to 50). 7 script commands to help control (documentation for all of them is present in script_commands.txt): openshop,sellitem,stopselling,setcurrency,tradertype,purchaseok,shopcount Trader Design by Yommy Haru jaBote mkbu95 Gepard Emistry Ind Special Thanks To Haru Yommy JaBote Muad_Dib Link'u~! Commit: https://github.com/HerculesWS/Hercules/commit/cf19b26d50ac96111e44c33a80afd1f1ea935cec NPC Trader Samples: https://raw.github.com/herculesWS/Hercules/master/doc/sample/npc_trader_sample.txt (Upcoming) GM Interface for Cash Shop ControlFound that on the new client, support is being worked on (Data thanks to Yommy <3). Edited February 7, 2017 by Ridley 19 Envolvents, hemagx, Ehwaz and 16 others reacted to this Quote Share this post Link to post Share on other sites
Nameless2you 97 Posted December 24, 2013 Woo! Go everybody, Go! Quote Share this post Link to post Share on other sites
Samuel 83 Posted December 24, 2013 What a great Christmas gift! Good job guys! Working overtime on holidays? LMAO Merry Christmas everyone! Quote Share this post Link to post Share on other sites
Mhalicot 392 Posted December 24, 2013 ^ Thanks Awesome Hercules Dev Team. Quote Share this post Link to post Share on other sites
hemagx 69 Posted December 24, 2013 You rock guys thanks to everyone help in this commit Quote Share this post Link to post Share on other sites
Jedzkie 58 Posted December 24, 2013 Hallelujah! Quote Share this post Link to post Share on other sites
ossi0110 200 Posted December 24, 2013 awasome release just tested the new shops pretty nice , but need to setup the new client to test the Market npc it dont works on 2013-08-07 Quote Share this post Link to post Share on other sites
Thunderbolt 3 Posted December 24, 2013 (edited) new shop Awesome, but can not sell item it only buy, pls fix Edited December 24, 2013 by Thunderbolt Quote Share this post Link to post Share on other sites
Judas 100 Posted December 24, 2013 awesome! this is a great present =D Quote Share this post Link to post Share on other sites
mleo1 36 Posted December 24, 2013 How does it look on client when shop has limited item quantity?How does it look on shop when item qty is depleted? Quote Share this post Link to post Share on other sites
bleachftl 0 Posted December 24, 2013 I guess some bug in there. i was checking new shop npc. and found that shops open directly without it asking buy or sell. so checked most of npc without sell option. so what to do if someone wants to use sell. Quote Share this post Link to post Share on other sites
Jedzkie 58 Posted December 24, 2013 I guess some bug in there. i was checking new shop npc. and found that shops open directly without it asking buy or sell. so checked most of npc without sell option. so what to do if someone wants to use sell. confirmed too.. this is not the official way, the older system was official way. Quote Share this post Link to post Share on other sites
Envolvents 7 Posted December 24, 2013 awesome, very nice! Quote Share this post Link to post Share on other sites
Mystery 594 Posted December 24, 2013 Awesome release guys :3 Quote Share this post Link to post Share on other sites
Thunderbolt 3 Posted December 24, 2013 I <3 this patch. Quote Share this post Link to post Share on other sites
Ehwaz 8 Posted December 25, 2013 I love NPC Market Shop Quote Share this post Link to post Share on other sites
Portalcake 0 Posted December 25, 2013 Lovable <3 But where I can get the new EXE (2013-12-23)? Quote Share this post Link to post Share on other sites
Mhalicot 392 Posted December 25, 2013 ^ 2013-12-23c kRO Client, Merry Christmas <3 Quote Share this post Link to post Share on other sites
Portalcake 0 Posted December 25, 2013 Mhalicot, on 25 Dec 2013 - 12:29, said: ^ 2013-12-23c kRO Client, Merry Christmas <3 Thanks <3 Quote Share this post Link to post Share on other sites
Jedzkie 58 Posted December 26, 2013 (edited) is the market trader working? it seems to be unclickable. Edited December 26, 2013 by Frost Quote Share this post Link to post Share on other sites
ossi0110 200 Posted December 26, 2013 (edited) is the market trader working? it seems to be unclickable. you only can click the market trader when you use the 2013-12-23 ragexe client., for all clients below this date this NPC is unclickable Edited December 26, 2013 by ossi0110 Quote Share this post Link to post Share on other sites
jaBote 438 Posted December 31, 2013 For these people that say they can't get Oktoberfest job working since it's not in their current kRO installation, here you go: http://herc.ws/board/files/file/90-oktoberfest-act-and-spr-files/ Quote Share this post Link to post Share on other sites