Jump to content
  • 0
Sign in to follow this  
IsabelaFernandez

Guild NPC request

Question

 

Hello community, I would like a basic script for maximum level of guild + up all guild skills. thank you all

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

you can try this, i think it should do the trick.


prontera,155,181,5	script	Sample	4_F_KAFRA1,{

OnRetry:
	[email protected]_id = getcharid(2);
	
	query_sql("SELECT `guild_lv` FROM `guild` WHERE `guild_id` = "[email protected]_id, [email protected]_lv);
	if ([email protected]_id || [email protected]_lv) {
		mes "Guild not found, or kindly retry.";
		if ([email protected]_id) 
			if (select("Retry", "Cancel") == 1) {
				requestguildinfo([email protected]_id, strnpcinfo(3)+"::OnRetry");
			}
		close;
	}
	else if (getguildmasterid([email protected]_id) != getcharid(0)) {
		mes "You're not guild master.";
		close;
	}
	else if ([email protected]_lv >= 50) {
		mes "Your guild already reached max level.";
		close;
	}
	
	// increase guild exp
	if ([email protected]_lv <= 1) guildgetexp(100000);
	if ([email protected]_lv <= 2) guildgetexp(400000);
	if ([email protected]_lv <= 3) guildgetexp(900000);
	if ([email protected]_lv <= 4) guildgetexp(1600000);
	if ([email protected]_lv <= 5) guildgetexp(2500000);
	if ([email protected]_lv <= 6) guildgetexp(3600000);
	if ([email protected]_lv <= 7) guildgetexp(4900000);
	if ([email protected]_lv <= 8) guildgetexp(6400000);
	if ([email protected]_lv <= 9) guildgetexp(8100000);
	if ([email protected]_lv <= 10) guildgetexp(10000000);
	if ([email protected]_lv <= 11) guildgetexp(12100000);
	if ([email protected]_lv <= 12) guildgetexp(14400000);
	if ([email protected]_lv <= 13) guildgetexp(16900000);
	if ([email protected]_lv <= 14) guildgetexp(19600000);
	if ([email protected]_lv <= 15) guildgetexp(22500000);
	if ([email protected]_lv <= 16) guildgetexp(25600000);
	if ([email protected]_lv <= 17) guildgetexp(28900000);
	if ([email protected]_lv <= 18) guildgetexp(32400000);
	if ([email protected]_lv <= 19) guildgetexp(36100000);
	if ([email protected]_lv <= 20) guildgetexp(40000000);
	if ([email protected]_lv <= 21) guildgetexp(44100000);
	if ([email protected]_lv <= 22) guildgetexp(48400000);
	if ([email protected]_lv <= 23) guildgetexp(52900000);
	if ([email protected]_lv <= 24) guildgetexp(57600000);
	if ([email protected]_lv <= 25) guildgetexp(62500000);
	if ([email protected]_lv <= 26) guildgetexp(67600000);
	if ([email protected]_lv <= 27) guildgetexp(72900000);
	if ([email protected]_lv <= 28) guildgetexp(78400000);
	if ([email protected]_lv <= 29) guildgetexp(84100000);
	if ([email protected]_lv <= 30) guildgetexp(90000000);
	if ([email protected]_lv <= 31) guildgetexp(96100000);
	if ([email protected]_lv <= 32) guildgetexp(102400000);
	if ([email protected]_lv <= 33) guildgetexp(108900000);
	if ([email protected]_lv <= 34) guildgetexp(115600000);
	if ([email protected]_lv <= 35) guildgetexp(122500000);
	if ([email protected]_lv <= 36) guildgetexp(129600000);
	if ([email protected]_lv <= 37) guildgetexp(136900000);
	if ([email protected]_lv <= 38) guildgetexp(144400000);
	if ([email protected]_lv <= 39) guildgetexp(152100000);
	if ([email protected]_lv <= 40) guildgetexp(160000000);
	if ([email protected]_lv <= 41) guildgetexp(168100000);
	if ([email protected]_lv <= 42) guildgetexp(176400000);
	if ([email protected]_lv <= 43) guildgetexp(184900000);
	if ([email protected]_lv <= 44) guildgetexp(193600000);
	if ([email protected]_lv <= 45) guildgetexp(202500000);
	if ([email protected]_lv <= 46) guildgetexp(211600000);
	if ([email protected]_lv <= 47) guildgetexp(220900000);
	if ([email protected]_lv <= 48) guildgetexp(230400000);
	if ([email protected]_lv <= 49) guildgetexp(240100000);
	if ([email protected]_lv < 50) guildgetexp(250000000);


	// guild skills.
	guildskill(10000,1);
	guildskill(10001,1);
	guildskill(10002,1);
	guildskill(10003,3);
	guildskill(10004,10);
	guildskill(10005,1);
	guildskill(10006,5);
	guildskill(10007,5);
	guildskill(10008,5);
	guildskill(10009,5);
	guildskill(10010,1);
	guildskill(10011,3);
	guildskill(10012,1);
	guildskill(10013,1);
	guildskill(10014,1);
	guildskill(10016,5);

	mes "Done";
	close;
}

it would be more accurate if there was a script command like *getguildinfo that retrieve the guild information.

  • Love 1

Share this post


Link to post
Share on other sites
  • 0
