summaryrefslogtreecommitdiff
path: root/npc/007-1
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-10-23 23:43:53 -0300
committerJesusaves <cpntb1@ymail.com>2022-10-23 23:43:53 -0300
commitc72bff04727cc001b6162f2886ad1952097d5ac1 (patch)
tree20fdf05b22ab6b990757b13d374eaa9090b2b327 /npc/007-1
parenta7c45a192268da2601cef47a4cdba987ae2327ca (diff)
downloadserverdata-c72bff04727cc001b6162f2886ad1952097d5ac1.tar.gz
serverdata-c72bff04727cc001b6162f2886ad1952097d5ac1.tar.bz2
serverdata-c72bff04727cc001b6162f2886ad1952097d5ac1.tar.xz
serverdata-c72bff04727cc001b6162f2886ad1952097d5ac1.zip
Remove some spurious maps
Diffstat (limited to 'npc/007-1')
-rw-r--r--npc/007-1/treasure.txt86
1 files changed, 0 insertions, 86 deletions
diff --git a/npc/007-1/treasure.txt b/npc/007-1/treasure.txt
deleted file mode 100644
index 9c887ed..0000000
--- a/npc/007-1/treasure.txt
+++ /dev/null
@@ -1,86 +0,0 @@
-// TMW2 scripts.
-// Author:
-// Jesusalva
-// Description:
-// Fishing and Treasure Box
-
-007-1,155,163,0 script #fishing_00710 NPC_WATER_SPLASH,{
-
- .@regen_time=200;
- fishing(2, CommonCarp, RustyKnife,
- ScorpionStinger, FatesPotion, GrassCarp); // begin or continue fishing (AlchemyBlueprintA, EquipmentBlueprintA) TODO
- close;
-
-OnInit:
- .sex = G_OTHER;
- .distance = 4;
- .cooldown = 200;
- .bp_chance = 2;
- end;
-}
-
-/*
-007-1,x,y,0 duplicate(#fishing_00710) #fishing_00711 NPC_WATER_SPLASH
-007-1,x,y,0 duplicate(#fishing_00710) #fishing_00712 NPC_WATER_SPLASH
-*/
-
-// Animation code by Evol Team
-// 4144, gumi, Hal9000, Reid
-// (Random) Treasure Chest
-// Authored by Jesusalva
-// Regenerates every 6 hours
-007-1,0,0,0 script #chest_00710 NPC_CHEST,{
-
- if (!.busy && !.empty) {
- TreasureBox();
-
- specialeffect(.dir == 0 ? 24 : 25, AREA, getnpcid()); // closed ? opening : closing
- .dir = .dir == 0 ? 2 : 6; // closed ? opening : closing
- .busy = true; // lock until available again
- initnpctimer;
- } else if (!.busy) {
- mesc l("Someone looted this treasure box already...");
- } else {
- end;
- }
- close;
-
-OnTimer160:
- .dir = .dir == 6 ? 0 : 4; // closing ? closed : open
- end;
-
-OnTimer500:
- .busy = false; // unlock
- if (.dir == 0 || .dir == 4)
- stopnpctimer; // stop here if the chest is closed
- end;
-
-OnInit:
- .busy = false;
- .distance = 2;
- .empty = false;
-
-OnClock0156:
-OnClock0756:
-OnClock1356:
-OnClock1956:
- // Try to warp randomly to a walkable spot, up to 20 attempts
- // Otherwise, it'll stay where it already is (but will close and refill).
- .@e=0; .@x=0; .@y=0;
- while (!checkcell(.map$, .@x, .@y, cell_chkpass))
- {
- if (.@e == 20) {
- .@x=.x;
- .@y=.y;
- break;
- }
- // Remember the +20 -20 margin adjustment
- .@x = rand(20, 185);
- .@y = rand(20, 180);
- ++.@e;
- }
- .busy=false;
- .empty=false;
- movenpc .name$, .@x, .@y, 0;
- end;
-}