Jump to content
  • 0

how to add delay to avoid farm


VladimirCastro

Question


  • Group:  Members
  • Topic Count:  114
  • Topics Per Day:  0.03
  • Content Count:  298
  • Reputation:   4
  • Joined:  03/13/12
  • Last Seen:  

 

 

-    script    KillCashPoint    -1,{

OnPCKillEvent:

if (killedrid==getcharid(0)) end;    //No Points, killed himself

if (lastkilled==killedrid){

    set lkcount,lkcount+1;

    if (lkcount>=5){

        set #CASHPOINTS,#CASHPOINTS-3;

        dispbottom "You have Lose 3 points of Honour. Your Total Points are "+#CASHPOINTS;

        atcommand "@nuke "+strcharinfo(0);

        end;

    }

    else{

        set #CASHPOINTS,#CASHPOINTS+1;

        dispbottom "You have gained 1 Point of Honour. Your Total Points are "+#CASHPOINTS;

        end;

    }

}

else{

    set lastkilled,killedrid;

    set lkcount,1;

    set #CASHPOINTS,#CASHPOINTS+1;

    dispbottom "You have gained 1 Point of Honour. Your Total Points are "+#CASHPOINTS;

    end;

}

}

 

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  2
  • Reputation:   0
  • Joined:  08/08/13
  • Last Seen:  

i think it's not a good idea if u put a delay on that.. maybe
restrict and ip to the script

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  


- script KillCashPoint -1,{

OnPCKillEvent:

if ( killedrid == getcharid(0) ) end; //No Points, killed himself

explode( .@tmp_ary$, lkcount$, "#" );

if( getitemtick(2) < atoi(.@tmp_ary$[1]) ) end;

if ( lastkilled == killedrid ) {

set lkcount$, (atoi(.@tmp_ary$)+1)+"#"+(getitemtick(2)+.dly);

if ( atoi(.@tmp_ary$) >= 5 ) {

set #CASHPOINTS, #CASHPOINTS-3;

dispbottom "You have Lose 3 points of Honour. Your Total Points are "+#CASHPOINTS;

atcommand "@nuke "+strcharinfo(0);

end;

} else {

set #CASHPOINTS, #CASHPOINTS+1;

dispbottom "You have gained 1 Point of Honour. Your Total Points are "+#CASHPOINTS;

end;

}

} else {

set lastkilled, killedrid;

set lkcount$, "1#"+(getitemtick(2)+.dly);

set #CASHPOINTS, #CASHPOINTS+1;

dispbottom "You have gained 1 Point of Honour. Your Total Points are "+#CASHPOINTS;

end;

}

end;

OnInit: .dly = 10; //delay in seconds;

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

You should tell everyone that you are using eAthena (or another emulator), because if you don't, it means you have wasted other people's time  /ok

People have to edit and fix their post...

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

not working im using eathena

-	script	KillCashPoint	-1,{
OnPCKillEvent:
	if ( killedrid == getcharid(0) ) end; //No Points, killed himself
	if( getitemtick(2) < lkcount ) end;
	if ( compare( lastkilled$, "|"+killedrid ) ) {
		set lkcount, getitemtick(2)+.dly;
		set lastkilled$, (atoi(lastkilled$)+1)+"|"+killedrid;
		if ( atoi(lastkilled$) >= 5 ) {
			set #CASHPOINTS, #CASHPOINTS-3;
			dispbottom "You have Lose 3 points of Honour. Your Total Points are "+#CASHPOINTS;
			atcommand "@nuke "+strcharinfo(0);
			end;
		} else {
			set #CASHPOINTS, #CASHPOINTS+1;
			dispbottom "You have gained 1 Point of Honour. Your Total Points are "+#CASHPOINTS;
			end;
		}
	} else {
		set lastkilled$, "1|"+killedrid;
		set lkcount, getitemtick(2)+.dly;
		set #CASHPOINTS, #CASHPOINTS+1;
		dispbottom "You have gained 1 Point of Honour. Your Total Points are "+#CASHPOINTS;
		end;
	}
	end;
	
OnInit: set .dly, 10; //delay in seconds;
}

You should tell everyone that you are using eAthena (or another emulator), because if you don't, it means you have wasted other people's time  /ok

People have to edit and fix their post...

 

Thanks. :P

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...