Jump to content
  • 0

How to add some item in selling list with npc command


XenaNyx

Question


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  131
  • Reputation:   8
  • Joined:  02/08/12
  • Last Seen:  

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
Link to comment
Share on other sites

10 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  49
  • Reputation:   4
  • Joined:  06/23/12
  • Last Seen:  

hi, mind sharing a screenshot maybe? for clarity purposes  /no1

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  131
  • Reputation:   8
  • Joined:  02/08/12
  • Last Seen:  

hi, mind sharing a screenshot maybe? for clarity purposes  /no1

 

้i re upload already, see again

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  49
  • Reputation:   4
  • Joined:  06/23/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  131
  • Reputation:   8
  • Joined:  02/08/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  49
  • Reputation:   4
  • Joined:  06/23/12
  • Last Seen:  

Hmm, why not try edit it in your db/re/item_trade.txt add this line

501,8,100

hope it helps.  /ok

Edited by vhan48
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  131
  • Reputation:   8
  • Joined:  02/08/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

 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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  131
  • Reputation:   8
  • Joined:  02/08/12
  • Last Seen:  

 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

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

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)

Link to comment
Share on other sites

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.

×
×
  • Create New...