Jump to content
  • 0
Sign in to follow this  
dhaisuke

Help with my Guild NPC Buffer

Question

i have a problem regarding my Guild npc buffer only the gm can access it, how can the guild member also use this buff npc?

 

prontera,155,181,5	script	Guild Owner	718,{set .Map$,"prtg_cas03";if( strcharinfo(0) != getguildmaster( getcastledata( .Map$,1 ) ) && getgmlevel() < 50 && getcharid(2)  ){mes "Only ^FF0000"+getguildmaster( getcastledata( .Map$,1 ) )+"^000000 can use this services.";}else{sc_start .@i,600000,0;}close;}

 

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

First of all... Where do you assign the .@i var? O.o If it isn't assigned it defaults to 0 and you'll have a nifty stone curse for 10 minutes.

 

I've also fixed a potential issue with close being used when there's no message windows, which happens to guild masters and now guild members too.

 

*close;
 
This command will create a 'close' button in the message window for the
invoking character. If no window is currently on screen, the script
command 'end;' must be used. This is one of the ways to end a speech from
an NPC. Once the button is clicked, the NPC script execution will end, and
the message box will disappear.

 

You can have the guild member part fixed this way (I've also fixed indentation for making it more readable):

prontera,155,181,5	script	Guild Owner	718,{	set .Map$,"prtg_cas03";	if (getcharid(2) != getcastledata(.Map$,1) && getgmlevel() < 50) {		mes "Only ^FF0000"+getguildname( getcastledata( .Map$,1 ) )+"^000000 members can use this services.";		close;	} else {		sc_start .@i,600000,0;	}	close;}

Share this post


Link to post
Share on other sites
  • 0

sorry sir @i is for FCP i forget to add the for loop, thanks anyway what i want is to check if guildmember can access it



Thank you very much Sir!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.