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

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

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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