Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

230 - Test of the Summoner #4

Open
MimisK13 opened this issue Oct 4, 2018 · 0 comments
Open

230 - Test of the Summoner #4

MimisK13 opened this issue Oct 4, 2018 · 0 comments

Comments

@MimisK13
Copy link
Owner

MimisK13 commented Oct 4, 2018

OLD(c0):

npc_begin
	npc_name = [silhouette_a]

	my_dying_event_begin
		handler(c1, c0) =
		[
			c0 = GetLastAttacker();
			if (c0.npc_class_id == @unicorn_racer)
			{	
				if (myself.sm.master)
				{
					c1 = myself.sm.master;			
					if (HaveMemo(c1, @test_of_summoner) && OwnItemCount(c1, @crystal_of_inprogress3))
					{
						GiveItem1(c1, @crystal_of_defeat3, 1);
						DeleteItem1(c1, @crystal_of_inprogress3, 1);
						DeleteItem1(c1, @crystal_of_starting3, 1);
						Say(MakeFString(0023083,"","","","",""));							
					}			
				}
			 
			} else if (c0.npc_class_id == @pako_the_cat) {
			
				if (myself.sm.master)
				{
					c1 = myself.sm.master;
					// c1은 팻의 주인입니다.			
					if (HaveMemo(c1, @test_of_summoner) && OwnItemCount(c1, @crystal_of_inprogress1))
					{
						GiveItem1(c1, @crystal_of_defeat1, 1);
						DeleteItem1(c1, @crystal_of_inprogress1, 1);
						DeleteItem1(c1, @crystal_of_starting1, 1);
						Say(MakeFString(0023082,"","","","",""));							
					}
				}
				
			} else 	if (c0.npc_class_id == @mimi_the_cat) {
			
				if (myself.sm.master)
				{
					c1 = myself.sm.master;
					// c1은 팻의 주인입니다.			
					if (HaveMemo(c1, @test_of_summoner) && OwnItemCount(c1, @crystal_of_inprogress2))
					{
						GiveItem1(c1, @crystal_of_defeat2, 1);
						DeleteItem1(c1, @crystal_of_inprogress2, 1);
						DeleteItem1(c1, @crystal_of_starting2, 1);
						Say(MakeFString(0023081,"","","","",""));							
					}
				}
				
			} else if (c0.npc_class_id == @unicorn_phantasm) {
			
				if (myself.sm.master)
				{
					c1 = myself.sm.master;
					// c1은 팻의 주인입니다.			
					if (HaveMemo(c1, @test_of_summoner) && OwnItemCount(c1, @crystal_of_inprogress4))
					{
						GiveItem1(c1, @crystal_of_defeat4, 1);
						DeleteItem1(c1, @crystal_of_inprogress4, 1);
						DeleteItem1(c1, @crystal_of_starting4, 1);
						Say(MakeFString(0023080,"","","","",""));
						
					}
				}
			
			} else	if (c0.npc_class_id == @silhouette_tilfo) {
			
				if (myself.sm.master)
				{
					c1 = myself.sm.master;
					// c1은 팻의 주인입니다.			
					if (HaveMemo(c1, @test_of_summoner) && OwnItemCount(c1, @crystal_of_inprogress6))
					{
						GiveItem1(c1, @crystal_of_defeat6, 1);
						DeleteItem1(c1, @crystal_of_inprogress6, 1);
						DeleteItem1(c1, @crystal_of_starting6, 1);
						Say(MakeFString(0023079,"","","","",""));							
					}
				}				
			 
			} else if (c0.npc_class_id == @shadow_turen) {  
							
				if (myself.sm.master)
				{
					c1 = myself.sm.master;
					// c1은 팻의 주인입니다.			
					if (HaveMemo(c1, @test_of_summoner) && OwnItemCount(c1, @crystal_of_inprogress5))
					{
						GiveItem1(c1, @crystal_of_defeat5, 1);
						DeleteItem1(c1, @crystal_of_inprogress5, 1);
						DeleteItem1(c1, @crystal_of_starting5, 1);
						Say(MakeFString(0023078,"","","","",""));							
					}		
				}
			}
		]
	my_dying_event_end
npc_end

NEW (c1)

