Murilo BiO'
New member
Name: Sellshop
Version: 1.0.2
Link: donwload
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:
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
Version: 1.0.2
Link: donwload
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:
"shop": shop name (same as callshop)sellshop <"shop_name">,<OverCharge>{,<Healing>,<Consumable>,<Etc>,<Weapon>,<Armor>,<Card>,<PetEgg>,<PetArmor>,<Ammo>,<DelayConsume>,<Cash>}
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: