From 4d16e246509cdb398b22946a3591d1e062c8fc4b Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 14 Jun 2018 17:55:18 -0300 Subject: Experimental stuff. --- npc/003-1/events.txt | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) (limited to 'npc/003-1/events.txt') diff --git a/npc/003-1/events.txt b/npc/003-1/events.txt index 0d7bebbaf..dc1ac61ee 100644 --- a/npc/003-1/events.txt +++ b/npc/003-1/events.txt @@ -4,6 +4,7 @@ // Description: // The NPCs on this file are for when events end. Must be manually enabled. +// Easte 003-1,47,53,0 script Lilica#final NPC_EASTER,{ mesn; mesq l("Easter is over! I am the last chance to get rid of eggs!!"); @@ -49,4 +50,43 @@ OnInit: end; } +// Whatever event use #RARE_POINTS +// Which is a script variable, meaning it will be a really special event. +003-1,47,53,0 script Pydisgner#spoints NPC_GUGLI,{ + openshop; +OnInit: + .sex = G_OTHER; + .distance=5; + + tradertype(NST_CUSTOM); + + sellitem ThunderStaff, 14000; + sellitem PiouEgg, 9350; + sellitem Googles, 8000; + + sellitem StrangeCoin, 10; + + sellitem WoodenSword, 10000; + sellitem LeatherShirt, 800; + sellitem JeansShorts, 600; + sellitem BronzeGift, 500; + sellitem CasinoCoins, 35; + sellitem Plushroom, 20; + sellitem Chagashroom, 20; + + disablenpc(.name$); + end; + +OnCountFunds: + setcurrency(#RARE_POINTS); + end; + +OnPayFunds: + if( #RARE_POINTS < @price ) + end; + #RARE_POINTS=#RARE_POINTS-@price; + purchaseok(); + end; + +} -- cgit v1.2.3-60-g2f50