From ba1e827b6b4c17c35a163e6b55be8c122de632b8 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 10 Apr 2021 03:00:20 -0300 Subject: Add several convenience functions. Fix some bugs regarding misuse of readparam() --- npc/commands/python.txt | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 npc/commands/python.txt (limited to 'npc/commands/python.txt') diff --git a/npc/commands/python.txt b/npc/commands/python.txt new file mode 100644 index 00000000..5273731c --- /dev/null +++ b/npc/commands/python.txt @@ -0,0 +1,27 @@ +// The Mana World script +// Author: Gumi +// Author: Jesusalva +// +// Stomp stomp stomp (use with caution) + +- script @python 32767,{ + end; + +OnCall: + specialeffect(34, AREA, playerattached()); + .@zone$=getmapinfo(MAPINFO_ZONE, .@mapa$); + if (.@zone$ == "MMO") + end; + sc_start SC_CASH_DEATHPENALTY, 1000, 1; + addtimer 380, .name$+"::OnKill"; + end; + +OnKill: + percentheal -100, -100; + //dispbottom l("Oh look, it is Cupid!"); + end; + +OnInit: + bindatcmd "python", "@python::OnCall", 60, 60, 1; + end; +} -- cgit v1.2.3-70-g09d2