XenaNyx Posted July 22, 2013 Group: Members Topic Count: 37 Topics Per Day: 0.01 Content Count: 131 Reputation: 8 Joined: 02/08/12 Last Seen: May 30, 2021 Share Posted July 22, 2013 (edited) i have items in my inventory list 501 502 503 and i want to use npc script to show only 502 and 503 in sell list with callshop npc command possible to write like this? Edited July 22, 2013 by Rozeniiz Quote Link to comment Share on other sites More sharing options...
vhan48 Posted July 22, 2013 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 51 Reputation: 7 Joined: 06/23/12 Last Seen: April 2 Share Posted July 22, 2013 hi, mind sharing a screenshot maybe? for clarity purposes 1 Quote Link to comment Share on other sites More sharing options...
XenaNyx Posted July 22, 2013 Group: Members Topic Count: 37 Topics Per Day: 0.01 Content Count: 131 Reputation: 8 Joined: 02/08/12 Last Seen: May 30, 2021 Author Share Posted July 22, 2013 hi, mind sharing a screenshot maybe? for clarity purposes ้i re upload already, see again Quote Link to comment Share on other sites More sharing options...
vhan48 Posted July 22, 2013 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 51 Reputation: 7 Joined: 06/23/12 Last Seen: April 2 Share Posted July 22, 2013 (edited) that script uses zeny as its currency right? better use this script, its easier to config and simpler. prontera,164,168,4 shop Tool Dealer 807,502:1000,503:5000, map,coordinate-x,coordinate-y,npc poisition,function,shop name,npc view,item:price,item:price, so that's basically the structure of the script, if you want to add another item, just use the format item:price, format and paste it after the comma (,) Edited July 22, 2013 by vhan48 Quote Link to comment Share on other sites More sharing options...
XenaNyx Posted July 22, 2013 Group: Members Topic Count: 37 Topics Per Day: 0.01 Content Count: 131 Reputation: 8 Joined: 02/08/12 Last Seen: May 30, 2021 Author Share Posted July 22, 2013 no, i want to sell my item to npc. i use npc command to open sell window callshop "myshop",2; example i have item 501 502 503 in my inventory (alt+e) -> talk wite npc to callshop open sell window -> in selling list appear item 501 502 503 -> double click item 501 502 503 to sell to npc -> click sell button -> i get zeny my problem in my selling list after i talk with npc want to show item only 502 and 503 not show 501 , possible to check if in my inventory have item 501 not to show in selling list Quote Link to comment Share on other sites More sharing options...
vhan48 Posted July 22, 2013 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 51 Reputation: 7 Joined: 06/23/12 Last Seen: April 2 Share Posted July 22, 2013 (edited) Hmm, why not try edit it in your db/re/item_trade.txt , add this line 501,8,100 hope it helps. Edited July 22, 2013 by vhan48 Quote Link to comment Share on other sites More sharing options...
XenaNyx Posted July 22, 2013 Group: Members Topic Count: 37 Topics Per Day: 0.01 Content Count: 131 Reputation: 8 Joined: 02/08/12 Last Seen: May 30, 2021 Author Share Posted July 22, 2013 thanks for help vhan48. i want to do something after sell item with OnSellItem: command but i stack at selling list window, hope someone understand my problem Quote Link to comment Share on other sites More sharing options...
Capuche Posted July 22, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted July 22, 2013 Like this? The purpose was to exchange a costume in my inventory vs some items setarray .costume_id0, 20000, 20001;// Item ID of the item in my inventory setarray .item_exchangeID, 7539; // item ID gained - you can add more ID <item ID>, <item ID>,... setarray .item_count, 10; // item count gained - ( count of the item /element of array of .item_exchangeID ) 1 Quote Link to comment Share on other sites More sharing options...
Euphy Posted July 22, 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 July 22, 2013 item_trade.txt and source modifications are the only options. The npcshop* commands trigger the labels after the shop window closes, so they can't modify the window itself. EDIT: Or you can try Capuche's script. XD 1 Quote Link to comment Share on other sites More sharing options...
XenaNyx Posted July 22, 2013 Group: Members Topic Count: 37 Topics Per Day: 0.01 Content Count: 131 Reputation: 8 Joined: 02/08/12 Last Seen: May 30, 2021 Author Share Posted July 22, 2013 Like this? The purpose was to exchange a costume in my inventory vs some items setarray .costume_id0, 20000, 20001;// Item ID of the item in my inventory setarray .item_exchangeID, 7539; // item ID gained - you can add more ID <item ID>, <item ID>,... setarray .item_count, 10; // item count gained - ( count of the item /element of array of .item_exchangeID ) not like this, your script it's call buy window but i want call sell window. thanks for answer item_trade.txt and source modifications are the only options. The npcshop* commands trigger the labels after the shop window closes, so they can't modify the window itself. EDIT: Or you can try Capuche's script. XD i think can modify like buy window call itemid from sql. good to know thanks a lot, i will try other way Quote Link to comment Share on other sites More sharing options...
Capuche Posted July 22, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted July 22, 2013 It call a buy window because you can't make a shop of items in your inventory with a sell window with script command. But the result is the same as a sell window in this script : the shop display YOUR items in your inventory and you can trade them vs other thing (like a sell window vs zeny) Quote Link to comment Share on other sites More sharing options...
Question
XenaNyx
i have items in my inventory list
501
502
503
and i want to use npc script to show only 502 and 503 in sell list with callshop npc command
possible to write like this?

Edited by RozeniizLink to comment
Share on other sites
10 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.