Jump to content
  • 0

Guild-Creating NPC


Lord Ganondorf

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  06/26/13
  • Last Seen:  

Hey I'd like to borrow help from here.

Most of the NPC's are easy but I need some help with the guild NPC.

It should give a possibility to create a guild but it should check if you have a guild already and if you have an emperium.

Also it should check if the guild name already exists.

I really am helpless now with that.

Could somebody help me with that?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  49
  • Reputation:   4
  • Joined:  06/23/12
  • Last Seen:  

Hi, you can try my Guild Manager:

//******* Guild Manager by Vhan48**********
//******* Please Keep my Credits*********
//********Thank you*******************

prontera,164,135,4	script	Guild Manager	884,{
	if( BaseLevel>90 )
  if( JobLevel>50 )
  if (getcharid(2)==0) {
	  mes "[Guild Manager]";
	mes "Hi "+ strcharinfo ( 0 ) +" I'm the guild manager, I can help you organize a guild for a fee";
  next;
  mes "[Guild Manager]";
	mes "Do you want to avail my service?";    
    switch(select("Yes!:I'll think about it.")) {
	case 1:
  
  mes "[Guild Manager]";
  mes "Okay,you will need the following items:";
  next;
  mes "Emperium (714) x1";
next;
  mes "[Guild Manager]";
  mes "Are you sure you to gather it all?";
	goto yes_no;  
yes_no:
	menu "Yes",g_check,"No",m_noitem;


g_check:
if(countitem(714)<1)

  goto m_noitem;
next;
  mes "[Guild Manager]";
  mes "Seems like , it's a piece of cake for you?";
delitem 714,1;    
  next;  
	mes "[Guild Manager]";
	mes "Please Enter the name of the Guild that you want to be organized:";
	next;
	input .@name$;
next;
	mes "[Guild Manager]";
	mes "Congratulations. You have now created your own guild!.";
	close2;
  atcommand "@guild "+.@name$+"";    
	announce " Guild Master "+ strcharinfo ( 0 ) +" has established the "+.@name$+" Guild! Make your members proud!.",0;
	end;

m_noitem:
	mes "[Guild Manager]";
	mes "Sorry,You haven't completed the requirements yet, please come back after completing it.";
  
  case 2:
	mes "[Guild Manager]";
	mes "Ok, decide carefully"; 
  close;   
  } 
    }
	mes "[Guild Manager]";
  mes "Hi "+ strcharinfo ( 0 ) +" . You must not be in a guild and should be base level 99 and job level 70 to avail my services.";  
	close;

} 

 

 

 hope it helps  /no1
Edited by vhan48
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  90
  • Reputation:   5
  • Joined:  06/17/12
  • Last Seen:  

strcharinfo(2)  http://rathena.org/wiki/Strcharinfo

and

countitem  http://rathena.org/wiki/Countitem

 

for guild name check if exist http://rathena.org/board/topic/78958-check-guild-if-already-exist/

Edited by KoolKat29
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  06/26/13
  • Last Seen:  

wow cool thx a lot you two. this is a big help

Link to comment
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.   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...