Jump to content
  • 0

Npc sommon Mobs and Disable/enable!


tathanngudong

Question


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  64
  • Reputation:   3
  • Joined:  04/17/15
  • Last Seen:  

Hi hi hi...It's me again!

I want to create a NPC sommon mobs ( When the monster appeared he would disappear and When monsters die he will reappear! )

when killing monsters of course, the success will be rewarded item!

Please,who know how make it? Help me!!!

Thanks you!

Edited by tathanngudong
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

you can try this

prontera,155,181,5	script	Sample	4_F_KAFRA1,{
	mes "Summon monster?";
	if ( select( "Summon Mob","Cancel" ) == 1 ) {
		monster "this",-1,-1,"Monster",1002,1,.npc_name$+"::OnDie";
		hideonnpc .npc_name$; 
	}
	close;
	
	OnInit:
		.npc_name$ = strnpcinfo(3);
		end;
		
	OnDie:
		hideoffnpc .npc_name$;
		
		// rewards
		getitem 512,1;
		getitem 512,2;
		getitem 512,3;
		end;
}

 

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