Jump to content
  • 0

Guild Skill Approval


Question

Posted (edited)

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

4 answers to this question

Recommended Posts

Posted

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

Posted


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

}

Posted

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;
}
Posted

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...