[Script Command] Sellshop - Type selective sell shop

Murilo BiO'

New member
Messages
42
Points
0
Age
29
Location
Brazil
IRC Nickname
Murilo_BiO
Github
Murilo-BiO
Emulator
Name: Sellshop

Version: 1.0.2

Link: donwload

9ea7cb4fc60340b493e6c37d2e5ec256.png


This is a new script command, looks like 'callshop' when this one is used to open the sell window, but with this plugin you can choose what type of items will be abble to be sold.

It's useful for shop based scripts, you won't need to filter all sold items for the type you want.

Another interesting thing about this plugin is the 'Overcharge' parameter, which can show/remove the overcharged value from Overcharge skill (merchants) and just show the original value.

Usage:

sellshop <"shop_name">,<OverCharge>{,<Healing>,<Consumable>,<Etc>,<Weapon>,<Armor>,<Card>,<PetEgg>,<PetArmor>,<Ammo>,<DelayConsume>,<Cash>}
"shop": shop name (same as callshop)

Overcharge: turns on(1) or off(0) the display of overcharged price on sell window.

Healing,....,Cash: Item types. They are optional and all enabled by default, to disable use 0 and to enable use 1

If only the 2 required parameters are set, all types will be enabled and will be the same of callshop,2;

e.g.

- shop CardBuyerShop FAKE_NPC,512:-1

prontera,181,215,3 script Card Buyer 2_VENDING_MACHINE1,{
sellshop "CardBuyerShop",0,0,0,0,0,0,1,0,0,0,0,0;
}


In this case, the CardBuyerShop will be called without showing the overcharged price and only IT_CARD type items will be on the list.

The settings to the Item Types are:

IT_HEALING -> disabled (0)
IT_USABLE -> disabled (0)
IT_ETC -> disabled (0)
IT_WEAPON -> disabled (0)
IT_ARMOR -> disabled (0)
IT_CARD -> enabled (1)
IT_PETEGG -> disabled (0)
IT_PETARMOR -> disabled (0)
IT_AMMO -> disabled (0)
IT_DELAYCONSUME -> disabled (0)
IT_CASH -> disabled (0)

This is my first contribution to Hercules, I hope that can be useful.

Observation: The Overcharge skill still work, so if you disable the overcharged price and sell something the zeny you will receive the overcharged price.

@edit

     1.0.1 - Removed some code related to my server (I forgot this)

     1.0.2 - Fixed conditions to filter correctly

 
Last edited by a moderator:
Quazi said:
can you help me on this error please..

i don't know how to fix this. 
default_biggrin.png
 
default_biggrin.png
 
This is a custom script command, so Hercules Script Checker can't handle it.

Check how to install plugins Here if you use windows or Here for others.

 
Quazi said:
Quazi said:
can you help me on this error please..

i don't know how to fix this. 
default_biggrin.png
 
default_biggrin.png
This is a custom script command, so Hercules Script Checker can't handle it.

Check how to install plugins Here if you use windows or Here for others.
Oooohh mmmmmyyy.. AAaargghh i forgot to add it on my Plugin.conf 
default_laugh.png
 
default_laugh.png
 
default_laugh.png


thanks for reminding me the plugins.. 
If you get any errors let me know
default_biggrin.png


 
Wow very interesting. Sorry I don't think I'm quite understand. This lets you filter items in the Sell Items screen?

 
Wow very interesting. Sorry I don't think I'm quite understand. This lets you filter items in the Sell Items screen?
Yes, selling screen will only show the items that have the types you set.

That's helpful when using with OnSellItem: event, instead of you filter every sold item, the selling window does it for you.

Edit:

Like a shop based card remover, you need only Armors and Weapons to check, so, disable the rest types and when you open the selling secreen, even if you're full of misc items, healing items or pet eggs, it will show ONLY Armors(armors, shields, shoes, etc) and Weapons..

It gives you a clear vision of what you can sell to each NPC.

 
Last edited by a moderator:
Back
Top