Jump to content

astralprojection

Members
  • Content Count

    333
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by astralprojection

  1. check in your script.c if you have entry BUILDIN(get_unique_id) { char temp[20]; struct map_session_data* sd = script_rid2sd(st); if (sd == NULL) { script_pushconststr(st, ""); return false; } sprintf(temp, "%lu", sockt->session[sd->fd]->gepard_info.unique_id); script_pushstrcopy(st, temp); return true; } static void script_parse_builtin(void) { struct script_function BUILDIN[] = { BUILDIN_DEF(get_unique_id, ""),
  2. @AnnieRuru i was trying to make some mod on your script VIP SYSTEM. I want to prevent inserting new record for same char_id each time it expire and avail again. The query_sql seems not update the record. thanks CREATE TABLE `vip_system` ( `char_id` int(11) unsigned NOT NULL, `start_time` datetime DEFAULT NULL, `end_time` datetime DEFAULT NULL, PRIMARY KEY (`char_id`), UNIQUE KEY `char_id` (`char_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 query_sql "INSERT INTO `vip_system` VALUES ("+ getcharid(CHAR_ID_CHAR) +", NOW(), DATE_ADD(NOW(), INTERVAL "+ 1 +" WEEK)) ON DUPLICATE KEY UPDATE `char_id` = "+getcharid(CHAR_ID_CHAR);
  3. use screen. $ cd yourROFolder $ screen -S login (this will create screen named "login") $ ./login-server $ ctrl+a+d to exit screen. To restore screen, use $ screen -r login
  4. i used Serverside (Latest Herc) mmo.h #define PACKETVER 20120320 client.conf packet_obfuscation: 2 renewal.h #define DISABLE_RENEWAL compiled using: ./configure && make clean && make sql Clien t Side: http://nemo.herc.ws/downloads/2012-03-20aRagexe/ diffed using NEMO with these settings: 8 Custom Window Title 9 Disable 1rag1 type parameters (Recommended) 10 Disable 4 Letter Character Name Limit 11 Disable 4 Letter User Name Limit 12 Disable 4 Letter Password Limit 13 Disable Ragexe Filename Check (Recommended) 15 Disable HShield (Recommended) 18 Skip Service Selection Screen 19 Enable Title Bar Menu 33 Always Call SelectKoreaClientInfo() (Recommended) 35 Read Data Folder First 36 Read msgstringtable.txt (Recommended) 37 Read questid2display.txt (Recommended) 38 Remove Gravity Ads (Recommended) 39 Remove Gravity Logo (Recommended) 40 Restore Login Window (Recommended) 44 Translate Client (Recommended) 47 Use Ragnarok Icon 48 Use Plain Text Descriptions (Recommended) 49 Enable Multiple GRFs (Recommended) 50 Skip License Screen 53 Use Ascii on All LangTypes (Recommended) 64 @ Bug Fix (Recommended) 73 Remove Hourly Announce (Recommended) 84 Remove Serial Display (Recommended) 86 Only First Login Background 91 Disconnect to Login Window 97 Cancel to Login Window (Recommended) Did i missed some configurations? Here is my error: Login: ok Display Char: ok Create Char: chr->parse_char: Received unknown packet 0x67 Select Char: Unhandled packet 0x0945 (length 19)
  5. Been trying hard to use client version before 2012-04-10 as these clients uses old character creation. Does anyone here success with this client build on the latest Herc? 20120222 - (map) Unhandled packet 0x0945 (length 19) 20120229 - (map) Unhandled packet 0x0945 (length 19) 20120320 - (map) Unhandled packet 0x0945 (length 19) 20120328 - (map) Unhandled packet 0x08A6 (length 19) 20120404 - can't connect to map (no packet error) /* start of new char creation */ 20120410 - (ok) 20120724 - (ok) packet_obfuscation: 2
  6. is it possible also to modify callshop .shop_npc_name$,2; to just show a specific type of item to be sold?
  7. very nice. Thank you @AnnieRuru its a great contribution!
  8. charm.c: In function 'npc_parse_unknown_mapflag_pre': charm.c:173:31: warning: declaration of 'cidata' shadows a previous local [-Wshadow] struct charm_item_data *cidata = getFromITEMDATA(idata, 0); ^ charm.c:131:26: warning: shadowed declaration is here [-Wshadow] struct charm_item_data *cidata = NULL; ^ charm.c:131:26: warning: unused variable 'cidata' [-Wunused-variable] Some minor warning
  9. unit->walk_toxy(&sd->bl,sd->bl.x+(rand()%2==0?-1:1)*(rand()%10),sd->bl.y+(rand()%2==0?-1:1)*(rand()%10),0); its nice but i think needs more improvement to use a skill in F1~F12.
  10. THanks @AnnieRuru so much learning.!
  11. - script woelimit HIDDEN_NPC,{ end; OnPCLoadMapEvent: .@rid = playerattached(); if ( !compare(strcharinfo(PC_MAP), "g_cas") || !agitcheck() ) end; getguildmember getcharid(CHAR_ID_GUILD), 1; getguildmember getcharid(CHAR_ID_GUILD), 2; .@count = 0; for ( .@i = 0; .@i < $@guildmembercount; .@i++ ) { if (attachrid($@guildmemberaid[.@i])) { if( compare(strcharinfo(PC_MAP), "g_cas") ) .@count++; } } if ( .@rid ) attachrid(.@rid); else detachrid; if(.@count > .max){ message strcharinfo(0), "WARNING: Max of "+.max+" members can simultaneously join the WOE."; warp "SavePoint",0,0; } end; OnInit: .max = 25; end; } try this
  12. i will try also i will share if i get it right.
  13. i would like to share some idea, you can somehow. 1. add column at login table `referral` default to 0 2. pass variable $referral at registration in flux. like /?module=account&action=create&referral=2001154 if(isset($_SESSION['referral'])){ $referral = $_SESSION['referral']; } else { $referral = 0; } // Woohoo! Register ;) $result = $server->loginServer->register($username, $password, $confirm, $email, $gender, $birthdate, $referral, $code); 3. save that extra field referral if there is. 4. use script to manage your controls.
  14. where can i possible change the color of bound items?
  15. thanks for this. it does not work when adopted char name has space _ on it. How can I fix?
  16. Yes its from the Extended Battleground. I have have lot of those in logs also. @Dastgir
  17. @Dastgir there are moments that this happens (07/06/2020 20:11:31) [ Error ] : get_variable: NULL RETURNED. 202-4 (07/06/2020 20:11:31) [ Error ] : SET_VARIABLE_ADD: Cannot Add 186 to 202 (AccountID:2001296, Name:xxruid!) (07/06/2020 20:11:31) [ Error ] : get_variable: NULL RETURNED. 202-4 (07/06/2020 20:11:31) [ Error ] : SET_VARIABLE_ADD: Cannot Add 114 to 202 (AccountID:2001296, Name:xxruid!) also this where some player can't get any reward at all: (07/06/2020 20:16:54) [ Warning ] : bg_team_rewards: Cannot give x5 7773 to BG_ID: 0
  18. this will be fixed on the next release https://github.com/HerculesWS/Hercules/pull/2774#pullrequestreview-438731089
  19. how about how to set mob not to knockback? @meko
×
×
  • Create New...

Important Information

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