Jump to content

Chaos92

Members
  • Posts

    1537
  • Joined

  • Last visited

  • Days Won

    35

Posts posted by Chaos92

  1.  

     

    12138

    then what details in your core.c

     

    I haven't edited anything in my core.c. I just couldn't find the line that the solution states.

    I'm using the correct client for my server, and I've edited the packet_db.txt and all the necessary documents needed. I can log in fine, but the client is fully stuck, and the 2nd line on the chat is Cannot Determine SVN/GIT.

     

    show us your core.c

  2.  

    display version : yes

    to display svn. but sometimes it will become unknown

     

    u run map server, and find that revision, then u can edit in src/common/core.c:

    snprintf(eA_svn_version, sizeof(eA_svn_version), "Unknown");
    
    Change unknown to the version u know

    I don't have that specific line in my core. C

     

    what svn

  3. It's not a bug. On official servers, if a castle is unconquered, it can be freely taken at any time.

     

    i already conquered all the castle .. but still can be taken by others . when i open example, castle pront, the other castle emperium also spawn.. btw i already take all castle before that..

  4. Anyone can share any npc scripts that can easily use safe refine ticket for example :
    http://ratemyserver.net/index.php?iname=refine&page=item_db&quick=1&isearch=Search

    +11 Armor Refine Ticket    Item ID# 6239 (Guarantee_Armor_11Up) 

    means that safe refine +11 (if they already +4 their armor, still its going to +11, not +15)

    I need script that can use all types of safe refine ticket if can, did it exist for now ?

    Mind to share ?  /kis2


    up maybe?

  5. I need some modification of this script so that vendors excluded

    -	script	itemall	-1,{
    OnWhisperGlobal:
    if( getgroupid() >= 99 ){
    	// check map
    	if( @whispervar0$ == "all" ) set .@type$,"";
    	else if( @whispervar0$ == "map" ) set .@type$,strcharinfo(3);
    	else {
    		dispbottom "Error, pick 'map' or 'all' ";
    		end;
    	}
    	
    	// check item
    	set .@itemid,atoi( @whispervar1$ );
    	set .@amount,atoi( @whispervar2$ );
    	if( getitemname( .@itemid ) == "null" || .@amount < 1 ){
    		dispbottom "Enter valid item id and amount.";
    	}
    	
    	set .@self_id,getcharid(3);
    	query_sql( "SELECT COUNT(`account_id`) FROM `char` WHERE `online` = 1 ", .@total );
    	while( .@count < .@total ){
    		query_sql( "SELECT `account_id`,`name` FROM `char` WHERE `online` = 1 ORDER BY `account_id` LIMIT 128 OFFSET "+.@offset, .@aid,.@name$ );
    		set .@i,0;
    		set .@size,getarraysize( .@aid );
    		while( .@i < .@size ){
    			if( .@aid[.@i] != .@self_id ){
    				if( .@type$ != "" ){
    					getmapxy( .@map$,.@x,.@y,0,.@name$[.@i] );
    					if( .@map$ == .@type$ ){
    						getitem .@itemid,.@amount,.@aid[.@i];
    						set .@gave,.@gave + 1;
    					}
    				}else{
    					getitem .@itemid,.@amount,.@aid[.@i];
    					set .@gave,.@gave + 1;
    				}
    			}
    			set .@count,.@count + 1;
    			set .@i,.@i + 1;
    		}
    		set .@offset,.@offset + .@size;
    		deletearray .@aid,.@size;
    		deletearray .@name$,.@size;
    	}
    	dispbottom "Gave "+.@amount+" x "+getitemname( .@itemid )+" to "+.@gave+" Player(s).";
    }
    end;
    }

    Hope someone can help :3

  6. There is problems with this v4p system

     

    http://rathena.org/board/files/file/2849-vote-for-points-for-fluxcp-free/

     

    when cashpoint are used, its going to be some problems if that ID is online because the cashpoint is not updated

     

    Is there any way or sourcecode modification so that if they want to vote, make sure their ID is offline.
     

    Such as reset position/reset look that will give condition that need the character to offline 1st /pat

  7. thanks sir ! :)
    Im gonna try these


     

    open atcommand.c

    and find recallall

    replace this

     

    ACMD_FUNC(recallall)
    {
    	struct map_session_data* pl_sd;
    	struct s_mapiterator* iter;
    	int count;
    	nullpo_retr(-1, sd);
    
    	memset(atcmd_output, '\0', sizeof(atcmd_output));
    
    	if (sd->bl.m >= 0 && map[sd->bl.m].flag.nowarpto && !pc_has_permission(sd, PC_PERM_WARP_ANYWHERE)) {
    		clif_displaymessage(fd, msg_txt(sd,1032)); // You are not authorized to warp someone to your current map.
    		return -1;
    	}
    
    	count = 0;
    	iter = mapit_getallusers();
    	for( pl_sd = (TBL_PC*)mapit_first(iter); mapit_exists(iter); pl_sd = (TBL_PC*)mapit_next(iter) )
    	{
    		if (sd->status.account_id != pl_sd->status.account_id && !( pl_sd->state.vending || pl_sd->state.buyingstore || pl_sd->state.autotrade ) && pc_get_group_level(sd) >= pc_get_group_level(pl_sd))
    		{
    			if (pl_sd->bl.m == sd->bl.m && pl_sd->bl.x == sd->bl.x && pl_sd->bl.y == sd->bl.y)
    				continue; // Don't waste time warping the character to the same place.
    			if (pl_sd->bl.m >= 0 && map[pl_sd->bl.m].flag.nowarp && !pc_has_permission(sd, PC_PERM_WARP_ANYWHERE))
    				count++;
    			else {
    				if (pc_isdead(pl_sd)) { //Wake them up
    					pc_setstand(pl_sd, true);
    					pc_setrestartvalue(pl_sd,1);
    				}
    				pc_setpos(pl_sd, sd->mapindex, sd->bl.x, sd->bl.y, CLR_RESPAWN);
    			}
    		}
    	}
    	mapit_free(iter);
    
    	clif_displaymessage(fd, msg_txt(sd,92)); // All characters recalled!
    	if (count) {
    		sprintf(atcmd_output, msg_txt(sd,1033), count); // Because you are not authorized to warp from some maps, %d player(s) have not been recalled.
    		clif_displaymessage(fd, atcmd_output);
    	}
    
    	return 0;
    }
    

    got error when compiled with this :/

  8. Annie , this script im using too but in new revision, there are some changes in battle.c

     

    Index: battle.c
    ===================================================================
    --- battle.c	(revision 16817)
    +++ battle.c	(working copy)
    @@ -5021,6 +5021,13 @@
     	if( (s_bl = battle_get_master(src)) == NULL )
     		s_bl = src;
     
    +	if ( s_bl->type == BL_PC && t_bl->type == BL_MOB ) {
    +		struct map_session_data *sd = BL_CAST(BL_PC, s_bl);
    +		if ( ( ((TBL_MOB*)target)->class_ == 1288 && !strcmp( mapindex_id2name(sd->mapindex), "guild_vs1" ) ) &&
    +			( sd->status.guild_id == mapreg_readreg( add_str("$KOEGUILD") ) || battle_getcurrentskill(src) > 0 ) )
    +		return 0;
    +	}
    +
     	if ( s_bl->type == BL_PC ) {
     		switch( t_bl->type ) {
     			case BL_MOB: // Source => PC, Target => MOB
    Index: battle.h
    ===================================================================
    --- battle.h	(revision 16817)
    +++ battle.h	(working copy)
    @@ -3,6 +3,7 @@
     
     #ifndef _BATTLE_H_
     #define _BATTLE_H_
    +#include "mapreg.h"
     
     // state of a single attack attempt; used in flee/def penalty calculations when mobbed
     typedef enum damage_lv {
    
    

    this is your patch , and i show this 3ceam revision735 battle.c :

    if( (t_bl = battle_get_master(target)) == NULL )
    		t_bl = target;
    
    	if( (s_bl = battle_get_master(src)) == NULL )
    		s_bl = src;
    
    	switch( target->type )
    	{ // Checks on actual target
    		case BL_PC:
    			if (((TBL_PC*)target)->invincible_timer != INVALID_TIMER || pc_isinvisible((TBL_PC*)target))
    				return -1; //Cannot be targeted yet.
    			break;
    		case BL_MOB:
    			if((((TBL_MOB*)target)->special_state.ai == 2 || //Marine Spheres
    				(((TBL_MOB*)target)->special_state.ai == 3 && battle_config.summon_flora&1)) && //Floras
    				s_bl->type == BL_PC && src->type != BL_MOB)
    			{	//Targettable by players
    				state |= BCT_ENEMY;
    				strip_enemy = 0;
    			}
    			break;
    

    see there are some different right. im glad if you can make patch for this revision .
    before this that patch works, but in this revision didnt work anymore :(

×
×
  • Create New...