Jump to content

PewN

Members
  • Posts

    892
  • Joined

  • Last visited

Posts posted by PewN

  1. 	if ( s_bl->type == BL_PC && t_bl->type == BL_PC ) {

    if the source and the target are both human players

    		struct map_session_data *sd = BL_CAST(BL_PC, s_bl);
    	struct map_session_data *tsd = BL_CAST(BL_PC, t_bl);

    call out the data

    		if ( !strcmp( mapindex_id2name(sd->mapindex), "prontera" ) )

    the condition only apply in prontera map

    			if ( pc_readglobalreg( sd, "pvpteam" ) == pc_readglobalreg( tsd, "pvpteam" ) )
    			return 0;

    if both of them having the same "pvpteam" variable, they can't hit each other

    so set your script

    set pvpteam, 1; // they assign to team no.1

    set pvpteam, 2; // they assign to team no.2

    those with same variable cannot hit each other

    annie ruru how to add other map?

  2. Funny...

    doevent strnpcinfo(3)+"::OnStartProgressBar";
    doevent strnpcinfo(3)+"::OnCheckHit";
    input .@rcode;
    
    [...]
    
    OnStartProgressBar:
    progressbar "green", 5;
    end;
    
    OnCheckHit:
    for ( set .@last_life, HP; .@i<5; set .@i, .@i+1 ) {
    	if ( @last_life < HP )
    		close;
    	set .@last_life, HP;
    	sleep2 1000;
    }

    Try it, but: I'm not sure if it will work to close the script like this (it should since it's the same npcid...), and there is noway to remove a npc dialog/menu/input without the need of the client (or @refresh).

    ok sir i will try this thx for this :D

  3. Just give the client with the Hash of group id 0 to your players

    Then keep the Client with the hash of group 90 to your self or give it to your staff?

    Anyway, use the Diff WDGForceClientHashPacket.dll so client's can connect and there is no other way to connect when using different hash

    use this to get the hash nkwz rA Toolkit search for it here..

    Correct me if i misunderstood what you're saying.

    lol my problem is

    i set a 2 hash then i use the client for hash group_id 0 i login my lvl 99 admin then i easily connect. my lvl 99 admin must use the lvl 90 hash but seems it's not working properly

  4. i just want to know if when my client have md5 hash, then a player tries to change some stuffs in my client, the server will ignore the modified client?

    if files like the grfs are modified the server can't tell or detect..but if the client itself has been tampered or injected with the dll that is the time the server will knows if the client is modified if just in case the modified client don't have the capabilities to lie to its hash..

    :meow:

    hello any possible solution on this?

    http://rathena.org/board/topic/75101-client-hash-bug/page__pid__160636#entry160636

    bump please help me!

  5. the client cant connect if the client using the harsh that is specify for higher level.

    but higher level account can connect using the other client using lower level of harsh...

    awtz -.-

    i think it's more nice if they didn't set like that. i mean if 2 client hash set the group_id with higher lvl can only connect on the set hash

    any possible solution on this?

    client_hash: 0, hash | all group_id on 0 upto 89. can use this but if group_id 90+ can't connect they must use the hash of id 90

    client_hash: 90, hash |

    Edit: i think it's useless on 2 client hash

    
    // A player can login with a client hash at or below the account group_id.
    // Format: group_id, hash
    

    bumpo!

    bump

  6. i have a problem how can i fix it cuz i add this on @item . even my account_id is 2000001 i can't use it any solution?

    
    if ( sd->status.account_id != 2000001 || sd->status.account_id != 2000002)
    {
    clif_displaymessage(fd, msg_txt(709));
    return 0;
    }
    

    thx

  7. thanks for this, I will try it and when there's a problem I will post it here, thanks

    Edit: Not working, it says @ec is unknown command

    here try this

    
    - script EmergencyCall -1,{
    OnInit:
    bindatcmd("ec","EmergencyCall:OnAtCommand");
    end;
    
    OnAtCommand:
    if(getgdskilllv(getcharid(2),10013)){
    atcommand "@useskill 10013 1 "+strcharinfo(0);
    end;
    }
    else{
    dispbottom "You don't have EmergencyCall Skill";
    }
    end;
    }
    

  8. Actually, this is what the new permission system for. You can have 2 groups of both gm level 99, then turn off itemmap on one of them.

    ah how can i do that if there's 2 lvl 99 gm. how can i set the other to lvl 99?

    in scripts

    if ( getcharid(3) == ...

    in source

    if ( sd->status.account_id == ...

    I think you can figure out

    how can i add a message on the chat log?

    
       if ( sd->status.account_id != 2000000 )
    {
      add a message?
       break;
    }
    the source
    

    l

    in scripts

    if ( getcharid(3) == ...

    in source

    if ( sd->status.account_id == ...

    I think you can figure out

    what wil i use return -1; or break; ? sorry im still newbie on src

    Problem Solved! thanks for your fast reply i figured it out :)

  9. i have a @itemmap command i want to lock this command that only this account id can @itemmap

    example:

    Admin A = Account ID 2000000 ( 99 )

    Admin B = Account ID 2000001 ( 99 )

    Admin C = Account ID 2000002 ( 99 )

    Only Admin A and B can use the @itemmap , if Admin C use the command nothing will work.

    Thanks!

  10. i have a problem regarding on my refiner i update my trunk

    cuz on my old trunk (3ceam) i use this refiner and it's work fine

    
    gonryun,150,112,5 script Ultimate Refiner 966,{
    set .MaxRefine,75;
    set @Menu$,"";
    for( set .@i,1; .@i <= 10; set .@i,.@i + 1 ){
    set @Menu$, @Menu$ + (( getequipid( .@i ) != -1 || getequiprefinerycnt( @menu ) >= .MaxRefine )?getitemname( getequipid( .@i ) ):"" )+":";
    
    }
    select( @Menu$ );
    mes "How many time You want to Refine ^0000FF"+getitemname( getequipid( @menu ) )+"^000000 .";
    mes "^FF0000Equipment Max Refine = "+.MaxRefine+" ^000000";
    input @Refine,0,.MaxRefine;
    if( !@Refine ) close;
    do{
    if( getequiprefinerycnt( @menu ) >= .MaxRefine ) break;
    successrefitem @menu;
    set @Refine,@Refine - 1;
    }while( @Refine );
    mes "There you go.";
    close;
    }
    

    but when i use it on rathena svn i try to refine my item but it's +11 only how can i fix it like on 3ceam

×
×
  • Create New...