Jump to content
  • 0

Guild Skill Approval


caspa

Question


  • Group:  Members
  • Topic Count:  194
  • Topics Per Day:  0.04
  • Content Count:  499
  • Reputation:   3
  • Joined:  03/11/12
  • Last Seen:  

how to make the npc ensure that the user is in a guild and then check if the guild has a lvl 1 approval before he can enter the map

Edited by caspa
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

hmmm just this ?

 

prontera,159,180,5	script	hjkl	456,{
	if ( !getskilllv(10000) ) {
		mes "your guild doesn't have lvl 1 approval";
		close;
	}
	warp "prontera",0,0;// warp in your guild house ?
	end;
}

 

getskilllv(10000) check if the player have approval ( Skill ID 10000 ) and return the level of the skill if so

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  


- script hjklm -1,{

OnInit:

setarray .@tmp$, "geffen","payon";// yours map's name restricted

for( ; .@i < getarraysize( .@tmp$ ); .@i++ )

setmapflag .@tmp$, mf_loadevent;

.map_restrict$ = implode( .@tmp$, "#" );

end;

OnPCLoadMapEvent:

if ( !getskilllv(10000) && compare( .map_restrict$,strcharinfo(3) ) ) {

dispbottom "your guild doesn't have lvl 1 approval";

warp "prontera",0,0;

}

end;

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  194
  • Topics Per Day:  0.04
  • Content Count:  499
  • Reputation:   3
  • Joined:  03/11/12
  • Last Seen:  

ohh... i want it to be an npc.......

like if i talk the the npc it would tell me enter guild house?

then if i click yes..... 

the one ive ask you about will trigger......

 

-	script	hjklm	-1,{
OnInit:
	setarray .@tmp$, "geffen","payon";// yours map's name restricted
	for( ; .@i < getarraysize( .@tmp$ ); .@i++ )
		setmapflag .@tmp$, mf_loadevent;
	.map_restrict$ = implode( .@tmp$, "#" );
	end;
OnPCLoadMapEvent:
	if ( !getskilllv(10000) && compare( .map_restrict$,strcharinfo(3) ) ) {
		dispbottom "your guild doesn't have lvl 1 approval";
		warp "prontera",0,0;
	}
	end;
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  194
  • Topics Per Day:  0.04
  • Content Count:  499
  • Reputation:   3
  • Joined:  03/11/12
  • Last Seen:  

Yep....... That's what i need Thank you capuche [ PROBLEM SOLVED ]

 

hmmm just this ?

 

prontera,159,180,5	script	hjkl	456,{
	if ( !getskilllv(10000) ) {
		mes "your guild doesn't have lvl 1 approval";
		close;
	}
	warp "prontera",0,0;// warp in your guild house ?
	end;
}

 

getskilllv(10000) check if the player have approval ( Skill ID 10000 ) and return the level of the skill if so

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