Stolao Posted June 27, 2013 Group: Developer Topic Count: 48 Topics Per Day: 0.01 Content Count: 1443 Reputation: 344 Joined: 10/17/12 Last Seen: Sunday at 01:58 PM Share Posted June 27, 2013 I wold like to suggest 2 new shop types (similar to cashshop) 1st being itemshop Example: <map name>,<x>,<y>,<facing> itemshop <NPC Name> <sprite id>,<costitem>,<itemid>:<price>{,<itemid>:<price>...} this would work just like a shop but would of course check for item defined in script 2nd would be more of a replacement to cashshop Example: <map name>,<x>,<y>,<facing> pointshop <NPC Name> <sprite id>,<"points">,<itemid>:<price>{,<itemid>:<price>...} this could use any player or account bound point types such as #CashPoints or PvpPoints, as defined in script Now i know how to add these without any source changes I've done it a thousand times, I'm suggesting we eliminate alot of the complexity of those script types. Thoughts? 1 Link to comment Share on other sites More sharing options...
Akinari Posted June 28, 2013 Group: Members Topic Count: 32 Topics Per Day: 0.01 Content Count: 247 Reputation: 207 Joined: 10/23/12 Last Seen: March 2, 2022 Share Posted June 28, 2013 I agree with this. I would also think not only does this make it extremely easy to make a item/point shop, but also decrease processing time as you wouldn't need to go through script engine like you have to now. +1 from me. Link to comment Share on other sites More sharing options...
pr3p Posted June 28, 2013 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 197 Reputation: 13 Joined: 05/14/12 Last Seen: October 29, 2024 Share Posted June 28, 2013 +1 for this, yah its a nice sir Link to comment Share on other sites More sharing options...
Limestone Posted June 28, 2013 Group: Members Topic Count: 155 Topics Per Day: 0.03 Content Count: 647 Reputation: 16 Joined: 11/21/11 Last Seen: December 28, 2022 Share Posted June 28, 2013 +1!!!! Link to comment Share on other sites More sharing options...
Euphy Posted June 28, 2013 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share Posted June 28, 2013 It's not *that* hard to write scripts for this... /hides But on a serious note, I support this too. References: Orcao's setcashpoints: [xantara] [orcao] Ind's custom cash shop: [rathena] [eathena] Link to comment Share on other sites More sharing options...
Stolao Posted June 28, 2013 Group: Developer Topic Count: 48 Topics Per Day: 0.01 Content Count: 1443 Reputation: 344 Joined: 10/17/12 Last Seen: Sunday at 01:58 PM Author Share Posted June 28, 2013 It's not *that* hard to write scripts for this... /hides Not at all, XD Link to comment Share on other sites More sharing options...
Aleos Posted June 28, 2013 Group: Development Manager Topic Count: 56 Topics Per Day: 0.01 Content Count: 732 Reputation: 525 Joined: 12/13/11 Last Seen: June 13, 2024 Share Posted June 28, 2013 I support this as well. Link to comment Share on other sites More sharing options...
Rebel Posted June 29, 2013 Group: Members Topic Count: 68 Topics Per Day: 0.01 Content Count: 436 Reputation: 32 Joined: 02/19/12 Last Seen: May 22, 2024 Share Posted June 29, 2013 Orcao's nor Xantara's setcashpoints is not working as of now in the new revision because of the change in "clif_parse_cashshop_buy"..... Hope it will be have a fix soon. Thanks. Link to comment Share on other sites More sharing options...
Reaper_san Posted August 15, 2013 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 22 Reputation: 4 Joined: 09/08/12 Last Seen: December 15, 2020 Share Posted August 15, 2013 >_< i want this!!anyone working on this? Link to comment Share on other sites More sharing options...
Reaper_san Posted November 5, 2013 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 22 Reputation: 4 Joined: 09/08/12 Last Seen: December 15, 2020 Share Posted November 5, 2013 nothing yet? Link to comment Share on other sites More sharing options...
Akinari Posted November 5, 2013 Group: Members Topic Count: 32 Topics Per Day: 0.01 Content Count: 247 Reputation: 207 Joined: 10/23/12 Last Seen: March 2, 2022 Share Posted November 5, 2013 This modification is in the final stages actually. We were just working on this today and hopefully a release will be done within the week. 1 Link to comment Share on other sites More sharing options...
Stolao Posted November 23, 2013 Group: Developer Topic Count: 48 Topics Per Day: 0.01 Content Count: 1443 Reputation: 344 Joined: 10/17/12 Last Seen: Sunday at 01:58 PM Author Share Posted November 23, 2013 Oh yay <3 Can't wait for it. Link to comment Share on other sites More sharing options...
Akinari Posted November 24, 2013 Group: Members Topic Count: 32 Topics Per Day: 0.01 Content Count: 247 Reputation: 207 Joined: 10/23/12 Last Seen: March 2, 2022 Share Posted November 24, 2013 Sorry for the delay on this. I've had some motivational problems after releasing that statement and I won't be around until likely later next week. That's not to say someone else can't pick it up. Attached the current diff (not sure if it's up to date to GIT). Feel free to check it out. This is courtesy of Aleos by the way. newshops.diff 1 Link to comment Share on other sites More sharing options...
Cydh Posted November 25, 2013 Group: Developer Topic Count: 153 Topics Per Day: 0.03 Content Count: 2285 Reputation: 748 Joined: 06/16/12 Last Seen: February 21 Share Posted November 25, 2013 Sorry for the delay on this. I've had some motivational problems after releasing that statement and I won't be around until likely later next week. That's not to say someone else can't pick it up. Attached the current diff (not sure if it's up to date to GIT). Feel free to check it out. This is courtesy of Aleos by the way. only if ur diff is up-to-date with latest rev, it would be nice Link to comment Share on other sites More sharing options...
Limestone Posted November 26, 2013 Group: Members Topic Count: 155 Topics Per Day: 0.03 Content Count: 647 Reputation: 16 Joined: 11/21/11 Last Seen: December 28, 2022 Share Posted November 26, 2013 i tried to apply this but i got compile warnings, 1>d:\ragnarok server\rathena\src\map\npc.c(1224): error C2143: syntax error : missing ';' before 'type' 1>d:\ragnarok server\rathena\src\map\npc.c(1226): error C2065: 'i_data' : undeclared identifier 1> pc.c 1>d:\ragnarok server\rathena\src\map\npc.c(1226): error C2223: left of '->jname' must point to struct/union Link to comment Share on other sites More sharing options...
Lord Ganja Posted November 28, 2013 Group: Members Topic Count: 141 Topics Per Day: 0.03 Content Count: 444 Reputation: 22 Joined: 06/18/12 Last Seen: August 11, 2018 Share Posted November 28, 2013 i tried to apply this but i got compile warnings, 1>d:\ragnarok server\rathena\src\map\npc.c(1224): error C2143: syntax error : missing ';' before 'type' 1>d:\ragnarok server\rathena\src\map\npc.c(1226): error C2065: 'i_data' : undeclared identifier 1> pc.c 1>d:\ragnarok server\rathena\src\map\npc.c(1226): error C2223: left of '->jname' must point to struct/union I also encountered this error.. any help would be appreciated.. thank you. Link to comment Share on other sites More sharing options...
Cydh Posted November 30, 2013 Group: Developer Topic Count: 153 Topics Per Day: 0.03 Content Count: 2285 Reputation: 748 Joined: 06/16/12 Last Seen: February 21 Share Posted November 30, 2013 I have no idea until try it. --- EDIT ok tested, npc.c, change the line 1223 until 1229 to case ITEMSHOP: { struct item_data *i_data = itemdb_exists(nd->u.shop.itemshop_nameid); sprintf(output, msg_txt(sd,387), i_data->jname); clif_broadcast(&sd->bl, output, strlen(output) + 1, 0x10, SELF); clif_npcbuysell(sd,nd->bl.id); } break; just need curly. hmm, the msg number, it's something **OK, bump!** Thank guys for attention and ur patience. Now, the shops are here 32fd3ee (thank @Aleos & @Akinari too) Here, my ugly test The NPC file prontera,155,158,4 itemshop ItemShop-Test1 123,501,1201:3,1202:5 prontera,155,160,4 itemshop ItemShop-Test2 123,502,2201:3,2202:5 prontera,155,162,4 pointshop PointShop-Test1 123,points,501:1,502:2 prontera,155,164,4 pointshop PointShop-Test2 123,#vippoints,678:5,607:5,608:3 prontera,155,166,4 pointshop PointShop-Test3 123,#votepoints,678:5,607:5,608:3 And the ugly results see attachments Link to comment Share on other sites More sharing options...
Recommended Posts