caspa Posted February 19, 2013 Group: Members Topic Count: 194 Topics Per Day: 0.04 Content Count: 499 Reputation: 3 Joined: 03/11/12 Last Seen: September 18, 2023 Share Posted February 19, 2013 (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 February 19, 2013 by caspa Quote Link to comment Share on other sites More sharing options...
Capuche Posted February 19, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted February 19, 2013 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 Quote Link to comment Share on other sites More sharing options...
Capuche Posted February 19, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted February 19, 2013 - 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; } Quote Link to comment Share on other sites More sharing options...
caspa Posted February 19, 2013 Group: Members Topic Count: 194 Topics Per Day: 0.04 Content Count: 499 Reputation: 3 Joined: 03/11/12 Last Seen: September 18, 2023 Author Share Posted February 19, 2013 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; } Quote Link to comment Share on other sites More sharing options...
caspa Posted February 19, 2013 Group: Members Topic Count: 194 Topics Per Day: 0.04 Content Count: 499 Reputation: 3 Joined: 03/11/12 Last Seen: September 18, 2023 Author Share Posted February 19, 2013 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 Quote Link to comment Share on other sites More sharing options...
Question
caspa
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 caspaLink to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.