diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-05-07 10:00:24 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-05-07 10:00:24 -0300 |
commit | 50ca5da91834dae1a8e12003cf84487508ec2ed6 (patch) | |
tree | 41ba5ce92c8223fb842f6d1d08e8adc305578c86 | |
parent | c4d3f052f8c5a87f16413a5dd6709f88135040bc (diff) | |
download | serverdata-50ca5da91834dae1a8e12003cf84487508ec2ed6.tar.gz serverdata-50ca5da91834dae1a8e12003cf84487508ec2ed6.tar.bz2 serverdata-50ca5da91834dae1a8e12003cf84487508ec2ed6.tar.xz serverdata-50ca5da91834dae1a8e12003cf84487508ec2ed6.zip |
Actually a simple bug.
-rw-r--r-- | npc/functions/treasure.txt | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/npc/functions/treasure.txt b/npc/functions/treasure.txt index ccbc827b..38a809f4 100644 --- a/npc/functions/treasure.txt +++ b/npc/functions/treasure.txt @@ -56,7 +56,7 @@ function script TreasureBox { // (Random) Treasure Chest // Authored by Jesusalva // Regenerates every 6 hours -001-3-0,0,0,0 script #chest_001_3_0 NPC_CHEST,{ +001-3-0,0,0,0 script #chest_001-3-0 NPC_CHEST,{ /* // Extract the map name - Seems unused explode(.@ni$, .name$, "_"); @@ -106,8 +106,8 @@ OnClock1956: break; } // Remember the +20 -20 margin adjustment - .@x = rand2(20, getmapinfo(MAPINFO_SIZE_X, .@m$)-20); - .@y = rand2(20, getmapinfo(MAPINFO_SIZE_X, .@m$)-20); + .@x = rand2(20, getmapinfo(MAPINFO_SIZE_X, .map$)-20); + .@y = rand2(20, getmapinfo(MAPINFO_SIZE_X, .map$)-20); ++.@e; } .busy=false; @@ -116,10 +116,10 @@ OnClock1956: } // Lets bring some treasure to The Mana World -008-3-4,0,0,0 duplicate(#chest_001_3_0) #chest_008_3_4 NPC_TREASURE -008-3-5,0,0,0 duplicate(#chest_001_3_0) #chest_008_3_5 NPC_TREASURE -008-3-6,0,0,0 duplicate(#chest_001_3_0) #chest_008_3_6 NPC_TREASURE +008-3-4,0,0,0 duplicate(#chest_001-3-0) #chest_008-3-4 NPC_TREASURE +008-3-5,0,0,0 duplicate(#chest_001-3-0) #chest_008-3-5 NPC_TREASURE +008-3-6,0,0,0 duplicate(#chest_001-3-0) #chest_008-3-6 NPC_TREASURE -012-3-1,0,0,0 duplicate(#chest_001_3_0) #chest_012_3_1 NPC_TREASURE -012-3-3,0,0,0 duplicate(#chest_001_3_0) #chest_012_3_3 NPC_TREASURE +012-3-1,0,0,0 duplicate(#chest_001-3-0) #chest_012-3-1 NPC_TREASURE +012-3-3,0,0,0 duplicate(#chest_001-3-0) #chest_012-3-3 NPC_TREASURE |