Outlander Posted October 1, 2012 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 3 Reputation: 0 Joined: 01/20/12 Last Seen: October 25, 2012 Share Posted October 1, 2012 Is there a way to make NPCs use the vending skill to call shops? Instead of clicking on the NPC you would have to click on the shop balloon, like if you were buying from another player. Is this possible? Quote Link to comment Share on other sites More sharing options...
0 Outlander Posted October 1, 2012 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 3 Reputation: 0 Joined: 01/20/12 Last Seen: October 25, 2012 Author Share Posted October 1, 2012 iirc @Epoque posted a src mod like this in eA yep http://www.eathena.ws/board/index.php?showtopic=275852 but the download link is broken =/ Quote Link to comment Share on other sites More sharing options...
0 Flexity Posted June 11, 2021 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 2 Reputation: 0 Joined: 11/26/20 Last Seen: December 18, 2024 Share Posted June 11, 2021 (edited) Just like this. Someone selling it toohttps://rathena.org/board/topic/116439-showcase-npc-buyingstore/ Edited June 11, 2021 by Flexity Quote Link to comment Share on other sites More sharing options...
EvilPuncker Posted October 1, 2012 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 713 Reputation: 71 Joined: 11/08/11 Last Seen: December 25, 2024 Share Posted October 1, 2012 iirc @Epoque posted a src mod like this in eA Quote Link to comment Share on other sites More sharing options...
EvilPuncker Posted October 1, 2012 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 713 Reputation: 71 Joined: 11/08/11 Last Seen: December 25, 2024 Share Posted October 1, 2012 iirc @Epoque posted a src mod like this in eA yep http://www.eathena.w...howtopic=275852 but the download link is broken =/ you are such a lucky boy, I got it in my random RO related files http://pastebin.com/dH1qkgdB Quote Link to comment Share on other sites More sharing options...
Outlander Posted October 1, 2012 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 3 Reputation: 0 Joined: 01/20/12 Last Seen: October 25, 2012 Author Share Posted October 1, 2012 (edited) iirc @Epoque posted a src mod like this in eA yep http://www.eathena.w...howtopic=275852 but the download link is broken =/ you are such a lucky boy, I got it in my random RO related files http://pastebin.com/dH1qkgdB oh boy thanks! I did the changes manually, uploaded an updated diff if anyone else is interested. Tested on r16804 now im trying to make it work with clif_showvendingboard. calling it on script vending_open doesn't seem to work, if you get too far away the board disappears. BUILDIN_FUNC(vending_open) { struct npc_data* nd; struct map_session_data* sd = script_rid2sd(st); nullpo_retr(0, sd); nd = script_hasdata(st, 2) ? npc_name2id(script_getstr(st, 2)) : map_id2nd(st->oid); if( nd == NULL ) { ShowWarning("script:vending_open: no script attached\n"); return 0; } clif_vending_script(sd, nd); clif_showvendingboard(&nd->bl,"hey",0); return 0; } I think the vending state on npc_data needs to be checked everytime someone is in view range, but dont know where. D= vending.patch Edited October 1, 2012 by Outlander Quote Link to comment Share on other sites More sharing options...
PewN Posted October 2, 2012 Group: Members Topic Count: 209 Topics Per Day: 0.04 Content Count: 892 Reputation: 27 Joined: 12/09/11 Last Seen: April 16, 2016 Share Posted October 2, 2012 iirc @Epoque posted a src mod like this in eA yep http://www.eathena.w...howtopic=275852 but the download link is broken =/ you are such a lucky boy, I got it in my random RO related files http://pastebin.com/dH1qkgdB is this working on latest RA Version? and how can i make a player like npc? Quote Link to comment Share on other sites More sharing options...
Question
Outlander
Is there a way to make NPCs use the vending skill to call shops?
Instead of clicking on the NPC you would have to click on the shop balloon, like if you were buying from another player.
Is this possible?
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.