Jump to content
  • 0

Check IP to prevent abuse


HelloKekette

Question


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  36
  • Reputation:   0
  • Joined:  09/09/13
  • Last Seen:  

Hi !

Any solution to have an IP restriction on a NPC ? I found for restriction by account, but no ip check.

I need a part of script to have : 

14h of cooldown per account and IP (or only IP).

Thank you !

 

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   241
  • Joined:  09/05/12
  • Last Seen:  

Show your script

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  36
  • Reputation:   0
  • Joined:  09/09/13
  • Last Seen:  

//===== EinherjarRO Scripts ================================== 
//= Poring Power
//===== By: ================================================== 
//= Stolao
//===== Current Version: ===================================== 
//= 1.00
//===== Compatible With: ===================================== 
//= rAthena SVN
//===== Description: ========================================= 
//= Porings are more fun~
//===== Comments: ============================================
//= N/A
//===== Additional Comments: =================================
//= 1.00 Initial Make
//===== Contact Ifo: =========================================
//= [Stolao] 
//= Email: [email protected]
//============================================================
-	script	porsize	-1,{
OnEventPor1:
	Getmapxy(.@m$,.@x,.@y,0);
	Areamonster .@m$,.@x+5,.@y+5,.@x-5,.@y-5,"--ja--",.mobid,2,"porsize::OnEventPor2";
End;
OnEventPor2:
	Getmapxy(.@m$,.@x,.@y,0);
	Areamonster .@m$,.@x+5,.@y+5,.@x-5,.@y-5,"--ja--",.smobid,2,"porsize::OnEventPor3";
End;
OnEventPor3:
	Set .count,.count+1;
	If(.count == 4){
		areamonster .PlayMap$,.Area[0],.Area[1],.Area[2],.Area[3],"--ja--",.bmobid,1,"porsize::OnEventPor1";
		Set .count,0;
	}
End;
OnInit:
	Set .TotalBig,100;
	Set .PlayMap$,"prt_fild08";
	setarray .Area,50,50,500,500;
	Set .mobid,1002;
//Spawning Random Sizes
	Set .bmobid,8000+.mobid;
	Set .smobid,4000+.mobid;
	Set .B,rand(.TotalBig)+1;
	Set .M,rand(.TotalBig-.;
	Set .S,.TotalBig-.B-.M;
	areamonster .PlayMap$,.Area[0],.Area[1],.Area[2],.Area[3],"--ja--",.bmobid,.B,"porsize::OnEventPor1";
	areamonster .PlayMap$,.Area[0],.Area[1],.Area[2],.Area[3],"--ja--",.mobid,.M*2,"porsize::OnEventPor2";
	areamonster .PlayMap$,.Area[0],.Area[1],.Area[2],.Area[3],"--ja--",.smobid,.S*4,"porsize::OnEventPor3";
End;
}

 

Thx if you can help me... So hard for me :s

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