Jump to content
  • 0

Guild Maker


Question

Posted

I want a npc that requires something in order to make a guild. Its like a quest npc but the reward is the npc let you choose your guild name and make it for you and assign you to be the guild master.

 

Anyways, How can i remove all the emperium on the monster that drops it?



I want to add this also (Item Script)

If Thief,Swordsman, Star Gladiator and Blacksmith type > +30 Str

If Mage, Soul Linker, Ninja and Acolyte > +30 Int

If Archer, Gunslinger >+30 Dex



uppp



upppp



uppp



upppppppppppppppppppp



upppppppp

3 answers to this question

Recommended Posts

Posted (edited)
prontera,159,180,5	script	hjkl	456,{

	if( getcharid(2) ) {
		mes "sorry I can't do nothing for you";
		close;
	}
	mes "make a guild ?";
	if( select( "yes", "no" ) -1 ) close;
	if( countitem( .item_req ) < .item_num ) {
		mes "sorry you need "+ .item_num +" "+ getitemname( .item_req );
		close;
	}
	input .@guild_name$;
	atcommand "@guild "+ .@guild_name$;
        delitem .item_req, .item_num;
	close;
OnPCStatCalcEvent:
	if( getguildmasterid( getcharid(2) ) == getcharid(0) ) {
		.@eac = eaclass()&EAJ_BASEMASK ;
		if( .@eac == EAJ_THIEF || .@eac == EAJ_SWORDMAN || .@eac == EAJ_MERCHANT || Class == 4047 ) {
			bonus bStr, 30;
			//dispbottom "ok 1";
		}
		else if( .@eac == EAJ_MAGE || .@eac == EAJ_NINJA || .@eac == EAJ_ACOLYTE || Class == 4049 ){
			bonus bInt, 30;
			//dispbottom "ok 2";
		}
		else if( .@eac == EAJ_ARCHER || .@eac == EAJ_GUNSLINGER ) {
			bonus bDex, 30;
			//dispbottom "ok 3";
		}
	}
	end;
OnInit:
	.item_req = 501; // Item ID req
	.item_num = 1 ; // item number
	end;
}

You need to patch OnPCStatCalcEvent

http://rathena.org/board/index.php?app=core&module=attach&section=attach&attach_id=5315

Edited by Capuche
Posted
prontera,159,180,5	script	hjkl	456,{

	if( getcharid(2) ) {
		mes "sorry I can't do nothing for you";
		close;
	}
	mes "make a guild ?";
	if( select( "yes", "no" ) -1 ) close;
	if( countitem( .item_req ) < .item_num ) {
		mes "sorry you need "+ .item_num +" "+ getitemname( .item_req );
		close;
	}
	input .@guild_name$;
	atcommand "@guild "+ .@guild_name$;
	close;
OnPCStatCalcEvent:
	if( getguildmasterid( getcharid(2) ) == getcharid(0) ) {
		.@eac = eaclass()&EAJ_BASEMASK ;
		if( .@eac == EAJ_THIEF || .@eac == EAJ_SWORDMAN || .@eac == EAJ_MERCHANT || Class == 4047 ) {
			bonus bStr, 30;
			//dispbottom "ok 1";
		}
		else if( .@eac == EAJ_MAGE || .@eac == EAJ_NINJA || .@eac == EAJ_ACOLYTE || Class == 4049 ){
			bonus bInt, 30;
			//dispbottom "ok 2";
		}
		else if( .@eac == EAJ_ARCHER || .@eac == EAJ_GUNSLINGER ) {
			bonus bDex, 30;
			//dispbottom "ok 3";
		}
	}
	end;
OnInit:
	.item_req = 501; // Item ID req
	.item_num = 1 ; // item number
	end;
}

You need to patch OnPCStatCalcEvent

http://rathena.org/board/index.php?app=core&module=attach&section=attach&attach_id=5315

i think it's a item script.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...