Jump to content
  • 0

Guild Maker


Ninjamon

Question


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.02
  • Content Count:  295
  • Reputation:   2
  • Joined:  03/06/12
  • Last Seen:  

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

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   616
  • Joined:  07/05/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  209
  • Topics Per Day:  0.04
  • Content Count:  892
  • Reputation:   27
  • Joined:  12/09/11
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   616
  • Joined:  07/05/12
  • Last Seen:  

bonus bStr, 30;

You can use an item script with the patch OnPCStatCalcEvent

Read this topic

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...