From cf18ce071c79ae37e14ea38943e0b1d88da70a7b Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 9 Apr 2021 13:33:57 -0300 Subject: Override --- npc/items/scissors.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 npc/items/scissors.txt (limited to 'npc/items/scissors.txt') diff --git a/npc/items/scissors.txt b/npc/items/scissors.txt new file mode 100755 index 00000000..d27e8f6f --- /dev/null +++ b/npc/items/scissors.txt @@ -0,0 +1,13 @@ +function script useScissors { + getitem "Scissors", 1; + if (rand(3)) + goto L_Change; + message strcharinfo(0), "Whoops!"; + heal -20 - rand(Hp >> 1), 0; + return; + +L_Change: + callfunc "getHeadStyles"; + setlook LOOK_HAIR_STYLE, rand(1,getarraysize(@HairStyles$)); + return; +} -- cgit v1.2.3-70-g09d2