Jump to content
  • 0

Guild Skill Giver


Zaon

Question


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  60
  • Reputation:   0
  • Joined:  07/30/12
  • Last Seen:  

Nvm, I just made an npc that uses @glvl 16 so they can get e-call themselves.

 

 

------------------------------------------------------------------------------------

 

Hello,

 

I'm requesting for an NPC that checks if you are in a guild, and if you are the guild master of the guild.

If you are the guild master, the NPC will give you the following skills:

 

Approval Lv 1

Guardian Research Lv 1

Guild Extension Lv 10

Battle Orders Lv 1

Regeneration Lv 1

Emergency Call Lv 1

 

I've tried scripting it myself, but it doesn't give me any skills.

quiz_00,60,14,3	script	Guild Skill Giver	789,{

		.@GID = getcharid(2);
	
	mes .npc$;
	if(!.@GID) {
			
			mes "You are not in a guild.";
			close;
			
		}
	else if (strcharinfo(0) != getguildmaster(.@GID)){
			mes "You are not a Guild Master.";
			close;
			
		}
		
	mes	"You now have Emergency Call.";
	
	guildskill 10000,1;
	guildskill 10004,10;
	guildskill 10002,1;
	guildskill 10010,1;
	guildskill 10011,1;
	guildskill 10013,1;

		close;
		end;

	

	
OnInit:
	.npc$="[^990000Guild Skill Giver^000000]";

}

It successfully checks if you are in a guild and if you are the guild master, but it doesn't give me any skills.

 

I've also tried changing 

        guildskill 10000,1;
	guildskill 10004,10;
	guildskill 10002,1;
	guildskill 10010,1;
	guildskill 10011,1;
	guildskill 10013,1;

   to

        guildskill 10000,1,0;
	guildskill 10004,10,0;
	guildskill 10002,1,0;
	guildskill 10010,1,0;
	guildskill 10011,1,0;
	guildskill 10013,1,0;

but it still didn't work.

Edited by Zaon
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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.   Paste as plain text instead

  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.

×
×
  • Create New...