Jump to content
Murilo BiO'

[Script Command] Sellshop - Type selective sell shop

Recommended Posts

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

Edited by bio

Share this post


Link to post
Share on other sites

can you help me on this error please..

i don't know how to fix this.  :D  :D 

 

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.

Share this post


Link to post
Share on other sites

 

 

can you help me on this error please..

i don't know how to fix this.  :D  :D

 

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  :lol:  :lol:  :lol:

thanks for reminding me the plugins.. 

 

If you get any errors let me know :D

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Edited by bio

Share this post


Link to post
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.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.