Search the Community
Showing results for tags 'pk'.
Found 4 results
-
Hello, I'm currently trying to add a @pk plugin to my server. I'm following this guide to add plugins made for linux: http://herc.ws/wiki/Building_HPM_Plugin_for_gcc Let me run you through what I have done: 1st I went to my folder "Hercules/conf/" used nano to open plugins.conf and edited and added the following: plugins_list: [ /* Enable HPMHooking when plugins in use rely on Hooking */ "HPMHooking", //"db2sql", //"sample", //"other", "@pk", ] 2nd step was to go to "Hercules/src/plugins/" used nano to create @pk.c and add this code: https://github.com/dastgirp/HPM-Plugins/blob/master/src/plugins/%40pk.c The only thing I modified from the @pk.c code was the delay timer: int config_delay = 5; // After turn pk on/off, how many seconds delay before the player allow to pk on/off ? I changed it to 60 seconds: int config_delay = 60; // After turn pk on/off, how many seconds delay before the player allow to pk on/off ? I'm not exactly sure if I should do any other modification apart from this one. Right after this I started the server and the moment it started this error appeared: [Status]: HPM: Loaded plugin 'HPMHooking' (0.2) built with HPMHooking support. [Status]: HPM: Loaded plugin 'HPMHooking' (0.2) built with HPMHooking support. [Fatal Error]: HPM:plugin_load: failed to load 'plugins/@pk.so' (error: plugins/@pk.so: cannot open shared object file: No such file or directory)! [Fatal Error]: HPM:plugin_load: failed to load 'plugins/@pk.so' (error: plugins/@pk.so: cannot open shared object file: No such file or directory)! [Status]: HPM: Loaded plugin 'HPMHooking' (0.2) built with HPMHooking support. [Fatal Error]: HPM:plugin_load: failed to load 'plugins/@pk.so' (error: plugins/@pk.so: cannot open shared object file: No such file or directory)! So from what I understood from the fatal error message it says it can not find the "plugins/@pk.so" because theres not such file or directory. So I procceded to create that file in the directory (Hercules/src/plugins/) I used nano to create "@pk.so" add added the code again https://github.com/dastgirp/HPM-Plugins/blob/master/src/plugins/%40pk.c Set the delay timer to 60 and nothing else. So now, my "Hercules/src/plugins/" folder is like this /Hercules/src/plugins# ls constdb2doc.c HPMHooking Makefile.in sample.c db2sql.c HPMHooking.c mapcache.c script_mapquit.c dbghelpplug.c HPMHooking.h @pk.c generate-translations.c Makefile @pk.so I proceeded to start the server again, to see what error message would show now this came showed up: [Status]: HPM: Loaded plugin 'HPMHooking' (0.2) built with HPMHooking support. [Fatal Error]: HPM:plugin_load: failed to load 'plugins/@pk.so' (error: plugins/@pk.so: cannot open shared object file: No such file or directory)! [Fatal Error]: HPM:plugin_load: failed to load 'plugins/@pk.so' (error: plugins/@pk.so: cannot open shared object file: No such file or directory)! [Info]: Server uses 'select' as event dispatcher [Info]: Server supports up to '1024' concurrent connections. [Status]: HPM: Loaded plugin 'HPMHooking' (0.2) built with HPMHooking support. [Fatal Error]: HPM:plugin_load: failed to load 'plugins/@pk.so' (error: plugins/@pk.so: cannot open shared object file: No such file or directory)! It still says that there is not such file or directory. I'm out of ideas so I ask for help. Thank you for your time.
-
Galera tava jogando um ragnarok expirado em sword art online, mas achei muito paytowiin, eu sempre informava a staff de um equilibrio melhor, até eu ver que eles tavam mechendo até com a fé dos players no game, uma boa rapaziada saiu do serve por tal razão, então resolvir criar um, mesmo não entendendo muito, organizei alguns sistemas já em mente, sobre como vai funcionar meus sistema de penalidade de morte, e to criando os mapas e algumas spriters por enquanto, mas gostaria de saber como crio um sistema que me permita usar uma sprite de cristal em cima da cabeça pra players normais, outra pra quem ja matou uma vez e outra pra quem já matou duas vezes no sistema pk/pvpmode nos mapas de up.... link my server discord: Não é permitido
-
Simple, a custom command that enable the player to toggle the pk ON and OFF. NOTE: this is for the server with a PK Mode set as 1 ( @ misc.conf) // PK Server Mode. // Turns entire server pvp(excluding towns). // Experience loss is doubled if killed by another player. // When players hunt monsters over 20 levels higher, they will receive 15% // additional exp., and 25% chance of receiving more items. // There is a nopvp.txt for setting up maps not to have pk on in this mode. // Novices cannot be attacked and cannot attack. // Normal pvp counter and rank display are disabled as well. // Note: If pk_mode is set to 2 instead of 1, players will receive a // manner penalty of 5 each time they kill another player (see manner_system // config to adjust how this will affect players) pk_mode: 1
-
Hello, How to alter @killable to only players with the command active can kill themselves? In src/map/battle.c: if( sd->state.killable ) { state |= BCT_ENEMY; // Everything can kill it strip_enemy = 0; } What needs to change to work? Grateful, char0.