View difference between Paste ID: T9S2MgTz and NsH24zfU
SHOW: | | - or go back to the newest paste.
1-
//--- Aura Script -----------------------------------------------------------
1+
2-
// Lorna
2+
3-
//--- Description -----------------------------------------------------------
3+
public class LornaScript : NpcScript
4-
// Lorna script for thanksgiving event
4+
{
5-
//---------------------------------------------------------------------------
5+
	public override void Load()
6-
6+
	{
7-
public class LornaScript : NpcScript
7+
		SetRace(10001);
8-
{
8+
		SetName("_tutorial_lorna");
9-
	public override void Load()
9+
		SetBody(height: 0.4f);
10-
	{
10+
		SetFace(skinColor: 16, eyeType: 27, eyeColor: 43, mouthType: 89);
11-
		SetRace(10001);
11+
		
12-
		SetName("_tutorial_lorna");
12+
		
13-
		SetBody(height: 0.4f);
13+
		if (IsEventActive("aura_thanksgiving_event"))
14-
		SetFace(skinColor: 16, eyeType: 27, eyeColor: 43, mouthType: 89);
14+
				SetLocation(14, 35436, 34343, 29);
15-
		
15+
16-
		
16+
		EquipItem(Pocket.Face, 3936, 0x00770000, 0x003C61AC, 0x00DCEFE4);
17-
		if (IsEventActive("aura_thanksgiving_event"))
17+
		EquipItem(Pocket.Hair, 3022, 0x004070A0, 0x004070A0, 0x004070A0);
18-
				SetLocation(14, 35436, 34343, 29);
18+
		EquipItem(Pocket.Armor, 15026, 0x00B0C0FF, 0x00FFFFFF, 0x00103080);
19-
19+
		EquipItem(Pocket.Shoe, 17002, 0x003F463E, 0x00FFD912, 0x00D7E584);
20-
		EquipItem(Pocket.Face, 3936, 0x00770000, 0x003C61AC, 0x00DCEFE4);
20+
		EquipItem(Pocket.Head, 18016, 0x00103080, 0x007E4D01, 0x00FAB757);		
21-
		EquipItem(Pocket.Hair, 3022, 0x004070A0, 0x004070A0, 0x004070A0);
21+
		EquipItem(Pocket.RightHand1, 40393, 0x00808080, 0x00808080, 0x00808080);
22-
		EquipItem(Pocket.Armor, 15026, 0x00B0C0FF, 0x00FFFFFF, 0x00103080);
22+
		EquipItem(Pocket.RightHand2, 40004, 0x00000000, 0x00000000, 0x00A09030);
23-
		EquipItem(Pocket.Shoe, 17002, 0x003F463E, 0x00FFD912, 0x00D7E584);
23+
		EquipItem(Pocket.LeftHand1, 40394, 0x00808080, 0x00808080, 0x00808080);
24-
		EquipItem(Pocket.Head, 18016, 0x00103080, 0x007E4D01, 0x00FAB757);		
24+
25-
		EquipItem(Pocket.RightHand1, 40393, 0x00808080, 0x00808080, 0x00808080);
25+
26-
		EquipItem(Pocket.RightHand2, 40004, 0x00000000, 0x00000000, 0x00A09030);
26+
		AddPhrase("WHAT DID YOU SAY?!");
27-
		EquipItem(Pocket.LeftHand1, 40394, 0x00808080, 0x00808080, 0x00808080);
27+
		AddPhrase("I think I ate too much turkey...");
28-
28+
		AddPhrase("Lets make a feast for all of Uladh.");
29-
29+
		AddPhrase("Hello, I'm Lorna Rissa.");
30-
		AddPhrase("WHAT DID YOU SAY?!");
30+
		AddPhrase("Ahaha, he he, Haah..");
31-
		AddPhrase("I think I ate too much turkey...");
31+
		AddPhrase("My heart is pounding.");
32-
		AddPhrase("Lets make a feast for all of Uladh.");
32+
		AddPhrase("Inhale. Exhale.");
33-
		AddPhrase("Hello, I'm Lorna Rissa.");
33+
	}
34-
		AddPhrase("Ahaha, he he, Haah..");
34+
35-
		AddPhrase("My heart is pounding.");
35+
	protected override async Task Talk()
36-
		AddPhrase("Inhale. Exhale.");
36+
	{
37-
	}
37+
		SetBgm("NPC_LornaPan.mp3");
38-
38+
		
39-
	protected override async Task Talk()
39+
		await Intro(L("A petite girl in a long, flowing skirt.<br/>She has lively blue eyes and straightforward expression.<br/>Her face lights up when your gaze meets hers, and she approaches."));
40-
	{
40+
		
41-
		SetBgm("NPC_LornaPan.mp3");
41+
		Msg("<npcportrait name='lorna'/>Hello, <username/>. How are you?", Button("Coupon Exchange", "@coupon"), Button("End Conversation","@EndChat"));
42-
		
42+
		
43-
		await Intro(L("A petite girl in a long, flowing skirt.<br/>She has lively blue eyes and straightforward expression.<br/>Her face lights up when your gaze meets hers, and she approaches."));
43+
		switch (await Select())
44-
		
44+
		{
45-
		Msg("<npcportrait name='lorna'/>Hello, <username/>. How are you?", Button("Coupon Exchange", "@coupon"), Button("End Conversation","@EndChat"));
45+
			case "@coupon":
46-
		
46+
				Msg("<npcportrait name='lorna'/>Would you like to exchange coupons?", Button("Sturdy ToolBox x5", "@SturdyToolbox"), Button("Thanksgiving Giftbox x10", "@ThanksgivingBox"), Button("Lorna && Pan Giftbox x15","@LornaPanBox"), Button("End Conversation", "@EndChat"));
47-
		switch (await Select())
47+
				
48-
		{
48+
			switch (await Select())
49-
			case "@coupon":
49+
			{
50-
				Msg("<npcportrait name='lorna'/>Would you like to exchange coupons?", Button("Sturdy ToolBox x5", "@SturdyToolbox"), Button("Thanksgiving Giftbox x10", "@ThanksgivingBox"), Button("Lorna && Pan Giftbox x15","@LornaPanBox"), Button("End Conversation", "@EndChat"));
50+
				case "@SturdyToolbox":
51-
				
51+
					if (HasItem(70295, 5))
52-
			switch (await Select())
52+
					{
53-
			{
53+
					RemoveItem(70295, 5);
54-
				case "@SturdyToolbox":
54+
					GiveItem(92653);
55-
					if (HasItem(70295, 5))
55+
					Msg("<npcportrait name='lorna'/>All right here you go, one Participation Commemoration Box, containing sturdy tools.");
56-
					{
56+
					break;
57-
					RemoveItem(70295, 5);
57+
					}
58-
					GiveItem(92653);
58+
					else
59-
					Msg("<npcportrait name='lorna'/>All right here you go, one Participation Commemoration Box, containing sturdy tools.");
59+
					{
60-
					break;
60+
					Msg("<npcportrait name='lorna'/>You don't have enough Thanksgiving Coupons. Come back when you have enough.");
61-
					}
61+
					break;
62-
					else
62+
					}
63-
					{
63+
										
64-
					Msg("<npcportrait name='lorna'/>You don't have enough Thanksgiving Coupons. Come back when you have enough.");
64+
				case "@ThanksgivingBox":
65-
					break;
65+
					if (HasItem(70295, 10))
66-
					}
66+
					{
67-
										
67+
					RemoveItem(70295, 10);
68-
				case "@ThanksgivingBox":
68+
					GiveItem(91431);
69-
					if (HasItem(70295, 10))
69+
					Msg("<npcportrait name='lorna'/>All right here you go, one Thanksgiving Bust Gift Box.");
70-
					{
70+
					break;
71-
					RemoveItem(70295, 10);
71+
					}
72-
					GiveItem(91431);
72+
					else
73-
					Msg("<npcportrait name='lorna'/>All right here you go, one Thanksgiving Bust Gift Box.");
73+
					{
74-
					break;
74+
					Msg("<npcportrait name='lorna'/>You don't have enough Thanksgiving Coupons. Come back when you have enough.");
75-
					}
75+
					break;
76-
					else
76+
					}
77-
					{
77+
				
78-
					Msg("<npcportrait name='lorna'/>You don't have enough Thanksgiving Coupons. Come back when you have enough.");
78+
				case "@LornaPanBox":
79-
					break;
79+
					if (HasItem(70295, 15))
80-
					}
80+
					{
81-
				
81+
					RemoveItem(70295, 15);
82-
				case "@LornaPanBox":
82+
					GiveItem(91264);
83-
					if (HasItem(70295, 15))
83+
					Msg("<npcportrait name='lorna'/>All right here you go, a special gift from Pan and I.");
84-
					{
84+
					break;
85-
					RemoveItem(70295, 15);
85+
					}
86-
					GiveItem(91264);
86+
					else
87-
					Msg("<npcportrait name='lorna'/>All right here you go, a special gift from Pan and I.");
87+
					{
88-
					break;
88+
					Msg("<npcportrait name='lorna'/>You don't have enough Thanksgiving Coupons. Come back when you have enough.");
89-
					}
89+
					break;
90-
					else
90+
					}
91-
					{
91+
					
92-
					Msg("<npcportrait name='lorna'/>You don't have enough Thanksgiving Coupons. Come back when you have enough.");
92+
				case "@EndChat":
93-
					break;
93+
					break;
94-
					}
94+
				
95-
					
95+
			}
96-
				case "@EndChat":
96+
				break;
97-
					break;
97+
			
98-
				
98+
			case "@EndChat":
99-
			}
99+
				break;
100-
				break;
100+
		}
101-
			
101+
102-
			case "@EndChat":
102+
		End();
103-
				break;
103+
	}
104-
		}
104+