Jump to content

Utility: Junk Seller


Recommended Posts


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  18
  • Reputation:   12
  • Joined:  04/10/20
  • Last Seen:  

Junk Seller


Junk Seller will scan your inventory and sell everything at the same time. 
The list of items will display in a window so the player has a chance to confirm. 
If the player has the skill "Overcharge" it will add zeny to the sale amount accordingly. 

Quote

 

Player Adjustable Settings:

  1. Modify minimum drop-rate of items to auto-sell
  2. Modify item type to auto-sell
    • Usable
    • Equipment
    • Etc
  3. Add / Remove items from personal blacklist

 

Quote

 

Known quirks of the system:

  1. Items that flag up as "This item can only be bought from stores" will never be sold. 
  2. Cards are intentionally ignored as to prevent unwanted accidents.

 

INSTALLATION AND CUSTOMISATION:

1. SQL DB required for personal blacklist, run this command to create the necessary table in your DB:

CREATE TABLE `junkerblacklist` (
  `char_id` varchar(100) DEFAULT NULL,
  `item_name` varchar(100) DEFAULT NULL,
  `item_id` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

2. Add junkseller.txt to whichever directory you store your NPCs, and update scripts_custom.conf. 

3. Modify this array at line 54 to configure your permanent global blacklist. 

setarray @Blacklist[0],

4. Uncomment / Comment the code at lines 541 and 544 if you would like the script to include Cards. 

// Checks if item is an Etc item (3)
// Comment this line and uncomment the line below if you want Cards to be included
if(getiteminfo(.@iid,2) ==  3){

// Comment the above line and uncomment this line if you want Cards to be included
//if(getiteminfo(.@iid,2) ==  3 || getiteminfo(.@iid,2) ==  6){

5. Modify .@showbl to 0 at line 39 if you don't want the message displaying how many items were removed by the blacklist system. 

.@showbl = 1;	// Shows how many items were removed by the blacklist system.

 


 

Edited by PottScilgrim
Updated topic title
Link to comment
Share on other sites

  • 1 year later...

  • Group:  Members
  • Topic Count:  56
  • Topics Per Day:  0.01
  • Content Count:  224
  • Reputation:   4
  • Joined:  02/09/12
  • Last Seen:  

im getting this error
image.png.2cd11fa8131092160bf6db548096af51.png

Edited by simplexjay2
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
Reply to this topic...

×   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...