Lord Ganondorf Posted July 22, 2013 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 5 Reputation: 0 Joined: 06/26/13 Last Seen: August 6, 2013 Share Posted July 22, 2013 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? Quote Link to comment Share on other sites More sharing options...
vhan48 Posted July 23, 2013 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 51 Reputation: 7 Joined: 06/23/12 Last Seen: April 2 Share Posted July 23, 2013 (edited) 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 Edited July 23, 2013 by vhan48 Quote Link to comment Share on other sites More sharing options...
KoolKat29 Posted July 23, 2013 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 90 Reputation: 5 Joined: 06/17/12 Last Seen: September 6, 2013 Share Posted July 23, 2013 (edited) 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 July 23, 2013 by KoolKat29 Quote Link to comment Share on other sites More sharing options...
Lord Ganondorf Posted July 23, 2013 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 5 Reputation: 0 Joined: 06/26/13 Last Seen: August 6, 2013 Author Share Posted July 23, 2013 wow cool thx a lot you two. this is a big help Quote Link to comment Share on other sites More sharing options...
Question
Lord Ganondorf
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.