-
Content Count
42 -
Joined
-
Last visited
-
Days Won
9
Posts posted by Murilo BiO'
-
-
Do you want to make players pay some fee when talking in #main channel?
I think channel system hasn't any feature like that (have no idea, has it?), so it will need some src edits.
@edit
Oh, I'll make a plugin, It's a very good idea! Thank you @Blaze!
Yes bio to avoid spam #main chat thanks up for this
Here's the plugin:
How to configure it:
// FIXME: make a better way to add fee on channels (directly on channels.conf) const struct { char name[HCS_NAME_LENGTH]; int zeny; int nameid; int amount; } channels_fee[] = { // -- Add channels with fee like the example: {"name", zeny, item id, item count}; {"main" , 1000, 0 , 0}, // #main - 1000z and no item };
Find "channels_fee[]" declaration and add an element just like de example above.
It's already set to charge 1000 zenys when trying to speak on #main channel, so just change if you want to add or remove a channel.
Hope you enjoy it!
-
Is there "4_EP16_SPIEGEL" in ../db/constants.conf and sprites in your data folder?
Have you tried with another sprite? Did it work?
yes sir there is 4_EP16_SPIEGEL inside my constrants.conf
And in your data folder too?
-
In official chemical protections does not remove divest statuses.
-
Do you want to make players pay some fee when talking in #main channel?
I think channel system hasn't any feature like that (have no idea, has it?), so it will need some src edits.@edit
Oh, I'll make a plugin, It's a very good idea! Thank you @Blaze!
-
What do you mean with "make it usable all the time"?
Do you want to enable it all time instead every new hour?
Sorry I'm confuse -
Is there "4_EP16_SPIEGEL" in ../db/constants.conf and sprites in your data folder?
Have you tried with another sprite? Did it work? -
Primeiro NPC
O Hercules já possui um sistema de Túmulos, não entendo o que quer fazer com isso.
Caso queira usar seu próprio sistema tudo bem...
O evento OnTombstone está sendo chamado onde?
Você que fez?
Segundo NPC
O setarray e o set antes do evento OnPCDieEvent, não irão funcionar até que o script seja executado do início (click no npc).
O que você deve fazer é adicionar um evento para que ele configure essas variáveis, se não elas estarão vazias e o npc não fará nada.
antes do setarray, coloque um OnInit:
Assim elas serão definidas assim que o npc for carregado.
Terceiro NPC
O mesmo que o segundo npc, não há nenhum evento à ser disparado, quando os comandos agitstart() ou agitstart2() são utilizados, eles disparam eventos OnAgitInit e OnAgitInit2, antes das condições coloque as labels de evento, OnAgitInit e OnAgitInit2, desse modo:
OnAgitInit: OnAgitInit2: if(agitcheck() == 1 || agitcheck2() == 1){ // code... } end();
Outra observação, sua comparação está incorreta, você está usando | ao invés de ||.
Espero ter ajudado
-
I believe that new inventory is in the new 2016 clients.
Any idea of wich one? I've tested with 2016-02-03, now i'm going to test the 2016-12-28..
-
Hi!
I've seen this feature on some servers (the icons at the bottom), here is an example:But I can't change the old inventory window into these icons even using 2015~2016 clients....
Look:
Does anyone knows how to configure it?
-
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.
-
Oooohh mmmmmyyy.. AAaargghh i forgot to add it on my Plugin.conf
thanks for reminding me the plugins..
If you get any errors let me know
-
-
Can you show your battle.c on line 5851? The whole function will be great
@edit
Core was generated by `./map-server'.
Program terminated with signal 11, Segmentation fault.
#0 battle_reflect_damage (target=0x324bb60, src=0x7f612ac13f4c,
wd=0x7ffe6c7ae200, skill_id=26320) at battle.c:5851This is not the Reflect Damage Skill ID.
Did you changed something in battle.c? -
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:
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
Channel Fee Plugin
in Plugin Releases
Posted
View File
Channel Fee Plugin
With this plugin you be able to set required Zeny and/or Items to players be able to send messages on channels.
The idea came from this post, thank you @blaze.
How to configure channels:
Find 'channels_fee[]' declaration, and add an element just like the example.
If you find any bugs please report them! Hope you enjoy it.