Jump to content

Kichi

Members
  • Content Count

    97
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Kichi

  1. Login to mysql, check login table if it have account with account_id 1, user: ryan, pass: cool and gender as S the image strip, it showed i do have the ryan and cool as server account for communication yes this is configuration from wiki hercules, this config work for rathena and doesn't work for hercules if we change to char_ip: 23.228.xxx.xxxmap_ip: 23.228.xxx.xxxlogin_ip: 23.228..xxx.xxxchar_ip: 23.228..xxx.xxx char-server will fail connect to login [Info]: Attempt to connect to login-server...[Status]: Connecting to 23.228.xxx.xxx:6900[Error]: Can not connect to login-server.[Error]: The server communication passwords (default s1/p1) are probably invalid.[Error]: Also, please make sure your login db has the correct communication username/passwords and the gender of the account is S.[Error]: The communication passwords are set in /conf/map-server.conf and /conf/char-server.conf[Warning]: Connection to Login Server lost. looks like the login server IP is 127.0.0.1, maybe if char looking for 23.228.xxx.xxx, he looking for non existant server (login-server) CMIIW
  2. this server already test on my PC and work fine the problem come on VPS i even change the folder name to our old emulator, still didn't work
  3. or would you like to configure a server based on IP 23.228.xxx.xxx then post here
  4. i use same config on my PC and everything is oke i think the login-server is only on localhost, thats why when char connect to IP he can't find login. the setting is correct on dedicated server :/ was is packet issue or something? @_@ confused enough
  5. Helo guys, i got problem when installing Hercules Our server: VPS CentOS mmo.h #ifndef PACKETVER #define PACKETVER 20120410// #define PACKETVER 20130807#endif // PACKETVER//Uncomment the following line if your client is ragexeRE instead of ragexe (required because of conflicting packets in ragexe vs ragexeRE).#define ENABLE_PACKETVER_RE#ifdef ENABLE_PACKETVER_RE #define PACKETVER_RE #undef ENABLE_PACKETVER_RE#endif // DISABLE_PACKETVER_RE this is my conf map-server.conf // Character Server IP// The map server connects to the character server using this IP address.// NOTE: This is useful when you are running behind a firewall or are on// a machine with multiple interfaces.//char_ip: 23.228.xxx.xxxchar_ip: 127.0.0.1// The map server listens on the interface with this IP address.// NOTE: This allows you to run multiple servers on multiple interfaces// while using the same ports for each server.//bind_ip: 127.0.0.1// Character Server Portchar_port: 6121// Map Server IP// The IP address which clients will use to connect.// Set this to what your server's public IP address is.map_ip: 23.228.xxx.xxx//map_ip: 127.0.0.1// Map Server Portmap_port: 5121 char-server.conf // Login Server IP// The character server connects to the login server using this IP address.// NOTE: This is useful when you are running behind a firewall or are on// a machine with multiple interfaces.login_ip: 127.0.0.1//login_ip: 23.228.xxx.xxx// The character server listens on the interface with this IP address.// NOTE: This allows you to run multiple servers on multiple interfaces// while using the same ports for each server.//bind_ip: 127.0.0.1// Login Server Portlogin_port: 6900// Character Server IP// The IP address which clients will use to connect.// Set this to what your server's public IP address is.char_ip: 23.228..xxx.xxx//char_ip: 127.0.0.1 Everything goes correct but after login -> select server -> "Rejected From Server" looks like i can't connect to char-server, no error message if we change the login_ip (char-server) and char_ip (map-server) to IP public this was happened [Info]: Attempt to connect to login-server...[Status]: Connecting to 23.228.xxx.xxx:6900[Error]: Can not connect to login-server.[Error]: The server communication passwords (default s1/p1) are probably invalid.[Error]: Also, please make sure your login db has the correct communication username/passwords and the gender of the account is S.[Error]: The communication passwords are set in /conf/map-server.conf and /conf/char-server.conf[Warning]: Connection to Login Server lost. -------------------------------------------------------------------------------------------------- it only happends on hercules, with same setting we can run rA server does hercules need additional config? Thank You Tried on PC with local IP, Work fine, i can login till map --- SOLVED --- after the VPS guy give us new IP, it work
  6. Nemo can i request about extend the heal digit? Thanks before
  7. yep tested and i just focus on official way that is (Player allowed to do max 2 cast skill) every suggestion for optimization are welcome Thank you
  8. Thanks for the information yes it will affect on normal player if they spam the skill by (WPE) Still it keep the original feature that players still allowed to do double cast (RO without WPE) Like this: WPE - Skill 1 - Skill 2 - Skill 3 - Skill 4 - till you ran out of SP Without WPE: - Skill 1 - Skill 2 till the animation end - Skill 3 - Skill 4 till the animation end Anyway thank you very much for the information CMIIW
  9. Your welcome bro Please write any suggestions or information about skills that has a chance to be spamed
  10. No Delay Grf Protection NDG Protection is a src modification to make sure NDG,speed hack, WPE Users still follow the rules. History: This is a simple code, which we have made since long to minimize the NDG User. The first way to solve NDG, we add a cooldown for skills that dosn't has a fixed cooldown (Sonic Blow, Cross Impact, etc). But the player doesn't allowed to do double cast. Finaly we made this code that minimize the NDG users, but still keep the original feature that is double cast for some skills (Sonic Blow, Cross Impact, etc). Implementation: Download 2 files above Use manual way to diff (first file) the core and recompile. Copy Paste the second file to "conf/import/" And you will see the effect Feature: -The user still able to use double SB / CI / etc. -You may switch on and off. -Very simple Any comments, suggestions, even critism in order to make this feature better is opened. Thank You. Note: I've been testing NoDelayGrf on augst 2013 and doesn't work, i've tested this using WPE i've got the numbers from comparing with and without *cheat DOWNLOAD src: Herc - NDG Protection.diff import/ battle_conf.txt
  11. Euphy's Woe Control are compatible with hercules also avaiable inside hercules npc/custom/
  12. Kichi

    Weapon Aura

    is that heargear or weapon sprite?
  13. Hi friend, i want to request about 9digit damage & heal for 2013 client Would you like to share please Thank you
  14. idk the purpose of that code (mail restriction) the mail read are you able to use @mail , and your current map *mapflag* is Town And the mapflag Town isn't by default loaded, so we need to load it first. For me, i delete the condition check.
  15. Before i found that "Memorial Wave Map exist on map index" Then i search about it and found this link I hope Hercules Apply monster Control because thats related to official Memorial Dungeon Thank You
  16. hi guys I want to request SQL query to move safely from rAthena to Hercules. This is my query, but still need for items and i don't need the logs query CREATE TABLE IF NOT EXISTS `sql_updates` ( `timestamp` int(11) unsigned NOT NULL, `ignored` enum('Yes','No') NOT NULL DEFAULT 'No', PRIMARY KEY (`timestamp`)) ENGINE=MyISAM;-- Existent updates to enterINSERT INTO `sql_updates` (`timestamp`) VALUES (1360858500);INSERT INTO `sql_updates` (`timestamp`) VALUES (1360951560);INSERT INTO `sql_updates` (`timestamp`) VALUES (1362445531);INSERT INTO `sql_updates` (`timestamp`) VALUES (1362528000);INSERT INTO `sql_updates` (`timestamp`) VALUES (1362794218);INSERT INTO `sql_updates` (`timestamp`) VALUES (1364409316);INSERT INTO `sql_updates` (`timestamp`) VALUES (1366075474);INSERT INTO `sql_updates` (`timestamp`) VALUES (1366078541);INSERT INTO `sql_updates` (`timestamp`) VALUES (1381354728);INSERT INTO `sql_updates` (`timestamp`) VALUES (1381423003);INSERT INTO `sql_updates` (`timestamp`) VALUES (1382892428);INSERT INTO `sql_updates` (`timestamp`) VALUES (1383167577);CREATE TABLE IF NOT EXISTS `account_data` ( `account_id` int(11) unsigned NOT NULL default '0', `bank_vault` int(11) unsigned NOT NULL default '0', PRIMARY KEY (`account_id`)) ENGINE=MyISAM;ALTER TABLE `inventory` MODIFY `equip` int(11) unsigned NOT NULL default '0';ALTER TABLE `storage` MODIFY `equip` int(11) unsigned NOT NULL default '0';ALTER TABLE `cart_inventory` MODIFY `equip` int(11) unsigned NOT NULL default '0';ALTER TABLE `guild_storage` MODIFY `equip` int(11) unsigned NOT NULL default '0';ALTER TABLE `char` ADD `font` TINYINT( 3 ) UNSIGNED NOT NULL DEFAULT '0'; Thank You
  17. Helo guys i tried to convert my mod to HPM, i got error when compile, I certainly write in wrong format This is the MOD --- a/src/map/battleground.c+++ b/src/map/battleground.c@@ -187,6 +187,21 @@ int bg_create(unsigned short mapindex, short rx, short ry, const char *ev, const return bgd->bg_id; } +int bg_create2( unsigned short bg_id, unsigned short mapindex, short rx, short ry, const char *ev, const char *dev ) {+ struct battleground_data *bgd = bg->team_search(bg_id);+ if ( bgd ) return 0;+ CREATE(bgd, struct battleground_data, 1);+ bgd->bg_id = bg_id;+ bgd->count = 0;+ bgd->mapindex = mapindex;+ bgd->x = rx;+ bgd->y = ry;+ safestrncpy(bgd->logout_event, ev, sizeof(bgd->logout_event));+ safestrncpy(bgd->die_event, dev, sizeof(bgd->die_event));+ memset(&bgd->members, 0, sizeof(bgd->members));+ idb_put(bg->team_db, bg_id, bgd);+ return bgd->bg_id;+} int bg_team_get_id(struct block_list *bl) { nullpo_ret(bl); switch( bl->type ) {@@ -787,7 +802,7 @@ void battleground_defaults(void) { bg->arenas = 0; /* */ bg->team_db = NULL;- bg->team_counter = 0;+ bg->team_counter = 1000; /* */ bg->init = do_init_battleground; bg->final = do_final_battleground;@@ -813,6 +828,7 @@ void battleground_defaults(void) { bg->team_leave = bg_team_leave; bg->member_respawn = bg_member_respawn; bg->create = bg_create;+ bg->create2 = bg_create2; bg->team_get_id = bg_team_get_id; bg->send_message = bg_send_message; bg->send_xy_timer_sub = bg_send_xy_timer_sub;diff --git a/src/map/battleground.h b/src/map/battleground.hindex a5e5409..3236fd3 100644--- a/src/map/battleground.h+++ b/src/map/battleground.h@@ -102,7 +102,8 @@ struct battleground_interface { int (*team_get_id) (struct block_list *bl); int (*send_message) (struct map_session_data *sd, const char *mes, int len); int (*send_xy_timer_sub) (DBKey key, DBData *data, va_list ap);- int (*send_xy_timer) (int tid, int64 tick, int id, intptr_t data); + int (*send_xy_timer) (int tid, int64 tick, int id, intptr_t data);+ int (*create2) ( unsigned short bg_id, unsigned short mapindex, short rx, short ry, const char *ev, const char *dev ); /* */ void (*config_read) (void); };diff --git a/src/map/script.c b/src/map/script.cindex d51f27c..ff21ec7 100644--- a/src/map/script.c+++ b/src/map/script.c@@ -15851,7 +15851,52 @@ int axtoi(const char *hexStg) return true; }-+// createbgid <battleground ID>, <respawn map>, <respawn x>, <respawn y>, <On Quit event>, <On Death event>;+BUILDIN(createbgid) {+ if ( bg->create2( script_getnum(st,2), mapindex_name2id( script_getstr(st,3) ), script_getnum(st,4), script_getnum(st,5), script_getstr(st,6), script_getstr(st,7) ) > 0 )+ script_pushint( st, script_getnum(st,2) );+ else+ script_pushint( st, 0 );+ return 0;+}+ +// setbgid <battleground ID> {, <player name> };+BUILDIN(setbgid) {+ unsigned short bg_id = script_getnum(st,2);+ struct battleground_data *bgd = bg->team_search(bg_id);+ TBL_PC* sd;+ if ( bg_id < 0 || bg_id > 1000 ) {+ script_pushint( st, -4 );+ return 0;+ }+ if ( script_hasdata(st,3) ) + sd = map->nick2sd( script_getstr(st,3) );+ else+ sd = script_rid2sd(st);+ if ( sd == NULL ) {+ script_pushint( st, -3 );+ return 0;+ }+ if ( bg_id > 0 && bg == NULL ) {+ script_pushint( st, -1 );+ return 0;+ }+ if ( sd->bg_id == bg_id && bg_id != 0 ) {+ script_pushint( st, -5 );+ return 0;+ }+ if ( sd->bg_id )+ bg->team_leave(sd,0);+ if ( bg_id == 0 ) {+ script_pushint( st, 0 );+ return 0;+ }+ if ( bg->team_join( bg_id, sd ) == 0 )+ script_pushint( st, -2 );+ else+ script_pushint( st, bg_id );+ return 0;+} /*========================================== * Instancing Script Commands *------------------------------------------*/@@ -18061,7 +18106,9 @@ void script_parse_builtin(void) { BUILDIN_DEF(bg_get_data,"ii"), BUILDIN_DEF(bg_getareausers,"isiiii"), BUILDIN_DEF(bg_updatescore,"sii"),- + //custom bg+ BUILDIN_DEF(createbgid,"isiiss"),+ BUILDIN_DEF(setbgid,"i?"), // Instancing BUILDIN_DEF(instance_create,"si?"), BUILDIN_DEF(instance_destroy,"?"), and This is the HPM // Copyright (c) Hercules Dev Team, licensed under GNU GPL.// See the LICENSE file// Sample Hercules Plugin#include <stdio.h>#include <stdlib.h>#include <string.h>#include "../common/HPMi.h"#include "../common/mmo.h"#include "../common/mapindex.h"#include "../common/mapindex.c"#include "../map/script.h"#include "../map/pc.h"#include "../map/battle.h"#include "../map/status.h"#include "../map/map.h"#include "../map/battleground.h"HPExport struct hplugin_info pinfo = { "BG2",// Plugin name SERVER_TYPE_MAP,// Which server types this plugin works with? "1.0", // Plugin version HPM_VERSION, // HPM Version (don't change, macro is automatically updated)};static int bg_create2( unsigned short bg_id, unsigned short mapindex, short rx, short ry, const char *ev, const char *dev ) { struct battleground_data *bgd = bg->team_search(bg_id); if ( bgd ) return 0; CREATE(bgd, struct battleground_data, 1); bgd->bg_id = bg_id; bgd->count = 0; bgd->mapindex = mapindex; bgd->x = rx; bgd->y = ry; safestrncpy(bgd->logout_event, ev, sizeof(bgd->logout_event)); safestrncpy(bgd->die_event, dev, sizeof(bgd->die_event)); memset(&bgd->members, 0, sizeof(bgd->members)); idb_put(bg->team_db, bg_id, bgd); return bgd->bg_id;}/* to check for the bonus *//* createbgid <battleground ID>, <respawn map>, <respawn x>, <respawn y>, <On Quit event>, <On Death event>;*/BUILDIN(createbgid) { int mapindex; mapindex = mapindex_name2id( script_getstr(st,3) ); if ( bg->create2( script_getnum(st,2), mapindex, script_getnum(st,4), script_getnum(st,5), script_getstr(st,6), script_getstr(st,7) ) > 0 ) script_pushint( st, script_getnum(st,2) ); else script_pushint( st, 0 ); return 0;} // setbgid <battleground ID> {, <player name> };BUILDIN(setbgid) { unsigned short bg_id = script_getnum(st,2); struct battleground_data *bgd = bg->team_search(bg_id); TBL_PC* sd; if ( bg_id < 0 || bg_id > 1000 ) { script_pushint( st, -4 ); return 0; } if ( script_hasdata(st,3) ) sd = map->nick2sd( script_getstr(st,3) ); else sd = script->rid2sd(st); if ( sd == NULL ) { script_pushint( st, -3 ); return 0; } if ( bg_id > 0 && bg == NULL ) { script_pushint( st, -1 ); return 0; } if ( sd->bg_id == bg_id && bg_id != 0 ) { script_pushint( st, -5 ); return 0; } if ( sd->bg_id ) bg->team_leave(sd,0); if ( bg_id == 0 ) { script_pushint( st, 0 ); return 0; } if ( bg->team_join( bg_id, sd ) == 0 ) script_pushint( st, -2 ); else script_pushint( st, bg_id ); return 0;}/*void battleground_defaults(void) { bg->team_counter = 1000; bg->create2 = bg_create2;}*/HPExport void plugin_init (void){ map = GET_SYMBOL("map"); script = GET_SYMBOL("script"); bg = GET_SYMBOL("battleground"); skill = GET_SYMBOL("skill"); pc = GET_SYMBOL("pc"); battle = GET_SYMBOL("battle"); if( HPMi->addScript != NULL ) {//link our 'sample' script command HPMi->addScript("createbgid","isiiss",BUILDIN_A(createbgid)); HPMi->addScript("setbgid","i?",BUILDIN_A(setbgid)); }} im new using HPM What i've tried apply battleground.c and battleground.h and script.c in HPM NO WORK apply "void battleground_defaults" to core and leave other in HPM NO WORK apply mod to battleground.c and battleground.h and leave script.c in HPM NO WORK including mapindex.c < NO ERROR, but the map CRASH and much other NO WORK ---- INFO---- This mod work when applied directly to core ---- EDIT ------- Update Plugin and Mod
  18. Kichi

    New Instance System

    wow thank you i learned much
  19. Kichi

    New Instance System

    and one more is hercules support instance to map without "@" symbol?
  20. Kichi

    New Instance System

    owh i didn'y noticed sorry but the db? db/re/instance_db.txt // Instance Database//// Structure of Database:// ID,Name,LimitTime,EnterMap,EnterX,EnterY,Map1,Map2,Map3,Map4,Map5,Map6,Map7,Map8//0,Endless Tower,14400,1@tower,50,355,1@tower,2@tower,3@tower,4@tower,5@tower,6@tower1,Sealed Catacomb,7200,1@cata,100,224,1@cata,2@cata2,Orc's Memory,3600,1@orcs,179,15,1@orcs,2@orcs3,Nidhoggur's Nest,14400,1@nyd,32,36,1@nyd,2@nyd4,Mistwood Maze,7200,1@mist,89,29,1@mist5,Culvert,3600,1@pump,63,98,1@pump,2@pump6,Octopus Cave,3600,1@cash,199,99,1@cash7,Bangungot Hospital 2F,3600,1@ma_h,40,157,1@ma_h8,Buwaya Cave,3600,1@ma_c,35,57,1@ma_c9,Bakonawa Lake,7200,1@ma_b,64,51,1@ma_b//10,Wolfchev's Laboratory,14400,1@lhz,45,148,1@lhz11,Old Glast Heim,3600,1@gl_k,150,20,1@gl_k,2@gl_k i want to create custom instance using that db, or any suggestion for create custom instance in hercules?
  21. I suggest hercules implement this Instance rewrite thank You
  22. no problem i solved this issue it because i didn't define bg->create2
  23. int bg_create2( unsigned short bg_id, unsigned short mapindex, short rx, short ry, const char *ev, const char *dev ) { struct battleground_data *bgd = bg_team_search(bg_id); if ( bgd ) return 0; CREATE(bgd, struct battleground_data, 1); bgd->bg_id = bg_id; bgd->count = 0; bgd->mapindex = mapindex; bgd->x = rx; bgd->y = ry; safestrncpy(bgd->logout_event, ev, sizeof(bgd->logout_event)); safestrncpy(bgd->die_event, dev, sizeof(bgd->die_event)); memset(&bgd->members, 0, sizeof(bgd->members)); idb_put(bg->team_db, bg->team_counter, bgd); return bgd->bg_id;}--------------------------------------if ( bg->create2( script_getnum(st,2), mapindex_name2id( script_getstr(st,3) ), script_getnum(st,4), script_getnum(st,5), script_getstr(st,6), script_getstr(st,7) ) > 0 ) the problem is around there
×
×
  • Create New...

Important Information

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