Jump to content
  • 0

How to add some item in selling list with npc command


Question

Posted (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?

 

 

post-2192-0-36061600-1374483340_thumb.jpg

Edited by Rozeniiz

10 answers to this question

Recommended Posts

Posted

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

  • Upvote 1
Posted (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 by vhan48
Posted

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

Posted

 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 )
  • Upvote 1
Posted

 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.

 

/kis  good to know 

 

thanks a lot, i will try other way

Posted

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)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...