Help with my Guild NPC Buffer

dhaisuke

New member
Messages
99
Points
0
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?

Code:
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;}
 
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):

Code:
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;}
 
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!

 
Back
Top