On 12/20/2018 at 8:35 AM, Emistry said:

you can try this, i think it should do the trick.


prontera,155,181,5	script	Sample	4_F_KAFRA1,{

OnRetry:
	[email protected]_id = getcharid(2);
	
	query_sql("SELECT `guild_lv` FROM `guild` WHERE `guild_id` = "[email protected]_id, [email protected]_lv);
	if ([email protected]_id || [email protected]_lv) {
		mes "Guild not found, or kindly retry.";
		if ([email protected]_id) 
			if (select("Retry", "Cancel") == 1) {
				requestguildinfo([email protected]_id, strnpcinfo(3)+"::OnRetry");
			}
		close;
	}
	else if (getguildmasterid([email protected]_id) != getcharid(0)) {
		mes "You're not guild master.";
		close;
	}
	else if ([email protected]_lv >= 50) {
		mes "Your guild already reached max level.";
		close;
	}
	
	// increase guild exp
	if ([email protected]_lv <= 1) guildgetexp(100000);
	if ([email protected]_lv <= 2) guildgetexp(400000);
	if ([email protected]_lv <= 3) guildgetexp(900000);
	if ([email protected]_lv <= 4) guildgetexp(1600000);
	if ([email protected]_lv <= 5) guildgetexp(2500000);
	if ([email protected]_lv <= 6) guildgetexp(3600000);
	if ([email protected]_lv <= 7) guildgetexp(4900000);
	if ([email protected]_lv <= 8) guildgetexp(6400000);
	if ([email protected]_lv <= 9) guildgetexp(8100000);
	if ([email protected]_lv <= 10) guildgetexp(10000000);
	if ([email protected]_lv <= 11) guildgetexp(12100000);
	if ([email protected]_lv <= 12) guildgetexp(14400000);
	if ([email protected]_lv <= 13) guildgetexp(16900000);
	if ([email protected]_lv <= 14) guildgetexp(19600000);
	if ([email protected]_lv <= 15) guildgetexp(22500000);
	if ([email protected]_lv <= 16) guildgetexp(25600000);
	if ([email protected]_lv <= 17) guildgetexp(28900000);
	if ([email protected]_lv <= 18) guildgetexp(32400000);
	if ([email protected]_lv <= 19) guildgetexp(36100000);
	if ([email protected]_lv <= 20) guildgetexp(40000000);
	if ([email protected]_lv <= 21) guildgetexp(44100000);
	if ([email protected]_lv <= 22) guildgetexp(48400000);
	if ([email protected]_lv <= 23) guildgetexp(52900000);
	if ([email protected]_lv <= 24) guildgetexp(57600000);
	if ([email protected]_lv <= 25) guildgetexp(62500000);
	if ([email protected]_lv <= 26) guildgetexp(67600000);
	if ([email protected]_lv <= 27) guildgetexp(72900000);
	if ([email protected]_lv <= 28) guildgetexp(78400000);
	if ([email protected]_lv <= 29) guildgetexp(84100000);
	if ([email protected]_lv <= 30) guildgetexp(90000000);
	if ([email protected]_lv <= 31) guildgetexp(96100000);
	if ([email protected]_lv <= 32) guildgetexp(102400000);
	if ([email protected]_lv <= 33) guildgetexp(108900000);
	if ([email protected]_lv <= 34) guildgetexp(115600000);
	if ([email protected]_lv <= 35) guildgetexp(122500000);
	if ([email protected]_lv <= 36) guildgetexp(129600000);
	if ([email protected]_lv <= 37) guildgetexp(136900000);
	if ([email protected]_lv <= 38) guildgetexp(144400000);
	if ([email protected]_lv <= 39) guildgetexp(152100000);
	if ([email protected]_lv <= 40) guildgetexp(160000000);
	if ([email protected]_lv <= 41) guildgetexp(168100000);
	if ([email protected]_lv <= 42) guildgetexp(176400000);
	if ([email protected]_lv <= 43) guildgetexp(184900000);
	if ([email protected]_lv <= 44) guildgetexp(193600000);
	if ([email protected]_lv <= 45) guildgetexp(202500000);
	if ([email protected]_lv <= 46) guildgetexp(211600000);
	if ([email protected]_lv <= 47) guildgetexp(220900000);
	if ([email protected]_lv <= 48) guildgetexp(230400000);
	if ([email protected]_lv <= 49) guildgetexp(240100000);
	if ([email protected]_lv < 50) guildgetexp(250000000);


	// guild skills.
	guildskill(10000,1);
	guildskill(10001,1);
	guildskill(10002,1);
	guildskill(10003,3);
	guildskill(10004,10);
	guildskill(10005,1);
	guildskill(10006,5);
	guildskill(10007,5);
	guildskill(10008,5);
	guildskill(10009,5);
	guildskill(10010,1);
	guildskill(10011,3);
	guildskill(10012,1);
	guildskill(10013,1);
	guildskill(10014,1);
	guildskill(10016,5);

	mes "Done";
	close;
}

it would be more accurate if there was a script command like *getguildinfo that retrieve the guild information.

http://prntscr.com/lxfp0o 

 

every guild I create and I try to talk to the NPC to maximize lvl this message appears @Emistry

Edited by IsabelaFernandez

Share this post


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

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.