dhaisuke 1 Posted February 7, 2014 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;} Quote Share this post Link to post Share on other sites
0 jaBote 438 Posted February 7, 2014 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;} 1 dhaisuke reacted to this Quote Share this post Link to post Share on other sites
0 dhaisuke 1 Posted February 7, 2014 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 itThank you very much Sir! Quote Share this post Link to post Share on other sites
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?
Share this post
Link to post
Share on other sites