Jump to content

astralprojection

Members
  • Content Count

    333
  • Joined

  • Last visited

  • Days Won

    8

Posts posted by astralprojection


  1. @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 :D

     

    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);

     


  2. 36 minutes ago, 4144 said:

    0x0945 look like often used as shuffle packet

    you really used correct packet version and client type? because if not, server will not works with this clients at all

     

    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)


  3. 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

     


  4. 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 :D


  5. On 7/26/2020 at 11:53 PM, Clark619 said:

    i found the solution just find the line with waktoxy and change it to walk_toxy... and disable the autoattack if you are warping or teleporting..

    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. :D


  6. 
    -	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


  7. 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.


  8. @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

×
×
  • Create New...

Important Information

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