Jump to content

vomaito

Members
  • Posts

    45
  • Joined

  • Last visited

Posts posted by vomaito

  1. Hi i wanna edit this conf var, because only works with Equips but you can still use consumables. I was searching on rA git looking for the code, but I don't found anything. Only battle.c and battle.h reference this var but can't find the function in src/map.

     

    Someone can Help me, please?

  2. I'm 99% sure that by the time you've selected your char and logging into the map server, the database has already updated the lastlogin column.

    Yep, login table is update when you login. The script needs account variables and use OnPCLogin/OnPcLogout events.

    Like:

    OnPCLoginEvent:

    ##LAST_LOGIN = atoi(gettimestr("%Y%m%d,21));

    end;

    and also a switch to check days difference or months..

    also maybe need a SQL protecction for this a player could create accounts that only log one time for farm the price.

    I dont check function is a Euphy original work but edited by me.

    function    script    Check_IP    {
        // Get list of accounts with attached character's IP address.
        set .@size, query_sql("SELECT `account_id` FROM `login` WHERE `last_ip` = '"+getcharip()+"'",.@aid);
    if(.@size <2) return;
    for(.@i=0;.@i<.@size;.@i++){
     attachrid(.@aid[i]);
    set ##LAST_LOGIN = atoi(gettimestr("%Y%m%d,21));
    }
    return;
    }
  3. Hi, I change the Max Lvl for Oboro to 175. And I have a problem with Illusion-Death, because cause always coma (Max Lvl cause this because all Players are same or lower base lvl). Thats one problem, the second. SC_COMA bypass GTB Card (Only in this skill, other work fine Coma Tarot not bypass...),

    I think it is because the SRC of skill Use this:

    
    	case KO_JYUSATSU:
    		if( dstsd && tsc && !tsc->data[type] &&
    			rnd()%100 < ((45+5*skill_lv) + skill_lv*5 - status_get_int(bl)/2) ){//[(Base chance of success) + (Skill Level x 5) - (int / 2)]%.
    			clif_skill_nodamage(src,bl,skill_id,skill_lv,
    				status_change_start(src,bl,type,10000,skill_lv,0,0,0,skill_get_time(skill_id,skill_lv),SCSTART_NOAVOID|SCSTART_NOTICKDEF));
    			status_percent_damage(src, bl, tstatus->hp * skill_lv * 5, 0, false); // Does not kill the target.
    			if( status_get_lv(bl) <= status_get_lv(src) )
    				status_change_start(src,bl,SC_COMA,10,skill_lv,0,src->id,0,0,SCSTART_NONE);
    		}else if( sd )
    			clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);
    		break;
    

    I think problem is in

    status_change_start(src,bl,type,10000,skill_lv,0,0,0,skill_get_time(skill_id,skill_lv),SCSTART_NOAVOID|SCSTART_NOTICKDEF));
    
    

    For SCSTART_NOAVOID bypass GTB, but how to reduce the 100% coma chance, and make GTB effect apply?

     

    Change the 10000 to other number should work but, this is about Curse state. If any one could explain me the SRC will be great.

    PD: Is There any SRC doc with real documentation, I mean, one in doc/ is too useless. Thanks.

  4.  

    addrid(0);
    if ( #VariableAnnounce ) {
        announce "message",bc_self;
    }
    end;
    

     

    Hey that's pretty creative! Never thought of doing it like this before. :]

     

    Some Help, the others NPC dialog got error (close dialog or freeze) when I announce something and the player is talking to npc

×
×
  • Create New...