Jump to content
  • 0

Strict 1 IP per person inside goldroom


agamanaros

Question


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  38
  • Reputation:   0
  • Joined:  03/26/16
  • Last Seen:  

Good day!

I am seeking for your assistance regarding my gold room. If anyone can help me implementing strict 1 ip per person inside the goldroom. My script is inserted below. Thank you very much.

skycity,117,217,6	script	Piso Dungeon	540,{
mes "[Piso Dungeon]";
mes "Do you want to enter my Piso Dungeon?";
menu "Ok",-,"No thanks.",L_No;
mes "Awesome!";
next;
mes "I wish you all the luck! Happy Hunting!";
atcommand "@alootid reset";
atcommand "@alootid +35405";
atcommand "@autostore 15";
warp "ba_lib",0,0;
close;

L_No:
close;

OnInit:
waitingroom " Piso Dungeon",0;
end;

}


//============Spawns=================

ba_lib,0,0,0,0	monster	Dark Jose Rizal	3020,100,3600000 // Dokebi with drop
ba_lib,0,0,0,0	monster	Dark Jose Rizal	3021,500,600000 // Dokebi without drop
ba_lib,0,0,0,0	monster	Dark Jose Rizal	3021,500,600000 // Dokebi without drop

// Exit
ba_lib,160,3,0	warp	phptotown#1	1,1,skycity,149,259

//mapflags
ba_lib.gat	mapflag	nobranch
ba_lib.gat	mapflag	noicewall
ba_lib.gat	mapflag	noreturn
ba_lib.gat	mapflag	nosave
ba_lib.gat	mapflag	noskill
ba_lib.gat	mapflag	noteleport
ba_lib.gat	mapflag	nowarp
ba_lib.gat	mapflag	nowarpto

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  155
  • Reputation:   51
  • Joined:  07/15/13
  • Last Seen:  

Try: 

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  68
  • Reputation:   8
  • Joined:  05/12/20
  • Last Seen:  

skycity,117,217,6	script	Piso Dungeon	540,{
	mes "[Piso Dungeon]";
	mes "Do you want to enter my Piso Dungeon?";
	menu "Ok",-,"No thanks.",L_No;
	
	////////////////////////////// IP CHECK
	.@ip$ = getcharip();
	getmapunits(BL_PC,"ba_lib",.@name$);
	for(.@i=0; .@i < getarraysize(.@name$); .@i++){
		if(getcharip(.@name$[.@i]) == .@ip$){
			mes "[Piso Dungeon]","Double IP detected";
			close;
		}                               
	}
    ///////////////////////////// IP CHECK
	
	mes "Awesome!";
	next;
	mes "I wish you all the luck! Happy Hunting!";
	atcommand "@alootid reset";
	atcommand "@alootid +35405";
	atcommand "@autostore 15";

	warp "ba_lib",0,0;
	close;

L_No:
	close;

OnInit:
	waitingroom " Piso Dungeon",0;
end;

}

Add the lines between "////////////////// CHECK IP"

Edited by buraquera
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...