summaryrefslogtreecommitdiff
path: root/npc/003-1
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-05-17 13:51:05 -0300
committerJesusaves <cpntb1@ymail.com>2020-05-17 13:51:05 -0300
commit937202e881e76a9fd7a3c2b988f14ca01dce264d (patch)
tree102d6dfbc769cd92b885cb7b987475c51746c0a7 /npc/003-1
parent61c08aebefa260a32afce0453ebe38dda0411d25 (diff)
downloadserverdata-937202e881e76a9fd7a3c2b988f14ca01dce264d.tar.gz
serverdata-937202e881e76a9fd7a3c2b988f14ca01dce264d.tar.bz2
serverdata-937202e881e76a9fd7a3c2b988f14ca01dce264d.tar.xz
serverdata-937202e881e76a9fd7a3c2b988f14ca01dce264d.zip
Prepare to deprecate and unify 003-1 NPCs
Diffstat (limited to 'npc/003-1')
-rw-r--r--npc/003-1/events.txt210
1 files changed, 175 insertions, 35 deletions
diff --git a/npc/003-1/events.txt b/npc/003-1/events.txt
index d666a03e3..75148ee6d 100644
--- a/npc/003-1/events.txt
+++ b/npc/003-1/events.txt
@@ -7,7 +7,67 @@
// Use duplicate() command to make it available in other towns as well
// Easter
-003-1,47,53,0 script Lilica#final NPC_EASTER,{
+003-1,47,53,0 script Aurora NPC_FEMALE,{
+ function handleEaster();
+ function handleValentine();
+ function handleStPatrick();
+ function handleAurora();
+ mesn;
+ mesq l("Heya.");
+ close;
+
+
+// OnRestore causes OnInit to start again
+OnRestore:
+ setnpcdisplay .name$, "Aurora", NPC_FEMALE;
+OnInit:
+ setunitdata(.@npcId, UDT_HEADTOP, Cap);
+ setunitdata(.@npcId, UDT_HEADMIDDLE, RedStockings);
+ setunitdata(.@npcId, UDT_HEADBOTTOM, BunnyEars);
+ //setunitdata(.@npcId, UDT_WEAPON, GMRobe);
+ setunitdata(.@npcId, UDT_HAIRSTYLE, 14);
+ setunitdata(.@npcId, UDT_HAIRCOLOR, 18);
+ .sex = G_FEMALE;
+ .distance = 5;
+ end;
+
+// Overloaded
+OnValentine:
+ setnpcdisplay .name$, "Demure#ValentineFinal", NPC_FEMALE;
+ .@npcId = getnpcid(.name$);
+ setunitdata(.@npcId, UDT_HEADTOP, Cap);
+ setunitdata(.@npcId, UDT_HEADMIDDLE, RedStockings);
+ setunitdata(.@npcId, UDT_HEADBOTTOM, BunnyEars);
+ setunitdata(.@npcId, UDT_WEAPON, GMRobe);
+ setunitdata(.@npcId, UDT_HAIRSTYLE, 14);
+ setunitdata(.@npcId, UDT_HAIRCOLOR, 18);
+ end;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+/////////////////////////////////////////////////////////////////////////////////
+function handleEaster {
if (EASTER_YEAR != gettime(GETTIME_YEAR)) {
EASTER_YEAR=gettime(GETTIME_YEAR);
if (strcharinfo(0) == $@easter_name$[0]) {
@@ -31,44 +91,65 @@
mesn;
mesq l("Easter is over! I am the last chance to get rid of eggs!!");
mesc l("Note: Golden and Silver Eggs are deleted after the next event end."), 1;
+ // Heartbeat
+ select
+ l("Trade Silver Eggs"),
+ l("Trade Golden Eggs"),
+ l("View LeaderBoard"),
+ l("Thanks Lilica.");
+ mes "";
+ switch (@menu) {
+ case 1:
+ openshop "#eastershop1";
+ closedialog;
+ break;
+ case 2:
+ openshop "#eastershop2";
+ closedialog;
+ break;
+ case 3:
+ mesn l("Easter @@", gettime(GETTIME_YEAR));
+ mes("1."+$@easter_name$[0]+" ("+$@easter_value[0]+")");
+ mes("2."+$@easter_name$[1]+" ("+$@easter_value[1]+")");
+ mes("3."+$@easter_name$[2]+" ("+$@easter_value[2]+")");
+ mes("4."+$@easter_name$[3]+" ("+$@easter_value[3]+")");
+ mes("5."+$@easter_name$[4]+" ("+$@easter_value[4]+")");
+ mes("6."+$@easter_name$[5]+" ("+$@easter_value[5]+")");
+ mes("7."+$@easter_name$[6]+" ("+$@easter_value[6]+")");
+ mes("8."+$@easter_name$[7]+" ("+$@easter_value[7]+")");
+ mes("9."+$@easter_name$[8]+" ("+$@easter_value[8]+")");
+ mes("10."+$@easter_name$[9]+" ("+$@easter_value[9]+")");
+ break;
+ }
+ return;
+}
- menu
- l("Trade Silver Eggs"), L_Silver,
- l("Trade Golden Eggs"), L_Golden,
- l("View LeaderBoard"), L_Leader,
- l("Thanks Lilica."), -;
- close;
-L_Silver:
- openshop "#eastershop1";
- closedialog;
- close;
-L_Golden:
- openshop "#eastershop2";
- closedialog;
- close;
-L_Leader:
- mesn l("Easter @@", gettime(GETTIME_YEAR));
- mes("1."+$@easter_name$[0]+" ("+$@easter_value[0]+")");
- mes("2."+$@easter_name$[1]+" ("+$@easter_value[1]+")");
- mes("3."+$@easter_name$[2]+" ("+$@easter_value[2]+")");
- mes("4."+$@easter_name$[3]+" ("+$@easter_value[3]+")");
- mes("5."+$@easter_name$[4]+" ("+$@easter_value[4]+")");
- mes("6."+$@easter_name$[5]+" ("+$@easter_value[5]+")");
- mes("7."+$@easter_name$[6]+" ("+$@easter_value[6]+")");
- mes("8."+$@easter_name$[7]+" ("+$@easter_value[7]+")");
- mes("9."+$@easter_name$[8]+" ("+$@easter_value[8]+")");
- mes("10."+$@easter_name$[9]+" ("+$@easter_value[9]+")");
- close;
-OnInit:
- .sex = G_OTHER;
- .distance = 5;
- disablenpc(.name$);
- end;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+/////////////////////////////////////////////////////////////////////////////////
+function handleValentine {
+ return;
}
@@ -93,8 +174,67 @@ OnInit:
+
+/////////////////////////////////////////////////////////////////////////////////
+function handleStPatrick {
+ return;
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+/////////////////////////////////////////////////////////////////////////////////
+function handleAurora {
+ return;
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+// DO NOT REMOVE
+}
+
// Valentine Day
-003-1,47,53,0 script Demure#ValentineFinal NPC_FEMALE,{
+003-1,47,53,0 script Demure#ValentineFinal_ NPC_FEMALE,{
mesn;
mesq l("Valentine Day is over!");
if (#VALENTINE_SENT+#VALENTINE_OPENED <= 0)
@@ -181,7 +321,7 @@ OnInit:
// St. Patrick Day
-003-1,47,53,0 script Patrick Saulc NPC_WEIRDGREEN,{
+003-1,47,53,0 script Patrick Saulc_ NPC_WEIRDGREEN,{
mesn;
mesc l("It's St. Patrick Event!"), 3;
mes l("At 00:00, 06:00, 12:00, 15:00, 18:00 and 21:00 server time");