npc_begin
	npc_name = [silhouette_a]

	my_dying_event_begin
		handler(c1, c0) =
		[
			c0 = GetLastAttacker();
			if (c0.npc_class_id == @unicorn_racer)
			{	
				if (myself.sm.master)
				{
					c1 = myself.sm.master;
					if (HaveMemo(c1, @test_of_summoner) && OwnItemCount(c1, @crystal_of_inprogress3))
					{
						GiveItem1(c1, @crystal_of_defeat3, 1);
						SoundEffect(c1, "ItemSound.quest_itemget");
						DeleteItem1(c1, @crystal_of_inprogress3, OwnItemCount(c1, @crystal_of_inprogress3));
						DeleteItem1(c1, @crystal_of_starting3, OwnItemCount(c1, @crystal_of_starting3));
					}
				}
			
			} else if (c0.npc_class_id == @pako_the_cat) {
			
				if (myself.sm.master)
				{
					c1 = myself.sm.master;
					if (HaveMemo(c1, @test_of_summoner) && OwnItemCount(c1, @crystal_of_inprogress1))
					{
						GiveItem1(c1, @crystal_of_defeat1, 1);
						SoundEffect(c1, "ItemSound.quest_itemget");
						DeleteItem1(c1, @crystal_of_inprogress1, OwnItemCount(c1, @crystal_of_inprogress1));
						DeleteItem1(c1, @crystal_of_starting1, OwnItemCount(c1, @crystal_of_starting1));
					}
				}
			
			} else 	if (c0.npc_class_id == @mimi_the_cat) {
			
				if (myself.sm.master)
				{
					c1 = myself.sm.master;
					if (HaveMemo(c1, @test_of_summoner) && OwnItemCount(c1, @crystal_of_inprogress2))
					{
						GiveItem1(c1, @crystal_of_defeat2, 1);
						SoundEffect(c1, "ItemSound.quest_itemget");
						DeleteItem1(c1, @crystal_of_inprogress2, OwnItemCount(c1, @crystal_of_inprogress2));
						DeleteItem1(c1, @crystal_of_starting2, OwnItemCount(c1, @crystal_of_starting2));
					}
				}
				
			} else if (c0.npc_class_id == @unicorn_phantasm) {
			
				if (myself.sm.master)
				{
					c1 = myself.sm.master;
					if (HaveMemo(c1, @test_of_summoner) && OwnItemCount(c1, @crystal_of_inprogress4))
					{
						GiveItem1(c1, @crystal_of_defeat4, 1);
						SoundEffect(c1, "ItemSound.quest_itemget");
						DeleteItem1(c1, @crystal_of_inprogress4, OwnItemCount(c1, @crystal_of_inprogress4));
						DeleteItem1(c1, @crystal_of_starting4, OwnItemCount(c1, @crystal_of_starting4));
					}
				}
			
			} else	if (c0.npc_class_id == @silhouette_tilfo) {
			
				if (myself.sm.master)
				{
					c1 = myself.sm.master;
					if (HaveMemo(c1, @test_of_summoner) && OwnItemCount(c1, @crystal_of_inprogress6))
					{
						GiveItem1(c1, @crystal_of_defeat6, 1);
						SoundEffect(c1, "ItemSound.quest_itemget");
						DeleteItem1(c1, @crystal_of_inprogress6, OwnItemCount(c1, @crystal_of_inprogress6));
						DeleteItem1(c1, @crystal_of_starting6, OwnItemCount(c1, @crystal_of_starting6));
					}
				}
			
			} else if (c0.npc_class_id == @shadow_turen) {
			
				if (myself.sm.master)
				{
					c1 = myself.sm.master;
					if (HaveMemo(c1, @test_of_summoner) && OwnItemCount(c1, @crystal_of_inprogress5))
					{
						GiveItem1(c1, @crystal_of_defeat5, 1);
						SoundEffect(c1, "ItemSound.quest_itemget");
						DeleteItem1(c1, @crystal_of_inprogress5, OwnItemCount(c1, @crystal_of_inprogress5));
						DeleteItem1(c1, @crystal_of_starting5, OwnItemCount(c1, @crystal_of_starting5));
					}
				}
			}
		]
	my_dying_event_end
npc_end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant