summaryrefslogtreecommitdiff
path: root/npc/sample
diff options
context:
space:
mode:
Diffstat (limited to 'npc/sample')
-rw-r--r--npc/sample/PCLoginEvent.txt22
1 files changed, 21 insertions, 1 deletions
diff --git a/npc/sample/PCLoginEvent.txt b/npc/sample/PCLoginEvent.txt
index d668c0960..707398277 100644
--- a/npc/sample/PCLoginEvent.txt
+++ b/npc/sample/PCLoginEvent.txt
@@ -26,8 +26,28 @@
// 7) Modify this script to your liking and give your players a surprise
// 8) Remember: IT RUNS LIKE A NORMAL NPC. BUT THE ONLY WAY TO 'CLICK' IT IS BY
// LOGGING ON
+// 9) There are 2 ways to use this - check the examples below!
-
+//
+// The 1st type -- with 'event_script_type' set to 0
+//
prontera.gat,0,0,0 script PCLoginEvent -1,{
end;
+}
+
+//
+// The 2nd type -- with 'event_script_type' set to 1
+//
+prontera.gat,155,175,0 script An NPC 46,{
+ close;
+PCLoginEvent:
+ // this part will run
+ close;
+}
+
+prontera.gat,156,176,0 script Another NPC 46,{
+ close;
+PCLoginEvent:
+ // this part runs AS WELL
+ close;
} \ No newline at end of file