| @@ -0,0 +1,91 @@ | |||
| 1 | + | # Compiled binaries and libraries | |
| 2 | + | *.exe | |
| 3 | + | *.dll | |
| 4 | + | *.so | |
| 5 | + | *.so.* | |
| 6 | + | *.dylib | |
| 7 | + | *.lib | |
| 8 | + | *.a | |
| 9 | + | *.exp | |
| 10 | + | ||
| 11 | + | # Compiler, linker and debug output | |
| 12 | + | *.obj | |
| 13 | + | *.o | |
| 14 | + | *.iobj | |
| 15 | + | *.ipdb | |
| 16 | + | *.pdb | |
| 17 | + | *.idb | |
| 18 | + | *.ilk | |
| 19 | + | *.pch | |
| 20 | + | *.gch | |
| 21 | + | *.res | |
| 22 | + | *.tlog | |
| 23 | + | *.lastbuildstate | |
| 24 | + | *.recipe | |
| 25 | + | *.pgc | |
| 26 | + | *.pgd | |
| 27 | + | *.sbr | |
| 28 | + | *.d | |
| 29 | + | *.dwo | |
| 30 | + | *.dSYM/ | |
| 31 | + | ||
| 32 | + | # Build directories (keep project and source files) | |
| 33 | + | [Bb]uild/ | |
| 34 | + | build-*/ | |
| 35 | + | build.*/ | |
| 36 | + | cmake-build-*/ | |
| 37 | + | [Dd]ebug/ | |
| 38 | + | [Rr]elease/ | |
| 39 | + | RelWithDebInfo/ | |
| 40 | + | MinSizeRel/ | |
| 41 | + | x64/ | |
| 42 | + | Win32/ | |
| 43 | + | [Oo]bj/ | |
| 44 | + | ||
| 45 | + | # Generated CMake and Ninja files | |
| 46 | + | CMakeFiles/ | |
| 47 | + | CMakeCache.txt | |
| 48 | + | cmake_install.cmake | |
| 49 | + | CTestTestfile.cmake | |
| 50 | + | install_manifest.txt | |
| 51 | + | compile_commands.json | |
| 52 | + | CMakeUserPresets.json | |
| 53 | + | build.ninja | |
| 54 | + | rules.ninja | |
| 55 | + | .ninja_deps | |
| 56 | + | .ninja_log | |
| 57 | + | ||
| 58 | + | # IDE caches and local settings | |
| 59 | + | .vs/ | |
| 60 | + | ipch/ | |
| 61 | + | *.suo | |
| 62 | + | *.user | |
| 63 | + | *.sln.docstates | |
| 64 | + | *.VC.db | |
| 65 | + | *.VC.db-* | |
| 66 | + | *.VC.opendb | |
| 67 | + | *.opensdf | |
| 68 | + | *.sdf | |
| 69 | + | *.ncb | |
| 70 | + | *.aps | |
| 71 | + | ||
| 72 | + | # Logs and temporary files | |
| 73 | + | *.log | |
| 74 | + | *.tmp | |
| 75 | + | *.tmp_proj | |
| 76 | + | *.bak | |
| 77 | + | *.swp | |
| 78 | + | *~ | |
| 79 | + | Thumbs.db | |
| 80 | + | .DS_Store | |
| 81 | + | ||
| 82 | + | # Local server config (copy config.lua.dist to config.lua and edit it) | |
| 83 | + | /config.lua | |
| 84 | + | ||
| 85 | + | # Archived unused files (kept locally only) | |
| 86 | + | /_unused/ | |
| 87 | + | ||
| 88 | + | # Server map (too large to upload, ~180 MB) | |
| 89 | + | data/world/rd_core.otbm | |
| 90 | + | ||
| 91 | + | *.rar |
| @@ -0,0 +1,101 @@ | |||
| 1 | + | worldID = 1 | |
| 2 | + | worldType = "pvp" | |
| 3 | + | hotkeyAimbotEnabled = true | |
| 4 | + | protectionLevel = 09 | |
| 5 | + | killsToRedSkull = 07 | |
| 6 | + | killsToBlackSkull = 15 | |
| 7 | + | pzLocked = 30000 | |
| 8 | + | removeChargesFromRunes = true | |
| 9 | + | removeChargesFromPotions = true | |
| 10 | + | removeWeaponAmmunition = false | |
| 11 | + | removeWeaponCharges = false | |
| 12 | + | timeToDecreaseFrags = 24 * 60 * 60 * 1000 | |
| 13 | + | whiteSkullTime = 15 * 60 * 1000 | |
| 14 | + | stairJumpExhaustion = 2000 | |
| 15 | + | experienceByKillingPlayers = false | |
| 16 | + | expFromPlayersLevelRange = 75 | |
| 17 | + | newPlayerLevel = 1 | |
| 18 | + | ||
| 19 | + | ip = "127.0.0.1" | |
| 20 | + | passwordType = "sha1" | |
| 21 | + | bindOnlyGlobalAddress = false | |
| 22 | + | loginProtocolPort = 7171 | |
| 23 | + | gameProtocolPort = 7172 | |
| 24 | + | statusProtocolPort = 7171 | |
| 25 | + | maxPlayers = 500 | |
| 26 | + | motd = "Welcome to RD Core" | |
| 27 | + | onePlayerOnlinePerAccount = false | |
| 28 | + | allowClones = false | |
| 29 | + | serverName = "RD Core" | |
| 30 | + | statusTimeout = 5000 | |
| 31 | + | replaceKickOnLogin = true | |
| 32 | + | maxPacketsPerSecond = 100 | |
| 33 | + | ||
| 34 | + | deathLosePercent = 0 | |
| 35 | + | ||
| 36 | + | housePriceEachSQM = 1000 | |
| 37 | + | houseRentPeriod = "never" | |
| 38 | + | houseOwnedByAccount = false | |
| 39 | + | ||
| 40 | + | timeBetweenActions = 200 | |
| 41 | + | timeBetweenExActions = 1000 | |
| 42 | + | ||
| 43 | + | mapName = "rd_core" | |
| 44 | + | mapAuthor = "" | |
| 45 | + | ||
| 46 | + | marketOfferDuration = 30 * 24 * 60 * 60 | |
| 47 | + | kickIdlePlayerAfterMinutes = 1440 | |
| 48 | + | premiumToCreateMarketOffer = true | |
| 49 | + | checkExpiredMarketOffersEachMinutes = 60 | |
| 50 | + | maxMarketOffersAtATimePerPlayer = 100 | |
| 51 | + | ||
| 52 | + | mysqlHost = "127.0.0.1" | |
| 53 | + | mysqlUser = "root" | |
| 54 | + | mysqlPass = "" | |
| 55 | + | mysqlDatabase = "" | |
| 56 | + | mysqlPort = 3306 | |
| 57 | + | mysqlSock = "" | |
| 58 | + | ||
| 59 | + | allowChangeOutfit = true | |
| 60 | + | freePremium = false | |
| 61 | + | maxMessageBuffer = 4 | |
| 62 | + | emoteSpells = true | |
| 63 | + | classicEquipmentSlots = false | |
| 64 | + | classicAttackSpeed = true | |
| 65 | + | showScriptsLogInConsole = true | |
| 66 | + | showOnlineStatusInCharlist = false | |
| 67 | + | yellMinimumLevel = 2 | |
| 68 | + | yellAlwaysAllowPremium = false | |
| 69 | + | forceMonsterTypesOnLoad = true | |
| 70 | + | ||
| 71 | + | serverSaveNotifyMessage = true | |
| 72 | + | serverSaveNotifyDuration = 5 | |
| 73 | + | serverSaveCleanMap = false | |
| 74 | + | serverSaveClose = false | |
| 75 | + | serverSaveShutdown = false | |
| 76 | + | ||
| 77 | + | rateExp = 2 | |
| 78 | + | rateSkill = 2 | |
| 79 | + | rateLoot = 0 | |
| 80 | + | rateMagic = 0 | |
| 81 | + | rateSpawn = 5 | |
| 82 | + | ||
| 83 | + | checkCorpseOwner = false | |
| 84 | + | monsterLootMessage = 0 | |
| 85 | + | monsterLootMessageType = 0 | |
| 86 | + | ||
| 87 | + | deSpawnRange = 2 | |
| 88 | + | deSpawnRadius = 50 | |
| 89 | + | ||
| 90 | + | staminaSystem = false | |
| 91 | + | ||
| 92 | + | warnUnsafeScripts = true | |
| 93 | + | convertUnsafeScripts = true | |
| 94 | + | ||
| 95 | + | defaultPriority = "high" | |
| 96 | + | startupDatabaseOptimization = false | |
| 97 | + | ||
| 98 | + | ownerName = "" | |
| 99 | + | ownerEmail = "" | |
| 100 | + | url = "" | |
| 101 | + | location = "" |
| @@ -0,0 +1,265 @@ | |||
| 1 | + | <?xml version="1.0" encoding="UTF-8"?> | |
| 2 | + | <actions> | |
| 3 | + | <!-- Custom --> | |
| 4 | + | <action actionid="2050" script="Teste.lua" /> | |
| 5 | + | <action fromid="2589" toid="2592" script="Central_Box.lua" /> | |
| 6 | + | <action fromaid="2053" toaid="2055" script="Warzone.lua" /> | |
| 7 | + | <action actionid="2052" script="Cyclop_Mount_Quest.lua" /> | |
| 8 | + | <action fromaid="10155" toaid="10160" script="Prophecy_Quest.lua" /> | |
| 9 | + | <action actionid="10161" script="TesouroImperialIV.lua" /> | |
| 10 | + | <action fromaid="3001" toaid="3099" script="Saqueadores.lua" /> | |
| 11 | + | <action fromaid="3100" toaid="3102" script="DesistirFinalizar.lua" /> | |
| 12 | + | <action actionid="2051" script="Statues.lua" /> | |
| 13 | + | <action actionid="2056" script="desafios.lua" /> | |
| 14 | + | ||
| 15 | + | <action fromuid="10000" touid="10100" script="Baus.lua" /> | |
| 16 | + | <action fromuid="10101" touid="10125" script="Nexus.lua" /> | |
| 17 | + | <action fromuid="10150" touid="10154" script="Arvore_Amaldicoada.lua" /> | |
| 18 | + | <action fromuid="10155" touid="10199" script="ChestQuest.lua" /> | |
| 19 | + | <action fromuid="10272" touid="10299" script="ChestQuest.lua" /> | |
| 20 | + | ||
| 21 | + | <action fromuid="10200" touid="10225" script="Activity_Nexus.lua" /> | |
| 22 | + | <action fromuid="10226" touid="10249" script="Baus.lua" /> | |
| 23 | + | <action fromuid="10250" touid="10254" script="Especialista_1.lua" /> | |
| 24 | + | <action fromuid="10255" touid="10265" script="Especialista_2.lua" /> | |
| 25 | + | <action fromuid="10266" touid="10270" script="DG_Huampali_1.lua" /> | |
| 26 | + | <action uniqueid="10271" script="DG_Rivermine_2.lua" /> | |
| 27 | + | ||
| 28 | + | <action fromuid="10300" touid="10302" script="DG_Kazemir_1.lua" /> | |
| 29 | + | <action fromuid="10303" touid="10315" script="DG_Kimbolton.lua" /> | |
| 30 | + | <action fromuid="10316" touid="10319" script="DG_Sunset_1.lua" /> | |
| 31 | + | <action uniqueid="10320" script="DG_Huampali.lua" /> | |
| 32 | + | <action fromuid="10321" touid="10333" script="DG_Bonebrook_1.lua" /> | |
| 33 | + | <action fromuid="10343" touid="10348" script="DG_Kazemir_1.lua" /> | |
| 34 | + | <action fromuid="10349" touid="10356" script="DG_Sunset_1.lua" /> | |
| 35 | + | <action fromuid="10359" touid="10360" script="DG_Bonebrook_1.lua" /> | |
| 36 | + | <action fromuid="10377" touid="10383" script="DG_Bonebrook_1.lua" /> | |
| 37 | + | <action fromuid="10385" touid="10396" script="DG_Bonebrook_1.lua" /> | |
| 38 | + | <action fromuid="10507" touid="10508" script="DG_Bonebrook_1.lua" /> | |
| 39 | + | <action fromuid="10530" touid="10535" script="DG_Bonebrook_1.lua" /> | |
| 40 | + | <action fromuid="10598" touid="10599" script="DG_Bonebrook_1.lua" /> | |
| 41 | + | <action fromuid="10509" touid="10529" script="DG_Bonebrook_2.lua" /> | |
| 42 | + | <action fromuid="10536" touid="10561" script="DG_Kimbolton.lua" /> | |
| 43 | + | <action fromuid="10562" touid="10563" script="DG_Huampali.lua" /> | |
| 44 | + | <!-- 10361 - 10399 --> | |
| 45 | + | <action fromuid="10400" touid="10419" script="DG_Recompensas.lua" /> | |
| 46 | + | <action fromuid="10455" touid="10464" script="DG_Recompensas.lua" /> | |
| 47 | + | <action fromuid="10420" touid="10436" script="DG_Sodon.lua" /> | |
| 48 | + | <action fromuid="10564" touid="10597" script="DG_Sodon.lua" /> | |
| 49 | + | <action fromuid="10600" touid="10602" script="DG_Sodon_1.lua" /> | |
| 50 | + | <!-- 10437 - 10499 --> | |
| 51 | + | ||
| 52 | + | <!-- Transform and decay --> | |
| 53 | + | <action fromid="1479" toid="1480" script="other/decayto.lua" /> | |
| 54 | + | <action fromid="1634" toid="1641" script="other/decayto.lua" /> | |
| 55 | + | <action fromid="1786" toid="1793" script="other/decayto.lua" /> | |
| 56 | + | <action fromid="1873" toid="1876" script="other/decayto.lua" /> | |
| 57 | + | <action fromid="1945" toid="1946" script="other/decayto.lua" /> | |
| 58 | + | <action fromid="2037" toid="2042" script="other/decayto.lua" /> | |
| 59 | + | <action fromid="2044" toid="2045" script="other/decayto.lua" /> | |
| 60 | + | <action fromid="2047" toid="2048" script="other/decayto.lua" /> | |
| 61 | + | <action fromid="2050" toid="2055" script="other/decayto.lua" /> | |
| 62 | + | <action fromid="2058" toid="2061" script="other/decayto.lua" /> | |
| 63 | + | <action fromid="2064" toid="2069" script="other/decayto.lua" /> | |
| 64 | + | <action fromid="2096" toid="2097" script="other/decayto.lua" /> | |
| 65 | + | <action fromid="2162" toid="2163" script="other/decayto.lua" /> | |
| 66 | + | <action itemid="2578" script="other/decayto.lua" /> | |
| 67 | + | <action fromid="3947" toid="3948" script="other/decayto.lua" /> | |
| 68 | + | <action fromid="5812" toid="5813" script="other/decayto.lua" /> | |
| 69 | + | <action fromid="6489" toid="6490" script="other/decayto.lua" /> | |
| 70 | + | <action fromid="7058" toid="7059" script="other/decayto.lua" /> | |
| 71 | + | <action itemid="7183" script="other/decayto.lua" /> | |
| 72 | + | <action fromid="8684" toid="8691" script="other/decayto.lua" /> | |
| 73 | + | <action fromid="9575" toid="9582" script="other/decayto.lua" /> | |
| 74 | + | <action fromid="9747" toid="9750" script="other/decayto.lua" /> | |
| 75 | + | <action fromid="10719" toid="10720" script="other/decayto.lua" /> | |
| 76 | + | <action fromid="11401" toid="11402" script="other/decayto.lua" /> | |
| 77 | + | <action fromid="19691" toid="19692" script="other/decayto.lua" /> | |
| 78 | + | <action fromid="25545" toid="25546" script="other/decayto.lua" /> | |
| 79 | + | <action fromid="26098" toid="26099" script="other/decayto.lua" /> | |
| 80 | + | ||
| 81 | + | <!-- Food --> | |
| 82 | + | <action itemid="2362" script="other/food.lua" /> | |
| 83 | + | <action fromid="2666" toid="2691" script="other/food.lua" /> | |
| 84 | + | <action fromid="2695" toid="2696" script="other/food.lua" /> | |
| 85 | + | <action fromid="2787" toid="2796" script="other/food.lua" /> | |
| 86 | + | <action itemid="5097" script="other/food.lua" /> | |
| 87 | + | <action itemid="6125" script="other/food.lua" /> | |
| 88 | + | <action fromid="6278" toid="6279" script="other/food.lua" /> | |
| 89 | + | <action fromid="6393" toid="6394" script="other/food.lua" /> | |
| 90 | + | <action itemid="6501" script="other/food.lua" /> | |
| 91 | + | <action fromid="6541" toid="6545" script="other/food.lua" /> | |
| 92 | + | <action itemid="6569" script="other/food.lua" /> | |
| 93 | + | <action itemid="6574" script="other/food.lua" /> | |
| 94 | + | <action fromid="7158" toid="7159" script="other/food.lua" /> | |
| 95 | + | <action fromid="7372" toid="7377" script="other/food.lua" /> | |
| 96 | + | <action fromid="7909" toid="7910" script="other/food.lua" /> | |
| 97 | + | <action itemid="7963" script="other/food.lua" /> | |
| 98 | + | <action itemid="8112" script="other/food.lua" /> | |
| 99 | + | <action fromid="8838" toid="8845" script="other/food.lua" /> | |
| 100 | + | <action itemid="8847" script="other/food.lua" /> | |
| 101 | + | <action itemid="9005" script="other/food.lua" /> | |
| 102 | + | <action itemid="9114" script="other/food.lua" /> | |
| 103 | + | <action itemid="9996" script="other/food.lua" /> | |
| 104 | + | <action itemid="10454" script="other/food.lua" /> | |
| 105 | + | <action itemid="11246" script="other/food.lua" /> | |
| 106 | + | <action itemid="11370" script="other/food.lua" /> | |
| 107 | + | <action itemid="11429" script="other/food.lua" /> | |
| 108 | + | <action fromid="12415" toid="12418" script="other/food.lua" /> | |
| 109 | + | <action fromid="12637" toid="12639" script="other/food.lua" /> | |
| 110 | + | <action itemid="13297" script="other/food.lua" /> | |
| 111 | + | <action itemid="15405" script="other/food.lua" /> | |
| 112 | + | <action fromid="15487" toid="15488" script="other/food.lua" /> | |
| 113 | + | <action itemid="16014" script="other/food.lua" /> | |
| 114 | + | <action itemid="18397" script="other/food.lua" /> | |
| 115 | + | <action itemid="19737" script="other/food.lua" /> | |
| 116 | + | <action fromid="20100" toid="20101" script="other/food.lua" /> | |
| 117 | + | <action itemid="24841" script="other/food.lua" /> | |
| 118 | + | <action itemid="24843" script="other/food.lua" /> | |
| 119 | + | <action itemid="26191" script="other/food.lua" /> | |
| 120 | + | <action itemid="26201" script="other/food.lua" /> | |
| 121 | + | ||
| 122 | + | <!-- Other --> | |
| 123 | + | <action fromid="23496" toid="23503" script="other/alavancas.lua" /> | |
| 124 | + | <action fromid="9827" toid="9828" script="other/alavancas.lua" /> | |
| 125 | + | <action itemid="3945" script="other/lamp.lua" /> | |
| 126 | + | <action itemid="3946" script="other/lamp.lua" /> | |
| 127 | + | ||
| 128 | + | <action itemid="430" script="other/teleport.lua" /> | |
| 129 | + | <action itemid="486" script="other/snowheap.lua" /> | |
| 130 | + | <action fromid="1209" toid="1214" script="other/doors.lua" /> | |
| 131 | + | <action fromid="1219" toid="1262" script="other/doors.lua" /> | |
| 132 | + | <action itemid="1369" script="other/teleport.lua" /> | |
| 133 | + | <action itemid="1386" script="other/teleport.lua" /> | |
| 134 | + | <action fromid="1539" toid="1542" script="other/doors.lua" /> | |
| 135 | + | <action fromid="1728" toid="1731" script="other/watch.lua" /> | |
| 136 | + | <action itemid="1775" script="other/fluids.lua" /> | |
| 137 | + | <action fromid="1816" toid="1817" script="other/wallmirror.lua" /> | |
| 138 | + | <action fromid="1843" toid="1844" script="other/wallmirror.lua" /> | |
| 139 | + | <action fromid="1846" toid="1847" script="other/wallmirror.lua" /> | |
| 140 | + | <action fromid="1849" toid="1850" script="other/wallmirror.lua" /> | |
| 141 | + | <action fromid="2005" toid="2009" script="other/fluids.lua" /> | |
| 142 | + | <action fromid="2011" toid="2015" script="other/fluids.lua" /> | |
| 143 | + | <action itemid="2023" script="other/fluids.lua" /> | |
| 144 | + | <action fromid="2031" toid="2034" script="other/fluids.lua" /> | |
| 145 | + | <action itemid="2036" script="other/watch.lua" /> | |
| 146 | + | <action fromid="2070" toid="2085" script="other/music.lua" /> | |
| 147 | + | <action fromid="2086" toid="2092" script="other/doors.lua" /> | |
| 148 | + | <action itemid="2093" script="other/waterpipe.lua" /> | |
| 149 | + | <action itemid="2095" script="other/birdcage.lua" /> | |
| 150 | + | <action itemid="2099" script="other/waterpipe.lua" /> | |
| 151 | + | <action itemid="2114" script="other/piggybank.lua" /> | |
| 152 | + | <action itemid="2148" script="other/changegold.lua" /> | |
| 153 | + | <action itemid="2152" script="other/changegold.lua" /> | |
| 154 | + | <action itemid="2160" script="other/changegold.lua" /> | |
| 155 | + | <action itemid="2332" script="other/music.lua" /> | |
| 156 | + | <action itemid="2364" script="other/music.lua" /> | |
| 157 | + | <action fromid="2367" toid="2373" script="other/music.lua" /> | |
| 158 | + | <action fromid="2376" toid="2404" script="other/destroy.lua" /> | |
| 159 | + | <action fromid="2406" toid="2415" script="other/destroy.lua" /> | |
| 160 | + | <action fromid="2417" toid="2419" script="other/destroy.lua" /> | |
| 161 | + | <action fromid="2421" toid="2441" script="other/destroy.lua" /> | |
| 162 | + | <action fromid="2443" toid="2453" script="other/destroy.lua" /> | |
| 163 | + | <action fromid="2574" toid="2577" script="other/fluids.lua" /> | |
| 164 | + | <action itemid="2579" script="other/trap.lua" /> | |
| 165 | + | <action itemid="2692" script="other/createbread.lua" /> | |
| 166 | + | <action itemid="2694" script="other/createbread.lua" /> | |
| 167 | + | <action itemid="2785" script="other/blueberrybush.lua" /> | |
| 168 | + | <action fromid="3535" toid="3552" script="other/doors.lua" /> | |
| 169 | + | <action itemid="3678" script="other/teleport.lua" /> | |
| 170 | + | <action itemid="3743" script="other/transforms.lua" /> | |
| 171 | + | <action itemid="3900" script="other/watch.lua" /> | |
| 172 | + | <action fromid="3901" toid="3938" script="other/constructionkits.lua" /> | |
| 173 | + | <action fromid="3951" toid="3953" script="other/music.lua" /> | |
| 174 | + | <action itemid="3957" script="other/music.lua" /> | |
| 175 | + | <action itemid="4404" script="other/transforms.lua" /> | |
| 176 | + | <action fromid="4913" toid="4918" script="other/doors.lua" /> | |
| 177 | + | <action fromid="5082" toid="5085" script="other/doors.lua" /> | |
| 178 | + | <action fromid="5086" toid="5088" script="other/constructionkits.lua" /> | |
| 179 | + | <action fromid="5098" toid="5145" script="other/doors.lua" /> | |
| 180 | + | <action fromid="5278" toid="5295" script="other/doors.lua" /> | |
| 181 | + | <action fromid="5303" toid="5304" script="other/windows.lua" /> | |
| 182 | + | <action fromid="5515" toid="5518" script="other/doors.lua" /> | |
| 183 | + | <action itemid="5543" script="other/teleport.lua" /> | |
| 184 | + | <action itemid="5553" script="other/fluids.lua" /> | |
| 185 | + | <action fromid="5732" toid="5737" script="other/doors.lua" /> | |
| 186 | + | <action fromid="5745" toid="5749" script="other/doors.lua" /> | |
| 187 | + | <action itemid="5786" script="other/music.lua" /> | |
| 188 | + | <action fromid="5792" toid="5797" script="other/die.lua" /> | |
| 189 | + | <action itemid="6092" script="other/watch.lua" /> | |
| 190 | + | <action itemid="6114" script="other/constructionkits.lua" /> | |
| 191 | + | <action itemid="6115" script="other/constructionkits.lua" /> | |
| 192 | + | <action fromid="6192" toid="6209" script="other/doors.lua" /> | |
| 193 | + | <action fromid="6249" toid="6266" script="other/doors.lua" /> | |
| 194 | + | <action itemid="6372" script="other/constructionkits.lua" /> | |
| 195 | + | <action itemid="6373" script="other/constructionkits.lua" /> | |
| 196 | + | <action fromid="6436" toid="6447" script="other/windows.lua" /> | |
| 197 | + | <action fromid="6448" toid="6449" script="other/windows.lua" /> | |
| 198 | + | <action fromid="6450" toid="6473" script="other/windows.lua" /> | |
| 199 | + | <action itemid="6558" script="other/potions.lua" /> | |
| 200 | + | <action fromid="6570" toid="6571" script="other/surprisebag.lua" /> | |
| 201 | + | <action fromid="6572" toid="6573" script="other/music.lua" /> | |
| 202 | + | <action itemid="6576" script="other/fireworksrocket.lua" /> | |
| 203 | + | <action itemid="6578" script="other/partyhat.lua" /> | |
| 204 | + | <action fromid="6788" toid="6791" script="other/windows.lua" /> | |
| 205 | + | <action fromid="6795" toid="6802" script="other/doors.lua" /> | |
| 206 | + | <action fromid="6891" toid="6908" script="other/doors.lua" /> | |
| 207 | + | <action fromid="7025" toid="7032" script="other/windows.lua" /> | |
| 208 | + | <action fromid="7033" toid="7050" script="other/doors.lua" /> | |
| 209 | + | <action fromid="7054" toid="7057" script="other/doors.lua" /> | |
| 210 | + | <action fromid="7439" toid="7440" script="other/potions.lua" /> | |
| 211 | + | <action itemid="7443" script="other/potions.lua" /> | |
| 212 | + | <action itemid="7552" script="other/largeseashell.lua" /> | |
| 213 | + | <action fromid="7588" toid="7591" script="other/potions.lua" /> | |
| 214 | + | <action itemid="7618" script="other/potions.lua" /> | |
| 215 | + | <action itemid="7620" script="other/potions.lua" /> | |
| 216 | + | <action itemid="7828" script="other/watch.lua" /> | |
| 217 | + | <action fromid="7904" toid="7907" script="other/bed_modification_kits.lua" /> | |
| 218 | + | <action fromid="8472" toid="8474" script="other/potions.lua" /> | |
| 219 | + | <action fromid="8541" toid="8558" script="other/doors.lua" /> | |
| 220 | + | <action itemid="8692" script="other/constructionkits.lua" /> | |
| 221 | + | <action itemid="8704" script="other/potions.lua" /> | |
| 222 | + | <action fromid="9165" toid="9184" script="other/doors.lua" /> | |
| 223 | + | <action fromid="9267" toid="9284" script="other/doors.lua" /> | |
| 224 | + | <action fromid="9443" toid="9444" script="other/watch.lua" /> | |
| 225 | + | <action itemid="9974" script="other/constructionkits.lua" /> | |
| 226 | + | <action itemid="10032" script="other/doors.lua" /> | |
| 227 | + | <action fromid="10264" toid="10267" script="other/windows.lua" /> | |
| 228 | + | <action fromid="10268" toid="10285" script="other/doors.lua" /> | |
| 229 | + | <action fromid="10468" toid="10486" script="other/doors.lua" /> | |
| 230 | + | <action fromid="10488" toid="10491" script="other/windows.lua" /> | |
| 231 | + | <action fromid="10775" toid="10777" script="other/doors.lua" /> | |
| 232 | + | <action fromid="10780" toid="10786" script="other/doors.lua" /> | |
| 233 | + | <action fromid="10789" toid="10792" script="other/doors.lua" /> | |
| 234 | + | <action itemid="11124" script="other/constructionkits.lua" /> | |
| 235 | + | <action itemid="11126" script="other/constructionkits.lua" /> | |
| 236 | + | <action itemid="11133" script="other/constructionkits.lua" /> | |
| 237 | + | <action itemid="11205" script="other/constructionkits.lua" /> | |
| 238 | + | <action fromid="12092" toid="12105" script="other/doors.lua" /> | |
| 239 | + | <action fromid="12188" toid="12190" script="other/doors.lua" /> | |
| 240 | + | <action fromid="12193" toid="12199" script="other/doors.lua" /> | |
| 241 | + | <action fromid="12202" toid="12205" script="other/doors.lua" /> | |
| 242 | + | <action fromid="13020" toid="13023" script="other/doors.lua" /> | |
| 243 | + | <action itemid="13759" script="other/music.lua" /> | |
| 244 | + | <action itemid="14328" script="other/constructionkits.lua" /> | |
| 245 | + | <action itemid="14329" script="other/constructionkits.lua" /> | |
| 246 | + | <action itemid="16075" script="other/constructionkits.lua" /> | |
| 247 | + | <action itemid="16099" script="other/constructionkits.lua" /> | |
| 248 | + | <action fromid="17235" toid="17238" script="other/doors.lua" /> | |
| 249 | + | <action fromid="18208" toid="18209" script="other/doors.lua" /> | |
| 250 | + | <action fromid="18488" toid="18492" script="other/skilltrainer.lua" /> | |
| 251 | + | <action fromid="19427" toid="19428" script="other/windows.lua" /> | |
| 252 | + | <action fromid="19440" toid="19441" script="other/windows.lua" /> | |
| 253 | + | <action fromid="19443" toid="19450" script="other/windows.lua" /> | |
| 254 | + | <action fromid="19840" toid="19857" script="other/doors.lua" /> | |
| 255 | + | <action fromid="19974" toid="19975" script="other/windows.lua" /> | |
| 256 | + | <action fromid="19980" toid="19997" script="other/doors.lua" /> | |
| 257 | + | <action fromid="20180" toid="20185" script="other/windows.lua" /> | |
| 258 | + | <action itemid="20252" script="other/bed_modification_kits.lua" /> | |
| 259 | + | <action itemid="20254" script="other/constructionkits.lua" /> | |
| 260 | + | <action itemid="20255" script="other/constructionkits.lua" /> | |
| 261 | + | <action itemid="20257" script="other/constructionkits.lua" /> | |
| 262 | + | <action fromid="20273" toid="20290" script="other/doors.lua" /> | |
| 263 | + | <action itemid="23923" script="other/music.lua" /> | |
| 264 | + | <action fromid="26029" toid="26031" script="other/potions.lua" /> | |
| 265 | + | </actions> |
| @@ -0,0 +1,254 @@ | |||
| 1 | + | local wildGrowth = {1499, 11099} -- wild growth destroyable by machete | |
| 2 | + | local jungleGrass = { -- grass destroyable by machete | |
| 3 | + | [2782] = 2781, | |
| 4 | + | [3985] = 3984, | |
| 5 | + | [19433] = 19431 | |
| 6 | + | } | |
| 7 | + | local groundIds = {354, 355} -- pick usable ground | |
| 8 | + | local sandIds = {231, 9059} -- desert sand | |
| 9 | + | local holeId = { -- usable rope holes, for rope spots see global.lua | |
| 10 | + | 294, 369, 370, 383, 392, 408, 409, 410, 427, 428, 429, 430, 462, 469, 470, 482, | |
| 11 | + | 484, 485, 489, 924, 1369, 3135, 3136, 4835, 4837, 7933, 7938, 8170, 8249, 8250, | |
| 12 | + | 8251, 8252, 8254, 8255, 8256, 8276, 8277, 8279, 8281, 8284, 8285, 8286, 8323, | |
| 13 | + | 8567, 8585, 8595, 8596, 8972, 9606, 9625, 13190, 14461, 19519, 21536, 23713, | |
| 14 | + | 26020 | |
| 15 | + | } | |
| 16 | + | local holes = {468, 481, 483, 7932, 23712} -- holes opened by shovel | |
| 17 | + | local fruits = {2673, 2674, 2675, 2676, 2677, 2678, 2679, 2680, 2681, 2682, 2684, 2685, 5097, 8839, 8840, 8841} -- fruits to make decorated cake with knife | |
| 18 | + | ||
| 19 | + | function destroyItem(player, target, toPosition) | |
| 20 | + | if type(target) ~= "userdata" or not target:isItem() then | |
| 21 | + | return false | |
| 22 | + | end | |
| 23 | + | ||
| 24 | + | if target:hasAttribute(ITEM_ATTRIBUTE_UNIQUEID) or target:hasAttribute(ITEM_ATTRIBUTE_ACTIONID) then | |
| 25 | + | return false | |
| 26 | + | end | |
| 27 | + | ||
| 28 | + | if toPosition.x == CONTAINER_POSITION then | |
| 29 | + | player:sendCancelMessage(RETURNVALUE_NOTPOSSIBLE) | |
| 30 | + | return true | |
| 31 | + | end | |
| 32 | + | ||
| 33 | + | local destroyId = ItemType(target.itemid):getDestroyId() | |
| 34 | + | if destroyId == 0 then | |
| 35 | + | return false | |
| 36 | + | end | |
| 37 | + | ||
| 38 | + | if math.random(7) == 1 then | |
| 39 | + | local item = Game.createItem(destroyId, 1, toPosition) | |
| 40 | + | if item then | |
| 41 | + | item:decay() | |
| 42 | + | end | |
| 43 | + | ||
| 44 | + | -- Move items outside the container | |
| 45 | + | if target:isContainer() then | |
| 46 | + | for i = target:getSize() - 1, 0, -1 do | |
| 47 | + | local containerItem = target:getItem(i) | |
| 48 | + | if containerItem then | |
| 49 | + | containerItem:moveTo(toPosition) | |
| 50 | + | end | |
| 51 | + | end | |
| 52 | + | end | |
| 53 | + | ||
| 54 | + | target:remove(1) | |
| 55 | + | end | |
| 56 | + | ||
| 57 | + | toPosition:sendMagicEffect(CONST_ME_POFF) | |
| 58 | + | return true | |
| 59 | + | end | |
| 60 | + | ||
| 61 | + | function onUseMachete(player, item, fromPosition, target, toPosition, isHotkey) | |
| 62 | + | local targetId = target.itemid | |
| 63 | + | if not targetId then | |
| 64 | + | return true | |
| 65 | + | end | |
| 66 | + | ||
| 67 | + | if table.contains(wildGrowth, targetId) then | |
| 68 | + | toPosition:sendMagicEffect(CONST_ME_POFF) | |
| 69 | + | target:remove() | |
| 70 | + | return true | |
| 71 | + | end | |
| 72 | + | ||
| 73 | + | local grass = jungleGrass[targetId] | |
| 74 | + | if grass then | |
| 75 | + | target:transform(grass) | |
| 76 | + | target:decay() | |
| 77 | + | player:addAchievementProgress("Nothing Can Stop Me", 100) | |
| 78 | + | return true | |
| 79 | + | end | |
| 80 | + | ||
| 81 | + | return destroyItem(player, target, toPosition) | |
| 82 | + | end | |
| 83 | + | ||
| 84 | + | function onUsePick(player, item, fromPosition, target, toPosition, isHotkey) | |
| 85 | + | if target.itemid == 11227 then -- shiny stone refining | |
| 86 | + | local chance = math.random(1, 100) | |
| 87 | + | if chance == 1 then | |
| 88 | + | player:addItem(ITEM_CRYSTAL_COIN) -- 1% chance of getting crystal coin | |
| 89 | + | elseif chance <= 6 then | |
| 90 | + | player:addItem(ITEM_GOLD_COIN) -- 5% chance of getting gold coin | |
| 91 | + | elseif chance <= 51 then | |
| 92 | + | player:addItem(ITEM_PLATINUM_COIN) -- 45% chance of getting platinum coin | |
| 93 | + | else | |
| 94 | + | player:addItem(2145) -- 49% chance of getting small diamond | |
| 95 | + | end | |
| 96 | + | player:addAchievementProgress("Petrologist", 100) | |
| 97 | + | target:getPosition():sendMagicEffect(CONST_ME_BLOCKHIT) | |
| 98 | + | target:remove(1) | |
| 99 | + | return true | |
| 100 | + | end | |
| 101 | + | ||
| 102 | + | local tile = Tile(toPosition) | |
| 103 | + | if not tile then | |
| 104 | + | return false | |
| 105 | + | end | |
| 106 | + | ||
| 107 | + | local ground = tile:getGround() | |
| 108 | + | if not ground then | |
| 109 | + | return false | |
| 110 | + | end | |
| 111 | + | ||
| 112 | + | if table.contains(groundIds, ground.itemid) and ground.actionid == actionIds.pickHole then | |
| 113 | + | ground:transform(392) | |
| 114 | + | ground:decay() | |
| 115 | + | ||
| 116 | + | toPosition.z = toPosition.z + 1 | |
| 117 | + | tile:relocateTo(toPosition) | |
| 118 | + | end | |
| 119 | + | ||
| 120 | + | return true | |
| 121 | + | end | |
| 122 | + | ||
| 123 | + | function onUseRope(player, item, fromPosition, target, toPosition, isHotkey) | |
| 124 | + | local tile = Tile(toPosition) | |
| 125 | + | if not tile then | |
| 126 | + | return false | |
| 127 | + | end | |
| 128 | + | ||
| 129 | + | if table.contains(ropeSpots, tile:getGround():getId()) or tile:getItemById(14435) then | |
| 130 | + | if Tile(toPosition:moveUpstairs()):hasFlag(TILESTATE_PROTECTIONZONE) and player:isPzLocked() then | |
| 131 | + | player:sendCancelMessage(RETURNVALUE_PLAYERISPZLOCKED) | |
| 132 | + | return true | |
| 133 | + | end | |
| 134 | + | player:teleportTo(toPosition, false) | |
| 135 | + | return true | |
| 136 | + | elseif table.contains(holeId, target.itemid) then | |
| 137 | + | toPosition.z = toPosition.z + 1 | |
| 138 | + | tile = Tile(toPosition) | |
| 139 | + | if tile then | |
| 140 | + | local thing = tile:getTopVisibleThing() | |
| 141 | + | if thing:isPlayer() then | |
| 142 | + | if Tile(toPosition:moveUpstairs()):hasFlag(TILESTATE_PROTECTIONZONE) and thing:isPzLocked() then | |
| 143 | + | return false | |
| 144 | + | end | |
| 145 | + | return thing:teleportTo(toPosition, false) | |
| 146 | + | end | |
| 147 | + | if thing:isItem() and thing:getType():isMovable() then | |
| 148 | + | return thing:moveTo(toPosition:moveUpstairs()) | |
| 149 | + | end | |
| 150 | + | end | |
| 151 | + | player:sendCancelMessage(RETURNVALUE_NOTPOSSIBLE) | |
| 152 | + | return true | |
| 153 | + | end | |
| 154 | + | return false | |
| 155 | + | end | |
| 156 | + | ||
| 157 | + | function onUseShovel(player, item, fromPosition, target, toPosition, isHotkey) | |
| 158 | + | local tile = Tile(toPosition) | |
| 159 | + | if not tile then | |
| 160 | + | return false | |
| 161 | + | end | |
| 162 | + | ||
| 163 | + | local ground = tile:getGround() | |
| 164 | + | if not ground then | |
| 165 | + | return false | |
| 166 | + | end | |
| 167 | + | ||
| 168 | + | local groundId = ground:getId() | |
| 169 | + | if table.contains(holes, groundId) then | |
| 170 | + | ground:transform(groundId + 1) | |
| 171 | + | ground:decay() | |
| 172 | + | ||
| 173 | + | toPosition.z = toPosition.z + 1 | |
| 174 | + | tile:relocateTo(toPosition) | |
| 175 | + | player:addAchievementProgress("The Undertaker", 500) | |
| 176 | + | elseif target.itemid == 20230 then -- swamp digging | |
| 177 | + | if (player:getStorageValue(PlayerStorageKeys.swampDigging)) <= os.time() then | |
| 178 | + | local chance = math.random(100) | |
| 179 | + | if chance >= 1 and chance <= 42 then | |
| 180 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You dug up a dead snake.") | |
| 181 | + | player:addItem(3077) | |
| 182 | + | elseif chance >= 43 and chance <= 79 then | |
| 183 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You dug up a small diamond.") | |
| 184 | + | player:addItem(2145) | |
| 185 | + | elseif chance >= 80 then | |
| 186 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You dug up a leech.") | |
| 187 | + | player:addItem(20138) | |
| 188 | + | end | |
| 189 | + | player:setStorageValue(PlayerStorageKeys.swampDigging, os.time() + 7 * 24 * 60 * 60) | |
| 190 | + | player:getPosition():sendMagicEffect(CONST_ME_GREEN_RINGS) | |
| 191 | + | end | |
| 192 | + | elseif table.contains(sandIds, groundId) then | |
| 193 | + | local randomValue = math.random(1, 100) | |
| 194 | + | if target.actionid == actionIds.sandHole and randomValue <= 20 then | |
| 195 | + | ground:transform(489) | |
| 196 | + | ground:decay() | |
| 197 | + | elseif randomValue == 1 then | |
| 198 | + | Game.createItem(2159, 1, toPosition) | |
| 199 | + | player:addAchievementProgress("Gold Digger", 100) | |
| 200 | + | elseif randomValue > 95 then | |
| 201 | + | Game.createMonster("Scarab", toPosition) | |
| 202 | + | end | |
| 203 | + | toPosition:sendMagicEffect(CONST_ME_POFF) | |
| 204 | + | else | |
| 205 | + | return false | |
| 206 | + | end | |
| 207 | + | ||
| 208 | + | return true | |
| 209 | + | end | |
| 210 | + | ||
| 211 | + | function onUseScythe(player, item, fromPosition, target, toPosition, isHotkey) | |
| 212 | + | if not table.contains({2550, 10513}, item.itemid) then | |
| 213 | + | return false | |
| 214 | + | end | |
| 215 | + | ||
| 216 | + | if target.itemid == 2739 then -- wheat | |
| 217 | + | target:transform(2737) | |
| 218 | + | target:decay() | |
| 219 | + | Game.createItem(2694, 1, toPosition) -- bunch of wheat | |
| 220 | + | player:addAchievementProgress("Happy Farmer", 200) | |
| 221 | + | return true | |
| 222 | + | end | |
| 223 | + | if target.itemid == 5465 then -- burning sugar cane | |
| 224 | + | target:transform(5464) | |
| 225 | + | target:decay() | |
| 226 | + | Game.createItem(5467, 1, toPosition) -- bunch of sugar cane | |
| 227 | + | player:addAchievementProgress("Natural Sweetener", 50) | |
| 228 | + | return true | |
| 229 | + | end | |
| 230 | + | return destroyItem(player, target, toPosition) | |
| 231 | + | end | |
| 232 | + | ||
| 233 | + | function onUseCrowbar(player, item, fromPosition, target, toPosition, isHotkey) | |
| 234 | + | if not table.contains({2416, 10515}, item.itemid) then | |
| 235 | + | return false | |
| 236 | + | end | |
| 237 | + | ||
| 238 | + | return destroyItem(player, target, toPosition) | |
| 239 | + | end | |
| 240 | + | ||
| 241 | + | function onUseKitchenKnife(player, item, fromPosition, target, toPosition, isHotkey) | |
| 242 | + | if not table.contains({2566, 10511, 10515}, item.itemid) then | |
| 243 | + | return false | |
| 244 | + | end | |
| 245 | + | ||
| 246 | + | if table.contains(fruits, target.itemid) and player:removeItem(6278, 1) then | |
| 247 | + | target:remove(1) | |
| 248 | + | player:addItem(6279, 1) | |
| 249 | + | player:getPosition():sendMagicEffect(CONST_ME_MAGIC_GREEN) | |
| 250 | + | return true | |
| 251 | + | end | |
| 252 | + | ||
| 253 | + | return false | |
| 254 | + | end |
| @@ -0,0 +1,82 @@ | |||
| 1 | + | function onUse(player, item, fromPosition, target, toPosition, isHotkey) | |
| 2 | + | local ACTIVITY = { | |
| 3 | + | [10201] = 01; | |
| 4 | + | [10202] = 02; | |
| 5 | + | [10203] = 03; | |
| 6 | + | [10204] = 04; | |
| 7 | + | [10205] = 05; | |
| 8 | + | [10206] = 06; | |
| 9 | + | ||
| 10 | + | [10207] = 08; | |
| 11 | + | [10208] = 09; | |
| 12 | + | [10209] = 10; | |
| 13 | + | } | |
| 14 | + | ||
| 15 | + | if _DEBUG_MODE then | |
| 16 | + | print("[ACTION - NEXUS] " ..player:getName().. " - Abrindo Nexus (" .._SYSTEM.NEXUS[ACTIVITY[item.uid]].NAME.. ")") | |
| 17 | + | end | |
| 18 | + | if ACTIVITY[item.uid] then | |
| 19 | + | local Ativo = player:getStorageValue(_SYSTEM.TASK[00].TASK_ATIVA) | |
| 20 | + | local Qnt = player:getStorageValue(_SYSTEM.TASK[00].QNT_ATIVA) | |
| 21 | + | local Booster = Game.getStorageValue(_SYSTEM.TASK.MONSTER[ACTIVITY[item.uid]][00].BOOSTER) | |
| 22 | + | local CountDG = PlayerMetas(player, 1001, 00, ACTIVITY[item.uid]) | |
| 23 | + | local TaskPlus = 1 | |
| 24 | + | if player:getStorageValue(_DESAFIOS[00].DESAFIO_TYPE) == 01 then | |
| 25 | + | TaskPlus = 2 | |
| 26 | + | end | |
| 27 | + | ||
| 28 | + | player:sendCancelMessage("@ActivityNex " ..ACTIVITY[item.uid].. " " ..Ativo.. " " ..Qnt.. " " ..Booster.. " " ..CountDG.. " " ..TaskPlus) | |
| 29 | + | if player:getStorageValue(_QUESTLOG[26].UID_01) > 01 and player:getStorageValue(_QUESTLOG[26].UID_01) < 100 then | |
| 30 | + | player:sendCancelMessage("@TutorShow 12") | |
| 31 | + | player:setStorageValue(_QUESTLOG[26].UID_01, 101) | |
| 32 | + | end | |
| 33 | + | if ACTIVITY[item.uid] == 01 then | |
| 34 | + | local ID_1 = Game.getStorageValue(_GLOBAL_RANDOM.NINHOS["SYSTEM"].NINHO_1) | |
| 35 | + | local ID_2 = Game.getStorageValue(_GLOBAL_RANDOM.NINHOS["SYSTEM"].NINHO_2) | |
| 36 | + | local ID_3 = Game.getStorageValue(_GLOBAL_RANDOM.NINHOS["SYSTEM"].NINHO_3) | |
| 37 | + | local ID_4 = Game.getStorageValue(_GLOBAL_RANDOM.NINHOS["SYSTEM"].NINHO_4) | |
| 38 | + | player:sendCancelMessage("@Nidos " ..ID_1.. " " ..ID_2.. " " ..ID_3.. " " ..ID_4) | |
| 39 | + | elseif ACTIVITY[item.uid] == 05 or ACTIVITY[item.uid] == 09 then | |
| 40 | + | local IDD_1 = player:getStorageValue(_SYSTEM.MAESTRIA[01]) | |
| 41 | + | local IDD_2 = player:getStorageValue(_SYSTEM.ESPECIALISTA[01]) | |
| 42 | + | local IDD_3 = player:getStorageValue(_SYSTEM.MAESTRIA[02]) | |
| 43 | + | local IDD_4 = player:getStorageValue(_SYSTEM.ESPECIALISTA[02]) | |
| 44 | + | player:sendCancelMessage("@MaestriaEsp " ..IDD_1.. " " ..IDD_2.. " " ..IDD_3.. " " ..IDD_4) | |
| 45 | + | elseif ACTIVITY[item.uid] == 08 then | |
| 46 | + | for SR = 01, 05 do | |
| 47 | + | local ID_1 = Game.getStorageValue(_GLOBAL_RANDOM.SAQUEADORES[00][01][SR][01]) or 0 | |
| 48 | + | local ID_2 = Game.getStorageValue(_GLOBAL_RANDOM.SAQUEADORES[00][01][SR][02]) or 0 | |
| 49 | + | local ID_3 = Game.getStorageValue(_GLOBAL_RANDOM.SAQUEADORES[00][01][SR][03]) or 0 | |
| 50 | + | local ID_4 = Game.getStorageValue(_GLOBAL_RANDOM.SAQUEADORES[00][01][SR][04]) or 0 | |
| 51 | + | local ID_5 = Game.getStorageValue(_GLOBAL_RANDOM.SAQUEADORES[00][01][SR][05]) or 0 | |
| 52 | + | ||
| 53 | + | local VL_1 = player:getStorageValue(_GLOBAL_RANDOM.SAQUEADORES[00][02][SR][01]) or 0 | |
| 54 | + | local VL_2 = player:getStorageValue(_GLOBAL_RANDOM.SAQUEADORES[00][02][SR][02]) or 0 | |
| 55 | + | local VL_3 = player:getStorageValue(_GLOBAL_RANDOM.SAQUEADORES[00][02][SR][03]) or 0 | |
| 56 | + | local VL_4 = player:getStorageValue(_GLOBAL_RANDOM.SAQUEADORES[00][02][SR][04]) or 0 | |
| 57 | + | local VL_5 = player:getStorageValue(_GLOBAL_RANDOM.SAQUEADORES[00][02][SR][05]) or 0 | |
| 58 | + | ||
| 59 | + | local RANK = player:getStorageValue(_GLOBAL_RANDOM.SAQUEADORES[00][03][01]) or 0 | |
| 60 | + | local VALU = player:getStorageValue(_GLOBAL_RANDOM.SAQUEADORES[00][03][02]) or 0 | |
| 61 | + | player:sendCancelMessage("@Saqueadores " ..SR.. " " ..ID_1.. " " ..ID_2.. " " ..ID_3.. " " ..ID_4.. " " ..ID_5.." " ..VL_1.. " " ..VL_2.. " " ..VL_3.. " " ..VL_4.. " " ..VL_5.. " " ..RANK.. " " ..VALU) | |
| 62 | + | end | |
| 63 | + | elseif ACTIVITY[item.uid] == 10 then | |
| 64 | + | local IDD_1 = player:getStorageValue(_SYSTEM.COLISEU[01]) | |
| 65 | + | local IDD_2 = player:getStorageValue(_SYSTEM.COLISEU[02]) | |
| 66 | + | local IDD_3 = player:getStorageValue(_SYSTEM.COLISEU[03]) | |
| 67 | + | local IDD_4 = player:getStorageValue(_SYSTEM.COLISEU[04]) | |
| 68 | + | player:sendCancelMessage("@Coliseu " ..IDD_1.. " " ..IDD_2.. " " ..IDD_3.. " " ..IDD_4) | |
| 69 | + | end | |
| 70 | + | end | |
| 71 | + | end | |
| 72 | + | ||
| 73 | + | ||
| 74 | + | ||
| 75 | + | ||
| 76 | + | ||
| 77 | + | ||
| 78 | + | ||
| 79 | + | ||
| 80 | + | ||
| 81 | + | ||
| 82 | + |
| @@ -0,0 +1,261 @@ | |||
| 1 | + | local NINHO_DIFICULTY = { | |
| 2 | + | [01] = {"FACIL", 2000, 500}; | |
| 3 | + | [02] = {"MEDIO", 10000, 3000}; | |
| 4 | + | [03] = {"DIFICIL", 35000, 15000}; | |
| 5 | + | [04] = {"IMPOSSIVEL", 55000, 25000}; | |
| 6 | + | } | |
| 7 | + | local TREE_CLICK = { | |
| 8 | + | [01] = 10150; | |
| 9 | + | [02] = 10151; | |
| 10 | + | [03] = 10152; | |
| 11 | + | [04] = 10153; | |
| 12 | + | [05] = 10153; | |
| 13 | + | } | |
| 14 | + | function onUse(player, item, fromPosition, target, toPosition, isHotkey) | |
| 15 | + | local checkArea = 0 | |
| 16 | + | local from = {x=4043, y=934, z=08} | |
| 17 | + | local to = {x=4067, y=955, z=08} | |
| 18 | + | for A = from.x, to.x do | |
| 19 | + | for B = from.y, to.y do | |
| 20 | + | for C = from.z, to.z do | |
| 21 | + | local tile = Tile(A, B, C) | |
| 22 | + | local creature = tile:getTopCreature() | |
| 23 | + | if creature and creature:isMonster() then | |
| 24 | + | checkArea = 1 | |
| 25 | + | break | |
| 26 | + | end | |
| 27 | + | end | |
| 28 | + | end | |
| 29 | + | end | |
| 30 | + | ||
| 31 | + | if checkArea == 00 then | |
| 32 | + | local TAG = _SYSTEM.GLOBAL_INDEX[02] | |
| 33 | + | local CHECK_STEP = player:getStorageValue(TAG) | |
| 34 | + | local HARD = NINHO_DIFICULTY[player:getStorageValue(_SYSTEM.GLOBAL_INDEX[01])][01] | |
| 35 | + | if CHECK_STEP < 1 then CHECK_STEP = 01 end | |
| 36 | + | ||
| 37 | + | if _DEBUG_MODE then | |
| 38 | + | print("[ACTION - CURSED TREE] " ..player:getName().. " - Clicando na �rvore (" ..CHECK_STEP.. ")") | |
| 39 | + | end | |
| 40 | + | if item.uid == TREE_CLICK[CHECK_STEP] then | |
| 41 | + | if CHECK_STEP == 05 then | |
| 42 | + | local EXPERIENCE = NINHO_DIFICULTY[player:getStorageValue(_SYSTEM.GLOBAL_INDEX[01])][02] | |
| 43 | + | player:teleportTo({x=3685, y=1033, z=7}) | |
| 44 | + | player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) | |
| 45 | + | player:setStorageValue(TAG, nil) | |
| 46 | + | player:addExperience(EXPERIENCE, true, true) | |
| 47 | + | ||
| 48 | + | if HARD == "FACIL" then | |
| 49 | + | local RANDOM_ITEM = math.random(00, 10) | |
| 50 | + | if RANDOM_ITEM < 08 then | |
| 51 | + | local GoldQnt = NINHO_DIFICULTY[player:getStorageValue(_SYSTEM.GLOBAL_INDEX[01])][03] | |
| 52 | + | PlayerGoldCoins(player, 02, GoldQnt) | |
| 53 | + | else | |
| 54 | + | local Atributos = { | |
| 55 | + | 11001, 11006, 11007, 11008, 11015, 11020, 11004, 11005, 11011, 11014, 11032, 11040 | |
| 56 | + | } | |
| 57 | + | local itemid = Atributos[math.random(01, #Atributos)] | |
| 58 | + | local rare = _ITEMS[itemid].RARE | |
| 59 | + | local star = 00 | |
| 60 | + | local slot = 03 | |
| 61 | + | local uni = false | |
| 62 | + | if doBackpack(player, 00, slot, 00, 01) then | |
| 63 | + | if doBackpack(player, 01, slot, 00, 0, itemid, rare, star, 01, uni) then | |
| 64 | + | player:getPosition():sendMagicEffect(14) | |
| 65 | + | end | |
| 66 | + | else | |
| 67 | + | local GoldQnt = NINHO_DIFICULTY[player:getStorageValue(_SYSTEM.GLOBAL_INDEX[01])][03] | |
| 68 | + | PlayerGoldCoins(player, 02, GoldQnt) | |
| 69 | + | player:getPosition():sendMagicEffect(03) | |
| 70 | + | player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Sua Backpack est� cheia.") | |
| 71 | + | end | |
| 72 | + | end | |
| 73 | + | elseif HARD == "MEDIO" then | |
| 74 | + | local RANDOM_ITEM = math.random(00, 10) | |
| 75 | + | if RANDOM_ITEM < 06 then | |
| 76 | + | local GoldQnt = NINHO_DIFICULTY[player:getStorageValue(_SYSTEM.GLOBAL_INDEX[01])][03] | |
| 77 | + | PlayerGoldCoins(player, 02, GoldQnt) | |
| 78 | + | else | |
| 79 | + | local Atributos = { | |
| 80 | + | 11001, 11006, 11007, 11008, 11015, 11020, 11004, 11005, 11011, 11014, 11032, 11040, 11003, 11010, 11012, 11016, 11026 | |
| 81 | + | } | |
| 82 | + | local itemid = Atributos[math.random(01, #Atributos)] | |
| 83 | + | local rare = _ITEMS[itemid].RARE | |
| 84 | + | local star = 00 | |
| 85 | + | local slot = 03 | |
| 86 | + | local uni = false | |
| 87 | + | if doBackpack(player, 00, slot, 00, 01) then | |
| 88 | + | if doBackpack(player, 01, slot, 00, 0, itemid, rare, star, 01, uni) then | |
| 89 | + | player:getPosition():sendMagicEffect(14) | |
| 90 | + | end | |
| 91 | + | else | |
| 92 | + | local GoldQnt = NINHO_DIFICULTY[player:getStorageValue(_SYSTEM.GLOBAL_INDEX[01])][03] | |
| 93 | + | PlayerGoldCoins(player, 02, GoldQnt) | |
| 94 | + | player:getPosition():sendMagicEffect(03) | |
| 95 | + | player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Sua Backpack est� cheia.") | |
| 96 | + | end | |
| 97 | + | end | |
| 98 | + | elseif HARD == "DIFICIL" then | |
| 99 | + | local RANDOM_ITEM = math.random(00, 10) | |
| 100 | + | if RANDOM_ITEM < 03 then | |
| 101 | + | local GoldQnt = NINHO_DIFICULTY[player:getStorageValue(_SYSTEM.GLOBAL_INDEX[01])][03] | |
| 102 | + | PlayerGoldCoins(player, 02, GoldQnt) | |
| 103 | + | elseif RANDOM_ITEM > 02 and RANDOM_ITEM < 08 then | |
| 104 | + | local Atributos = { | |
| 105 | + | 11001, 11006, 11007, 11008, 11015, 11020, 11004, 11005, 11011, 11014, 11032, 11040, 11003, 11010, 11012, 11016, 11026, 11002, 11013, 11017, 11018, 11019, 11021, 11022, 11023, 11024 | |
| 106 | + | } | |
| 107 | + | local itemid = Atributos[math.random(01, #Atributos)] | |
| 108 | + | local rare = _ITEMS[itemid].RARE | |
| 109 | + | local star = 00 | |
| 110 | + | local slot = 03 | |
| 111 | + | local uni = false | |
| 112 | + | if doBackpack(player, 00, slot, 00, 01) then | |
| 113 | + | if doBackpack(player, 01, slot, 00, 0, itemid, rare, star, 01, uni) then | |
| 114 | + | player:getPosition():sendMagicEffect(14) | |
| 115 | + | end | |
| 116 | + | else | |
| 117 | + | local GoldQnt = NINHO_DIFICULTY[player:getStorageValue(_SYSTEM.GLOBAL_INDEX[01])][03] | |
| 118 | + | PlayerGoldCoins(player, 02, GoldQnt) | |
| 119 | + | player:getPosition():sendMagicEffect(03) | |
| 120 | + | player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Sua Backpack est� cheia.") | |
| 121 | + | end | |
| 122 | + | else | |
| 123 | + | local itemid = math.random(7000, 7014) | |
| 124 | + | local rare = math.random(00, 01) | |
| 125 | + | local star = 0 | |
| 126 | + | local slot = 07 | |
| 127 | + | local uni = false | |
| 128 | + | if doBackpack(player, 00, slot, 00, 01) then | |
| 129 | + | if doBackpack(player, 01, slot, 00, 0, itemid, rare, star, 01, uni) then | |
| 130 | + | player:getPosition():sendMagicEffect(14) | |
| 131 | + | end | |
| 132 | + | else | |
| 133 | + | local GoldQnt = NINHO_DIFICULTY[player:getStorageValue(_SYSTEM.GLOBAL_INDEX[01])][03] | |
| 134 | + | PlayerGoldCoins(player, 02, GoldQnt) | |
| 135 | + | player:getPosition():sendMagicEffect(03) | |
| 136 | + | player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Sua Backpack est� cheia.") | |
| 137 | + | end | |
| 138 | + | end | |
| 139 | + | else | |
| 140 | + | local RANDOM_ITEM = math.random(00, 10) | |
| 141 | + | if RANDOM_ITEM < 02 then | |
| 142 | + | local GoldQnt = NINHO_DIFICULTY[player:getStorageValue(_SYSTEM.GLOBAL_INDEX[01])][03] | |
| 143 | + | PlayerGoldCoins(player, 02, GoldQnt) | |
| 144 | + | elseif RANDOM_ITEM > 01 and RANDOM_ITEM < 06 then | |
| 145 | + | local Atributos = { | |
| 146 | + | 11001, 11006, 11007, 11008, 11015, 11020, 11004, 11005, 11011, 11014, 11032, 11040, 11003, 11010, 11012, 11016, 11026, 11002, 11013, 11017, 11018, 11019, 11021, 11022, 11023, 11024 | |
| 147 | + | } | |
| 148 | + | local itemid = Atributos[math.random(01, #Atributos)] | |
| 149 | + | local rare = _ITEMS[itemid].RARE | |
| 150 | + | local star = 00 | |
| 151 | + | local slot = 03 | |
| 152 | + | if doBackpack(player, 00, slot, 00, 01) then | |
| 153 | + | if doBackpack(player, 01, slot, 00, 0, itemid, rare, star) then | |
| 154 | + | player:getPosition():sendMagicEffect(14) | |
| 155 | + | end | |
| 156 | + | else | |
| 157 | + | local GoldQnt = NINHO_DIFICULTY[player:getStorageValue(_SYSTEM.GLOBAL_INDEX[01])][03] | |
| 158 | + | PlayerGoldCoins(player, 02, GoldQnt) | |
| 159 | + | player:getPosition():sendMagicEffect(03) | |
| 160 | + | player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Sua Backpack est� cheia.") | |
| 161 | + | end | |
| 162 | + | else | |
| 163 | + | local itemid = math.random(7000, 7014) | |
| 164 | + | local rare = math.random(00, 02) | |
| 165 | + | local star = 0 | |
| 166 | + | local slot = 07 | |
| 167 | + | if doBackpack(player, 00, slot, 00, 01) then | |
| 168 | + | if doBackpack(player, 01, slot, 00, 0, itemid, rare, star) then | |
| 169 | + | player:getPosition():sendMagicEffect(14) | |
| 170 | + | end | |
| 171 | + | else | |
| 172 | + | local GoldQnt = NINHO_DIFICULTY[player:getStorageValue(_SYSTEM.GLOBAL_INDEX[01])][03] | |
| 173 | + | PlayerGoldCoins(player, 02, GoldQnt) | |
| 174 | + | player:getPosition():sendMagicEffect(03) | |
| 175 | + | player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Sua Backpack est� cheia.") | |
| 176 | + | end | |
| 177 | + | end | |
| 178 | + | end | |
| 179 | + | ||
| 180 | + | -- DESAFIO | |
| 181 | + | if player:getStorageValue(_DESAFIOS[00].DESAFIO_ID) > 00 then | |
| 182 | + | if HARD == "FACIL" then | |
| 183 | + | onPlayerDesafios(player, 54, 01) | |
| 184 | + | elseif HARD == "MEDIO" then | |
| 185 | + | onPlayerDesafios(player, 55, 01) | |
| 186 | + | elseif HARD == "DIFICIL" then | |
| 187 | + | onPlayerDesafios(player, 56, 01) | |
| 188 | + | elseif HARD == "IMPOSSIVEL" then | |
| 189 | + | onPlayerDesafios(player, 57, 01) | |
| 190 | + | end | |
| 191 | + | end | |
| 192 | + | player:setStorageValue(_SYSTEM.CURSED_TREE, nil) | |
| 193 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Voc� finalizou a Arvore Amaldi�oada na dificuldade (" ..HARD.. ")\n[ EXP " ..EXPERIENCE.. " ]") | |
| 194 | + | if player:getStorageValue(_QUESTLOG[31].UID_01) == 02 then | |
| 195 | + | addEvent(function() | |
| 196 | + | player:setStorageValue(_QUESTLOG[31].UID_01, 03) | |
| 197 | + | ||
| 198 | + | player:getPosition():sendMagicEffect(14) | |
| 199 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Seu Quest Log foi atualizado.") | |
| 200 | + | doBackpack(player, 12) | |
| 201 | + | end, 3000) | |
| 202 | + | end | |
| 203 | + | if HARD == "MEDIO" then | |
| 204 | + | if player:getStorageValue(_QUESTLOG[153].UID_01) == 01 then | |
| 205 | + | addEvent(function() | |
| 206 | + | player:setStorageValue(_QUESTLOG[153].UID_01, 100) | |
| 207 | + | player:setStorageValue(_QUESTLOG[154].UID_01, 01) | |
| 208 | + | ||
| 209 | + | player:addExperience(40000, true, true) | |
| 210 | + | player:getPosition():sendMagicEffect(14) | |
| 211 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Seu Quest Log foi atualizado.") | |
| 212 | + | doBackpack(player, 12) | |
| 213 | + | end, 3000) | |
| 214 | + | end | |
| 215 | + | end | |
| 216 | + | if HARD == "DIFICIL" then | |
| 217 | + | if player:getStorageValue(_QUESTLOG[154].UID_01) == 01 then | |
| 218 | + | addEvent(function() | |
| 219 | + | player:setStorageValue(_QUESTLOG[154].UID_01, 100) | |
| 220 | + | player:setStorageValue(_QUESTLOG[155].UID_01, 01) | |
| 221 | + | ||
| 222 | + | player:addExperience(60000, true, true) | |
| 223 | + | player:getPosition():sendMagicEffect(14) | |
| 224 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Seu Quest Log foi atualizado.") | |
| 225 | + | doBackpack(player, 12) | |
| 226 | + | end, 3000) | |
| 227 | + | end | |
| 228 | + | end | |
| 229 | + | if HARD == "IMPOSSIVEL" then | |
| 230 | + | if player:getStorageValue(_QUESTLOG[155].UID_01) == 01 then | |
| 231 | + | addEvent(function() | |
| 232 | + | player:setStorageValue(_QUESTLOG[155].UID_01, 100) | |
| 233 | + | ||
| 234 | + | player:addExperience(80000, true, true) | |
| 235 | + | player:getPosition():sendMagicEffect(14) | |
| 236 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Seu Quest Log foi atualizado.") | |
| 237 | + | doBackpack(player, 12) | |
| 238 | + | end, 3000) | |
| 239 | + | end | |
| 240 | + | end | |
| 241 | + | else | |
| 242 | + | player:setStorageValue(TAG, (CHECK_STEP + 1)) | |
| 243 | + | player:getPosition():sendMagicEffect(13) | |
| 244 | + | ||
| 245 | + | Game.createMonster(_GLOBAL_RANDOM.NINHOS[HARD][math.random(01, #_GLOBAL_RANDOM.NINHOS[HARD])].NAME, {x=4048, y=945, z=08}, false, true) | |
| 246 | + | Game.createMonster(_GLOBAL_RANDOM.NINHOS[HARD][math.random(01, #_GLOBAL_RANDOM.NINHOS[HARD])].NAME, {x=4050, y=948, z=08}, false, true) | |
| 247 | + | Game.createMonster(_GLOBAL_RANDOM.NINHOS[HARD][math.random(01, #_GLOBAL_RANDOM.NINHOS[HARD])].NAME, {x=4053, y=942, z=08}, false, true) | |
| 248 | + | Game.createMonster(_GLOBAL_RANDOM.NINHOS[HARD][math.random(01, #_GLOBAL_RANDOM.NINHOS[HARD])].NAME, {x=4055, y=950, z=08}, false, true) | |
| 249 | + | Game.createMonster(_GLOBAL_RANDOM.NINHOS[HARD][math.random(01, #_GLOBAL_RANDOM.NINHOS[HARD])].NAME, {x=4059, y=948, z=08}, false, true) | |
| 250 | + | Game.createMonster(_GLOBAL_RANDOM.NINHOS[HARD][math.random(01, #_GLOBAL_RANDOM.NINHOS[HARD])].NAME, {x=4059, y=944, z=08}, false, true) | |
| 251 | + | end | |
| 252 | + | else | |
| 253 | + | player:getPosition():sendMagicEffect(03) | |
| 254 | + | end | |
| 255 | + | else | |
| 256 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Limpe a �rea primeiro.") | |
| 257 | + | player:getPosition():sendMagicEffect(03) | |
| 258 | + | end | |
| 259 | + | ||
| 260 | + | return true | |
| 261 | + | end |
| @@ -0,0 +1,399 @@ | |||
| 1 | + | function onUse(player, item, fromPosition, target, toPosition, isHotkey) | |
| 2 | + | local REWARDS = { | |
| 3 | + | --[[ INSTRU��ES SOBRE COMO PREENCHER A TABELA DE RECOMPENSAS. | |
| 4 | + | Storage = Storage que checar� se voc� pode clicar no ba� e receber o premio. | |
| 5 | + | Check = | |
| 6 | + | [01] = Value da Storage que voc� precisa ter para acessar o ba�. | |
| 7 | + | [02] = Value da Storage que voc� ganha para n�o poder acessar o ba� novamente. | |
| 8 | + | Type = Tipo de premio que voc� ira receber: EQUIP | MISSION | |
| 9 | + | ItemInfo = | |
| 10 | + | [01] = ID do item que voce ira receber. | |
| 11 | + | [02] = Slot do inventario da qual aquele item pertence. | |
| 12 | + | [03] = Raridade do Item. | |
| 13 | + | [04] = Nivel de estrelas do item. | |
| 14 | + | SpecialStorage = | |
| 15 | + | [01] = Usado em Quest especiais onde se ganha uma storage diferente da storage do bau. | |
| 16 | + | [02] = Qual storage nova voce ira ganhar. | |
| 17 | + | [03] = Value dessa storage. | |
| 18 | + | SpecialMSG = | |
| 19 | + | [01] = Se o jogador ira receber uma mensagem especial ao abrir o bau. | |
| 20 | + | [02] = Mensagem. | |
| 21 | + | Tutorial = | |
| 22 | + | [01] = Se ao abrir o Bau, vai mostrar algum tutorial para o jogador. O numero indica qual tutorial sera mostrado. (0 indica que nao) | |
| 23 | + | [02] = Quanto tempo, em segundos, o tutorial demorara para aparecer ao player. | |
| 24 | + | SendCancel = | |
| 25 | + | [01] = Se precisa enviar alguma informa��o para o cliente | |
| 26 | + | [02] = Mensagem | |
| 27 | + | ]]-- | |
| 28 | + | ||
| 29 | + | [10000] = {Storage = _QUESTLOG[01].UID_01, Check = {01, 002}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {4015, 4, 0, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {true, "@NewbieStart 02"}}; | |
| 30 | + | [10001] = {Storage = _QUESTLOG[05].UID_01, Check = {02, 003}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {2000, 2, 0, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 31 | + | [10002] = {Storage = _QUESTLOG[10].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "CHEST", ItemInfo = {1002, 1, 0, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 32 | + | [10003] = {Storage = _QUESTLOG[11].UID_01, Check = {02, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {8000, 8, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 33 | + | [10004] = {Storage = _QUESTLOG[12].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {4005, 4, 0, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 34 | + | [10005] = {Storage = _QUESTLOG[13].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "CHEST", ItemInfo = {5014, 5, 2, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 35 | + | [10006] = {Storage = _QUESTLOG[14].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "CHEST", ItemInfo = {6000, 6, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 36 | + | [10007] = {Storage = _QUESTLOG[15].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "CHEST", ItemInfo = {3009, 3, 0, 0, 20, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 37 | + | [10008] = {Storage = _QUESTLOG[16].UID_01, Check = {02, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {4032, 4, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 38 | + | [10009] = {Storage = _QUESTLOG[17].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "CHEST", ItemInfo = {3002, 3, 1, 0, 25, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 39 | + | [10010] = {Storage = _QUESTLOG[18].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "CHEST", ItemInfo = {7002, 7, 0, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 40 | + | [10011] = {Storage = _QUESTLOG[19].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "CHEST", ItemInfo = {4016, 4, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 41 | + | [10012] = {Storage = _QUESTLOG[20].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "CHEST", ItemInfo = {3043, 3, 1, 0, 25, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 42 | + | [10013] = {Storage = _QUESTLOG[21].UID_01, Check = {01, 100}, GoldCoin = 00015000, Type = "COINS", ItemInfo = {0000, 0, 0, 0, 0, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 43 | + | [10014] = {Storage = _QUESTLOG[22].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "CHEST", ItemInfo = {3169, 3, 1, 0, 25, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 44 | + | [10015] = {Storage = _QUESTLOG[23].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "CHEST", ItemInfo = {8001, 8, 2, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 45 | + | [10016] = {Storage = _QUESTLOG[24].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "CHEST", ItemInfo = {5008, 5, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 46 | + | [10017] = {Storage = _QUESTLOG[25].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "CHEST", ItemInfo = {3072, 3, 0, 0, 25, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 47 | + | [10018] = {Storage = _QUESTLOG[33].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "PASS", ItemInfo = {0000, 0, 0, 0, 0, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {true, "@PassChest 01 01"}}; | |
| 48 | + | [10019] = {Storage = _QUESTLOG[34].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "PASS", ItemInfo = {0000, 0, 0, 0, 0, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {true, "@PassChest 01 02"}}; | |
| 49 | + | [10020] = {Storage = _QUESTLOG[35].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "PASS", ItemInfo = {0000, 0, 0, 0, 0, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {true, "@PassChest 01 03"}}; | |
| 50 | + | [10021] = {Storage = _QUESTLOG[36].UID_01, Check = {01, 100}, GoldCoin = 00050000, Type = "COINS", ItemInfo = {0000, 0, 0, 0, 0, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 51 | + | [10022] = {Storage = _QUESTLOG[37].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "PASS", ItemInfo = {0000, 0, 0, 0, 0, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {true, "@PassChest 01 04"}}; | |
| 52 | + | [10023] = {Storage = _QUESTLOG[38].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {5023, 5, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 53 | + | [10024] = {Storage = _QUESTLOG[38].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {5023, 5, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 54 | + | [10025] = {Storage = _QUESTLOG[39].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {6010, 6, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 55 | + | [10026] = {Storage = _QUESTLOG[40].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {3110, 3, 0, 0, 35, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 56 | + | [10027] = {Storage = _QUESTLOG[41].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {2021, 2, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 57 | + | [10028] = {Storage = 11044, Check = {01, 02}, GoldCoin = 00100000, Type = "COINS", ItemInfo = {0000, 0, 0, 0, 0, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 58 | + | [10030] = {Storage = _QUESTLOG[42].UID_01, Check = {03, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {1000, 1, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 59 | + | [10031] = {Storage = _QUESTLOG[42].Value[01], Check = {06, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {6016, 6, 0, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 60 | + | [10032] = {Storage = _QUESTLOG[43].UID_01, Check = {01, 100}, GoldCoin = 00100000, Type = "COINS", ItemInfo = {0000, 0, 0, 0, 0, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 61 | + | [10034] = {Storage = 10848, Check = {-1, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {5031, 5, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 62 | + | [10035] = {Storage = 10848, Check = {-1, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {5032, 5, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 63 | + | [10036] = {Storage = _QUESTLOG[44].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {2003, 2, 2, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 64 | + | [10037] = {Storage = _QUESTLOG[45].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {1009, 1, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 65 | + | [10038] = {Storage = _QUESTLOG[46].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {5006, 5, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 66 | + | [10039] = {Storage = _QUESTLOG[47].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {6009, 6, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 67 | + | [10041] = {Storage = _QUESTLOG[48].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {4000, 4, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 68 | + | [10042] = {Storage = _QUESTLOG[49].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {9010, 9, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 69 | + | [10043] = {Storage = _QUESTLOG[49].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {5026, 5, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 70 | + | [10044] = {Storage = _QUESTLOG[50].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {2006, 2, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 71 | + | [10045] = {Storage = _QUESTLOG[51].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {1006, 1, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 72 | + | [10046] = {Storage = _QUESTLOG[52].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "PASS", ItemInfo = {9006, 9, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {true, "@PassChest 01 05"}}; | |
| 73 | + | [10047] = {Storage = _QUESTLOG[53].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "PASS", ItemInfo = {7005, 7, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {true, "@PassChest 01 06"}}; | |
| 74 | + | [10048] = {Storage = _QUESTLOG[54].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "PASS", ItemInfo = {4022, 4, 2, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {true, "@PassChest 01 07"}}; | |
| 75 | + | [10049] = {Storage = _QUESTLOG[55].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "PASS", ItemInfo = {5038, 5, 3, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {true, "@PassChest 01 08"}}; | |
| 76 | + | [10050] = {Storage = _QUESTLOG[56].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {4001, 4, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 77 | + | [10051] = {Storage = _QUESTLOG[57].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {3020, 3, 0, 0, 35, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 78 | + | [10052] = {Storage = _QUESTLOG[58].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {4003, 4, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 79 | + | [10053] = {Storage = _QUESTLOG[59].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {3109, 3, 0, 0, 30, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 80 | + | [10054] = {Storage = _QUESTLOG[60].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {4006, 4, 0, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 81 | + | [10055] = {Storage = _QUESTLOG[61].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {4007, 4, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 82 | + | [10056] = {Storage = _QUESTLOG[62].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {3006, 3, 0, 0, 35, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 83 | + | [10057] = {Storage = _QUESTLOG[63].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {4018, 4, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 84 | + | [10058] = {Storage = _QUESTLOG[63].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {3201, 3, 0, 0, 40, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 85 | + | [10059] = {Storage = _QUESTLOG[64].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {4031, 4, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 86 | + | [10060] = {Storage = _QUESTLOG[65].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "PASS", ItemInfo = {3055, 3, 0, 0, 30, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {true, "@PassChest 01 09"}}; | |
| 87 | + | [10061] = {Storage = _QUESTLOG[66].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {3175, 3, 0, 0, 35, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 88 | + | [10062] = {Storage = _QUESTLOG[67].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {4003, 4, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 89 | + | [10063] = {Storage = _QUESTLOG[67].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {4008, 4, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 90 | + | [10064] = {Storage = _QUESTLOG[67].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {4022, 4, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 91 | + | [10065] = {Storage = _QUESTLOG[67].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {4037, 4, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 92 | + | [10066] = {Storage = _QUESTLOG[68].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {3124, 3, 0, 0, 40, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 93 | + | [10067] = {Storage = _QUESTLOG[69].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {3013, 3, 0, 0, 40, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 94 | + | [10068] = {Storage = _QUESTLOG[81].UID_01, Check = {02, 003}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {0000, 0, 0, 0, 0, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 95 | + | [10069] = {Storage = _QUESTLOG[90].UID_01, Check = {02, 003}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {0000, 0, 0, 0, 0, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 96 | + | [10070] = {Storage = _QUESTLOG[99].UID_01, Check = {02, 003}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {0000, 0, 0, 0, 0, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 97 | + | [10071] = {Storage = _QUESTLOG[103].UID_01, Check = {02, 003}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {0000, 0, 0, 0, 0, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 98 | + | [10072] = {Storage = _QUESTLOG[108].UID_01, Check = {02, 003}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {0000, 0, 0, 0, 0, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 99 | + | [10073] = {Storage = _QUESTLOG[108].UID_01, Check = {03, 004}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {0000, 0, 0, 0, 0, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 100 | + | [10074] = {Storage = _QUESTLOG[108].UID_01, Check = {04, 005}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {0000, 0, 0, 0, 0, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 101 | + | [10075] = {Storage = _QUESTLOG[108].UID_01, Check = {05, 006}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {0000, 0, 0, 0, 0, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 102 | + | [10076] = {Storage = _QUESTLOG[112].UID_01, Check = {02, 003}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {0000, 0, 0, 0, 0, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 103 | + | [10077] = {Storage = _QUESTLOG[112].UID_01, Check = {03, 004}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {0000, 0, 0, 0, 0, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 104 | + | [10078] = {Storage = _QUESTLOG[112].UID_01, Check = {04, 005}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {0000, 0, 0, 0, 0, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 105 | + | [10079] = {Storage = _QUESTLOG[112].UID_01, Check = {05, 006}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {0000, 0, 0, 0, 0, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 106 | + | [10080] = {Storage = _QUESTLOG[116].UID_01, Check = {02, 003}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {0000, 0, 0, 0, 0, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 107 | + | ||
| 108 | + | [10081] = {Storage = _QUESTLOG[116].UID_01, Check = {-1, 100}, GoldCoin = 00000000, Type = "PASS", ItemInfo = {0000, 0, 0, 0, 0, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {true, "@PassChest 01 01"}}; | |
| 109 | + | ||
| 110 | + | -- QUEST PREMIUM | |
| 111 | + | [10082] = {Storage = _QUESTLOG[120].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "CHEST", ItemInfo = {3185, 3, 0, 0, 20, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; | |
| 112 | + | [10083] = {Storage = _QUESTLOG[121].UID_01, Check = {05, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {7000, 7, 1, 0, 01, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- MEM�RIAS | |
| 113 | + | [10084] = {Storage = _QUESTLOG[122].UID_01, Check = {02, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {7008, 7, 1, 0, 01, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- TEMPLO DAS CORES | |
| 114 | + | [10085] = {Storage = _QUESTLOG[123].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3020, 3, 0, 0, 30, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- ESCAMAS DOS ELDER | |
| 115 | + | [10086] = {Storage = _QUESTLOG[124].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3282, 3, 0, 0, 25, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- PARASITAS | |
| 116 | + | [10087] = {Storage = _QUESTLOG[125].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {0000, 0, 0, 0, 00, false}, SpecialStorage = {true, _QUESTLOG[126].UID_01, 01}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- NINHO DO CROCODILO - PARTE I | |
| 117 | + | [10088] = {Storage = _QUESTLOG[126].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {6003, 6, 2, 0, 00, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- NINHO DO CROCODILO - PARTE II | |
| 118 | + | [10089] = {Storage = _QUESTLOG[127].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3287, 3, 0, 0, 25, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- ASAS DE PEDRA | |
| 119 | + | [10090] = {Storage = _QUESTLOG[128].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3005, 3, 0, 0, 20, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- CALDAS DO DRAG�O | |
| 120 | + | [10091] = {Storage = _QUESTLOG[129].UID_01, Check = {01, 002}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3077, 3, 0, 0, 25, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- RETALHOS | |
| 121 | + | [10092] = {Storage = _QUESTLOG[129].UID_01, Check = {02, 003}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3078, 3, 0, 0, 25, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- RETALHOS | |
| 122 | + | [10093] = {Storage = _QUESTLOG[129].UID_01, Check = {03, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3183, 3, 0, 0, 25, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- RETALHOS | |
| 123 | + | [10094] = {Storage = _QUESTLOG[130].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3243, 3, 0, 0, 20, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- BESTA ENJAULADA | |
| 124 | + | [10095] = {Storage = _QUESTLOG[131].UID_01, Check = {04, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {2015, 2, 3, 0, 01, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- ENIGMA DA SERPENTE | |
| 125 | + | [10096] = {Storage = _QUESTLOG[132].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3269, 3, 0, 0, 30, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- PRESAS DE SANGUE | |
| 126 | + | [10097] = {Storage = _QUESTLOG[133].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3008, 3, 0, 0, 25, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- PATAS DE MEL | |
| 127 | + | [10098] = {Storage = _QUESTLOG[134].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3011, 3, 0, 0, 25, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- DEDO DURO | |
| 128 | + | [10099] = {Storage = _QUESTLOG[135].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3279, 3, 0, 0, 25, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- PRESAS DA MEIA NOITE | |
| 129 | + | [10100] = {Storage = _QUESTLOG[136].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3196, 3, 0, 0, 25, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- MENTE MORTA | |
| 130 | + | [10226] = {Storage = _QUESTLOG[137].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3074, 3, 0, 0, 25, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- ESP�LIOS DE CA�A - I | |
| 131 | + | [10227] = {Storage = _QUESTLOG[138].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3054, 3, 0, 0, 25, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- ESP�LIOS DE CA�A - II | |
| 132 | + | [10228] = {Storage = _QUESTLOG[139].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3274, 3, 0, 0, 25, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- ESP�LIOS DE CA�A - III | |
| 133 | + | [10229] = {Storage = _QUESTLOG[140].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3288, 3, 0, 0, 25, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- ESP�LIOS DE CA�A - IV | |
| 134 | + | [10230] = {Storage = _QUESTLOG[141].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3037, 3, 0, 0, 35, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- ESS�NCIAS DE UM PESADELO | |
| 135 | + | [10231] = {Storage = _QUESTLOG[142].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3286, 3, 0, 0, 25, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- ESP�LIOS DE CA�A - V | |
| 136 | + | [10232] = {Storage = _QUESTLOG[143].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3285, 3, 0, 0, 25, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- ESP�LIOS DE CA�A - VI | |
| 137 | + | [10233] = {Storage = _QUESTLOG[144].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3234, 3, 0, 0, 30, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- DEVORADOR DE PEDRAS | |
| 138 | + | [10234] = {Storage = _QUESTLOG[145].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3291, 3, 0, 0, 35, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- TESOURO ESPECTRAL | |
| 139 | + | [10235] = {Storage = _QUESTLOG[146].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3289, 3, 0, 0, 25, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- ESP�LIOS DE CA�A - VII | |
| 140 | + | [10236] = {Storage = _QUESTLOG[147].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3242, 3, 0, 0, 25, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- ESP�LIOS DE CA�A - VIII | |
| 141 | + | [10237] = {Storage = _QUESTLOG[202].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "NONE", ItemInfo = {0000, 0, 0, 0, 00, false}, SpecialStorage = {true, _SYSTEM.POINTS_ATR[07], 01}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado.\n1x Ponto de Atributo."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- CAMINHO TORTUOSO | |
| 142 | + | [10238] = {Storage = _QUESTLOG[203].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {9000, 9, 1, 0, 01, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- INFESTA��O | |
| 143 | + | [10239] = {Storage = _QUESTLOG[204].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {11003, 3, 0, 0, 01, true}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- FURIA DA SORTE | |
| 144 | + | [10240] = {Storage = _QUESTLOG[205].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {5025, 5, 2, 0, 01, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- SAL�O ROYAL | |
| 145 | + | ||
| 146 | + | } | |
| 147 | + | ||
| 148 | + | if REWARDS[item.uid] then | |
| 149 | + | local X = REWARDS[item.uid] | |
| 150 | + | if X.Type == "PASS" then | |
| 151 | + | if player:getStorageValue(X.Storage) == X.Check[01] then | |
| 152 | + | if X.SendCancel[01] then | |
| 153 | + | player:sendCancelMessage(X.SendCancel[02]) | |
| 154 | + | else | |
| 155 | + | player:getPosition():sendMagicEffect(03) | |
| 156 | + | return true | |
| 157 | + | end | |
| 158 | + | else | |
| 159 | + | player:getPosition():sendMagicEffect(03) | |
| 160 | + | return true | |
| 161 | + | end | |
| 162 | + | elseif X.Type == "COINS" then | |
| 163 | + | if player:getStorageValue(X.Storage) < X.Check[02] then | |
| 164 | + | local GoldQnt = X.GoldCoin | |
| 165 | + | PlayerGoldCoins(player, 02, GoldQnt) | |
| 166 | + | ||
| 167 | + | if _DEBUG_MODE then | |
| 168 | + | print("[ACTION - QUEST BAUL] " ..player:getName().. " - Abrindo Quest Baul [" ..item.uid.. "] | REC GOLD: (" ..GoldQnt.. ")") | |
| 169 | + | end | |
| 170 | + | player:getPosition():sendMagicEffect(14) | |
| 171 | + | player:setStorageValue(X.Storage, X.Check[02]) | |
| 172 | + | else | |
| 173 | + | player:getPosition():sendMagicEffect(03) | |
| 174 | + | return true | |
| 175 | + | end | |
| 176 | + | elseif X.Type == "NONE" then | |
| 177 | + | if player:getStorageValue(X.Storage) == X.Check[01] then | |
| 178 | + | if X.SpecialStorage[01] then | |
| 179 | + | player:setStorageValue(X.SpecialStorage[02], (player:getStorageValue(X.SpecialStorage[02]) + X.SpecialStorage[03])) | |
| 180 | + | end | |
| 181 | + | player:setStorageValue(X.Storage, X.Check[02]) | |
| 182 | + | if X.SpecialMSG[01] then | |
| 183 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, X.SpecialMSG[02]) | |
| 184 | + | end | |
| 185 | + | if X.Tutorial[01] > 0 then | |
| 186 | + | addEvent(function() player:sendCancelMessage("@TutorShow " ..X.Tutorial[01]) end, X.Tutorial[02] * 1000) | |
| 187 | + | end | |
| 188 | + | if X.SendCancel[01] then | |
| 189 | + | player:sendCancelMessage(X.SendCancel[02]) | |
| 190 | + | end | |
| 191 | + | else | |
| 192 | + | player:getPosition():sendMagicEffect(03) | |
| 193 | + | return false | |
| 194 | + | end | |
| 195 | + | elseif X.Type == "CHEST" then | |
| 196 | + | if player:getStorageValue(X.Storage) < X.Check[02] then | |
| 197 | + | -------------------------------------------------- | |
| 198 | + | local itemid = X.ItemInfo[01] | |
| 199 | + | local slot = X.ItemInfo[02] | |
| 200 | + | local ext = 0 | |
| 201 | + | local rare = X.ItemInfo[03] | |
| 202 | + | local star = X.ItemInfo[04] | |
| 203 | + | local qnt = X.ItemInfo[05] | |
| 204 | + | --------------------------------------------------- | |
| 205 | + | if doBackpack(player, 00, slot, ext, 01) then | |
| 206 | + | if slot == 3 then | |
| 207 | + | if _DEBUG_MODE then | |
| 208 | + | print("[ACTION - QUEST BAUL] " ..player:getName().. " - Abrindo Quest Baul [" ..item.uid.. "] | REC CHEST: (" .._ITEMS[itemid].NAME.. " x" ..qnt.. ")") | |
| 209 | + | end | |
| 210 | + | doBackpack(player, 03, slot, ext, 01, itemid) -- Procurar | |
| 211 | + | rare = _ITEMS[itemid].RARE | |
| 212 | + | if doBackpack(player, 01, slot, ext, 0, itemid, rare, star, qnt) then | |
| 213 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Usted recibio un articulo [ " .._ITEMS[itemid].NAME.. ", x" ..qnt.." ].") | |
| 214 | + | player:getPosition():sendMagicEffect(14) | |
| 215 | + | end | |
| 216 | + | else | |
| 217 | + | if _DEBUG_MODE then | |
| 218 | + | print("[ACTION - QUEST BAUL] " ..player:getName().. " - Abrindo Quest Baul [" ..item.uid.. "] | REC CHEST: (" .._ITEMS[itemid].NAME.. ")") | |
| 219 | + | end | |
| 220 | + | if doBackpack(player, 01, slot, ext, 0, itemid, rare, star, qnt) then | |
| 221 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Usted recibio un articulo [ " .._ITEMS[itemid].NAME.. " ].") | |
| 222 | + | player:getPosition():sendMagicEffect(14) | |
| 223 | + | end | |
| 224 | + | end | |
| 225 | + | ||
| 226 | + | player:getPosition():sendMagicEffect(14) | |
| 227 | + | if X.SpecialStorage[01] then | |
| 228 | + | player:setStorageValue(X.SpecialStorage[02], X.SpecialStorage[03]) | |
| 229 | + | else | |
| 230 | + | player:setStorageValue(X.Storage, X.Check[02]) | |
| 231 | + | end | |
| 232 | + | if X.SpecialMSG[01] then | |
| 233 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, X.SpecialMSG[02]) | |
| 234 | + | end | |
| 235 | + | if X.Tutorial[01] > 0 then | |
| 236 | + | addEvent(function() player:sendCancelMessage("@TutorShow " ..X.Tutorial[01]) end, X.Tutorial[02] * 1000) | |
| 237 | + | end | |
| 238 | + | if X.SendCancel[01] then | |
| 239 | + | player:sendCancelMessage(X.SendCancel[02]) | |
| 240 | + | end | |
| 241 | + | else | |
| 242 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Su Bolsa esta llena.") | |
| 243 | + | player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Su Bolsa esta llena.") | |
| 244 | + | player:getPosition():sendMagicEffect(03) | |
| 245 | + | return false | |
| 246 | + | end | |
| 247 | + | else | |
| 248 | + | player:getPosition():sendMagicEffect(03) | |
| 249 | + | return true | |
| 250 | + | end | |
| 251 | + | elseif X.Type == "QUEST" then | |
| 252 | + | if player:getStorageValue(X.Storage) == X.Check[01] then | |
| 253 | + | if X.ItemInfo[01] > 00 then | |
| 254 | + | -------------------------------------------------- | |
| 255 | + | local itemid = X.ItemInfo[01] | |
| 256 | + | local slot = X.ItemInfo[02] | |
| 257 | + | local ext = 0 | |
| 258 | + | local rare = X.ItemInfo[03] | |
| 259 | + | local star = X.ItemInfo[04] | |
| 260 | + | local qnt = X.ItemInfo[05] | |
| 261 | + | local uni = X.ItemInfo[06] | |
| 262 | + | --------------------------------------------------- | |
| 263 | + | if doBackpack(player, 00, slot, ext, 01) then | |
| 264 | + | if slot == 3 then | |
| 265 | + | if _DEBUG_MODE then | |
| 266 | + | print("[ACTION - QUEST BAUL] " ..player:getName().. " - Abrindo Quest Baul [" ..item.uid.. "] | REC QUEST: (" .._ITEMS[itemid].NAME.. " x" ..qnt.. ")") | |
| 267 | + | end | |
| 268 | + | if uni then | |
| 269 | + | rare = _ITEMS[itemid].RARE | |
| 270 | + | if doBackpack(player, 01, slot, ext, 0, itemid, rare, star, qnt, uni) then | |
| 271 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Usted recibio un articulo [ " .._ITEMS[itemid].NAME.. ", x" ..qnt.." ].") | |
| 272 | + | player:getPosition():sendMagicEffect(14) | |
| 273 | + | end | |
| 274 | + | else | |
| 275 | + | doBackpack(player, 03, slot, ext, 01, itemid) -- Procurar | |
| 276 | + | rare = _ITEMS[itemid].RARE | |
| 277 | + | if doBackpack(player, 01, slot, ext, 0, itemid, rare, star, qnt) then | |
| 278 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Usted recibio un articulo [ " .._ITEMS[itemid].NAME.. ", x" ..qnt.." ].") | |
| 279 | + | player:getPosition():sendMagicEffect(14) | |
| 280 | + | end | |
| 281 | + | end | |
| 282 | + | else | |
| 283 | + | if _DEBUG_MODE then | |
| 284 | + | print("[ACTION - QUEST BAUL] " ..player:getName().. " - Abrindo Quest Baul [" ..item.uid.. "] | REC QUEST: (" .._ITEMS[itemid].NAME.. ")") | |
| 285 | + | end | |
| 286 | + | if doBackpack(player, 01, slot, ext, 0, itemid, rare, star, qnt) then | |
| 287 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Usted recibio un articulo [ " .._ITEMS[itemid].NAME.. " ].") | |
| 288 | + | player:getPosition():sendMagicEffect(14) | |
| 289 | + | end | |
| 290 | + | end | |
| 291 | + | ||
| 292 | + | player:getPosition():sendMagicEffect(14) | |
| 293 | + | if X.SpecialStorage[01] then | |
| 294 | + | player:setStorageValue(X.SpecialStorage[02], X.SpecialStorage[03]) | |
| 295 | + | else | |
| 296 | + | player:setStorageValue(X.Storage, X.Check[02]) | |
| 297 | + | end | |
| 298 | + | if X.SpecialMSG[01] then | |
| 299 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, X.SpecialMSG[02]) | |
| 300 | + | end | |
| 301 | + | if X.Tutorial[01] > 0 then | |
| 302 | + | addEvent(function() player:sendCancelMessage("@TutorShow " ..X.Tutorial[01]) end, X.Tutorial[02] * 1000) | |
| 303 | + | end | |
| 304 | + | if X.SendCancel[01] then | |
| 305 | + | player:sendCancelMessage(X.SendCancel[02]) | |
| 306 | + | end | |
| 307 | + | else | |
| 308 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Su Bolsa esta llena.") | |
| 309 | + | player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Su Bolsa esta llena.") | |
| 310 | + | player:getPosition():sendMagicEffect(03) | |
| 311 | + | return false | |
| 312 | + | end | |
| 313 | + | end | |
| 314 | + | ||
| 315 | + | player:setStorageValue(X.Storage, X.Check[02]) | |
| 316 | + | if X.SpecialStorage[01] then | |
| 317 | + | player:setStorageValue(X.SpecialStorage[02], X.SpecialStorage[03]) | |
| 318 | + | end | |
| 319 | + | if X.SpecialMSG[01] then | |
| 320 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, X.SpecialMSG[02]) | |
| 321 | + | end | |
| 322 | + | if X.Tutorial[01] > 0 then | |
| 323 | + | addEvent(function() player:sendCancelMessage("@TutorShow " ..X.Tutorial[01]) end, X.Tutorial[02] * 1000) | |
| 324 | + | end | |
| 325 | + | if X.SendCancel[01] then | |
| 326 | + | player:sendCancelMessage(X.SendCancel[02]) | |
| 327 | + | end | |
| 328 | + | player:getPosition():sendMagicEffect(14) | |
| 329 | + | else | |
| 330 | + | player:getPosition():sendMagicEffect(03) | |
| 331 | + | return true | |
| 332 | + | end | |
| 333 | + | else | |
| 334 | + | if player:getStorageValue(X.Storage) == X.Check[01] then | |
| 335 | + | if X.Type == "EQUIP" then | |
| 336 | + | -------------------------------------------------- | |
| 337 | + | local itemid = X.ItemInfo[01] | |
| 338 | + | local slot = X.ItemInfo[02] | |
| 339 | + | local ext = 0 | |
| 340 | + | local rare = X.ItemInfo[03] | |
| 341 | + | local star = X.ItemInfo[04] | |
| 342 | + | local qnt = X.ItemInfo[05] | |
| 343 | + | --------------------------------------------------- | |
| 344 | + | if doBackpack(player, 00, slot, ext, 01) then | |
| 345 | + | if slot == 3 then | |
| 346 | + | if _DEBUG_MODE then | |
| 347 | + | print("[ACTION - QUEST BAUL] " ..player:getName().. " - Abrindo Quest Baul [" ..item.uid.. "] | REC EQUIP: (" .._ITEMS[itemid].NAME.. " x" ..qnt.. ")") | |
| 348 | + | end | |
| 349 | + | doBackpack(player, 03, slot, ext, 01, itemid) -- Procurar | |
| 350 | + | rare = _ITEMS[itemid].RARE | |
| 351 | + | if doBackpack(player, 01, slot, ext, 0, itemid, rare, star, qnt) then | |
| 352 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Usted recibio un articulo [ " .._ITEMS[itemid].NAME.. ", x" ..qnt.." ].") | |
| 353 | + | player:getPosition():sendMagicEffect(14) | |
| 354 | + | end | |
| 355 | + | else | |
| 356 | + | if _DEBUG_MODE then | |
| 357 | + | print("[ACTION - QUEST BAUL] " ..player:getName().. " - Abrindo Quest Baul [" ..item.uid.. "] | REC EQUIP: (" .._ITEMS[itemid].NAME.. ")") | |
| 358 | + | end | |
| 359 | + | if doBackpack(player, 01, slot, ext, 0, itemid, rare, star, qnt) then | |
| 360 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Usted recibio un articulo [ " .._ITEMS[itemid].NAME.. " ].") | |
| 361 | + | player:getPosition():sendMagicEffect(14) | |
| 362 | + | end | |
| 363 | + | end | |
| 364 | + | ||
| 365 | + | player:getPosition():sendMagicEffect(14) | |
| 366 | + | if X.SpecialStorage[01] then | |
| 367 | + | player:setStorageValue(X.SpecialStorage[02], X.SpecialStorage[03]) | |
| 368 | + | else | |
| 369 | + | player:setStorageValue(X.Storage, X.Check[02]) | |
| 370 | + | end | |
| 371 | + | if X.SpecialMSG[01] then | |
| 372 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, X.SpecialMSG[02]) | |
| 373 | + | end | |
| 374 | + | if X.Tutorial[01] > 0 then | |
| 375 | + | addEvent(function() player:sendCancelMessage("@TutorShow " ..X.Tutorial[01]) end, X.Tutorial[02] * 1000) | |
| 376 | + | end | |
| 377 | + | if X.SendCancel[01] then | |
| 378 | + | player:sendCancelMessage(X.SendCancel[02]) | |
| 379 | + | end | |
| 380 | + | else | |
| 381 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Su Bolsa esta llena.") | |
| 382 | + | player:getPosition():sendMagicEffect(03) | |
| 383 | + | return true | |
| 384 | + | end | |
| 385 | + | end | |
| 386 | + | else | |
| 387 | + | player:getPosition():sendMagicEffect(03) | |
| 388 | + | return true | |
| 389 | + | end | |
| 390 | + | end | |
| 391 | + | ||
| 392 | + | doBackpack(player, 12) | |
| 393 | + | player:sendCancelMessage("@RemoveMarkMap") | |
| 394 | + | player:sendCancelMessage("@LoadQuestMap") | |
| 395 | + | player:sendCancelMessage("@LoadQuestWindows") | |
| 396 | + | end | |
| 397 | + | ||
| 398 | + | return true | |
| 399 | + | end |
| @@ -0,0 +1,26 @@ | |||
| 1 | + | function onUse(player, item, fromPosition, target, toPosition, isHotkey) | |
| 2 | + | if _DEBUG_MODE then | |
| 3 | + | print("[ACTION - CAJA CENTRAL] " ..player:getName().. " - Abrindo Caja Central") | |
| 4 | + | end | |
| 5 | + | local G = PlayerGoldCoins(player, 00) | |
| 6 | + | local tutor = 0 | |
| 7 | + | if player:getStorageValue(_QUESTLOG[06].UID_01) > 0 and player:getStorageValue(_QUESTLOG[06].UID_01) < 100 then | |
| 8 | + | tutor = 1 | |
| 9 | + | end | |
| 10 | + | ||
| 11 | + | ||
| 12 | + | local slot = 03 | |
| 13 | + | local ext = 00 | |
| 14 | + | local totalDesconto = 00 | |
| 15 | + | if Game.getStorageValue(_GLOBAL_RANDOM.DAILY_EVENTS.STORAGE) == 04 then | |
| 16 | + | local players = Game.getPlayers() | |
| 17 | + | for _, targetPlayer in ipairs(players) do | |
| 18 | + | totalDesconto = totalDesconto + 01 | |
| 19 | + | end | |
| 20 | + | end | |
| 21 | + | ||
| 22 | + | doBackpack(player, 00, slot, ext, 01) | |
| 23 | + | player:sendCancelMessage("@OpenSellComboBox") | |
| 24 | + | player:sendCancelMessage("@CentralBox " ..G.. " " ..tutor.. " " .. 0 .. " " ..math.floor(totalDesconto / 2)) | |
| 25 | + | player:sendCancelMessage("@closedBackpack") | |
| 26 | + | end |
| @@ -0,0 +1,778 @@ | |||
| 1 | + | local TEMPLO_CORES = { | |
| 2 | + | [00] = { | |
| 3 | + | [01] = {LEVER = {23496, 23500}, POS = {3692, 1708, 05}}, | |
| 4 | + | [02] = {LEVER = {23497, 23501}, POS = {3693, 1708, 05}}, | |
| 5 | + | [03] = {LEVER = {23498, 23502}, POS = {3694, 1708, 05}}, | |
| 6 | + | [04] = {LEVER = {23499, 23503}, POS = {3695, 1708, 05}}, | |
| 7 | + | [05] = {LEVER = {09827, 09828}, POS = {3696, 1708, 05}}, | |
| 8 | + | }; | |
| 9 | + | [01] = { | |
| 10 | + | [01] = {23500, 23497, 23498, 23499, 09828}, -- O X X X O | |
| 11 | + | [02] = {23496, 23501, 23502, 23499, 09827}, -- X O O X X | |
| 12 | + | [03] = {23496, 23501, 23498, 23503, 09827}, -- X O X O X | |
| 13 | + | [04] = {23500, 23501, 23498, 23499, 09827}, -- O O X X X | |
| 14 | + | [05] = {23496, 23497, 23502, 23503, 09827}, -- X X O O X | |
| 15 | + | [06] = {23500, 23497, 23502, 23499, 09827}, -- O X O X X | |
| 16 | + | [07] = {23496, 23501, 23498, 23499, 09828}, -- X O X X O | |
| 17 | + | [08] = {23496, 23497, 23502, 23499, 09828}, -- X X O X O | |
| 18 | + | [09] = {23500, 23497, 23498, 23503, 09827}, -- O X X O X | |
| 19 | + | }; | |
| 20 | + | } | |
| 21 | + | local function onResetLever() | |
| 22 | + | for X = 01, 05 do | |
| 23 | + | local alaPos = Position(TEMPLO_CORES[00][X].POS[01], TEMPLO_CORES[00][X].POS[02], TEMPLO_CORES[00][X].POS[03]) | |
| 24 | + | local item = Tile(alaPos):getItemById(TEMPLO_CORES[00][X].LEVER[02]) or false | |
| 25 | + | ||
| 26 | + | if item then | |
| 27 | + | item:transform(TEMPLO_CORES[00][X].LEVER[01]) | |
| 28 | + | alaPos:sendMagicEffect(13) | |
| 29 | + | end | |
| 30 | + | end | |
| 31 | + | end | |
| 32 | + | function onUse(player, item, fromPosition, target, toPosition, isHotkey) | |
| 33 | + | local QUEST_UNLOCK = { | |
| 34 | + | [10155] = 10812; -- FIRST HERO QUEST | |
| 35 | + | [10156] = 10813; -- DEAD TREE QUEST | |
| 36 | + | [10157] = 10816; -- BEAR CAVE QUEST | |
| 37 | + | [10158] = 10817; -- WASP CAVE QUEST | |
| 38 | + | [10159] = 10818; -- SPIDER CAVE QUEST | |
| 39 | + | [10160] = 10819; -- WINTER WOLF CAVE QUEST | |
| 40 | + | [10161] = 10820; -- GIANT POWER QUEST | |
| 41 | + | [10162] = 10821; -- MOSS SHIP QUEST | |
| 42 | + | [10163] = 10822; -- TORTOISE QUEST | |
| 43 | + | [10164] = 10823; -- JACK REAPER QUEST | |
| 44 | + | [10165] = 10824; -- TERRAMITE QUEST | |
| 45 | + | [10166] = 10825; -- UNDEAD SWAMP QUEST | |
| 46 | + | [10167] = 10826; -- FROZEN FURY QUEST | |
| 47 | + | [10168] = 10827; -- LEAF FORTRESS QUEST | |
| 48 | + | [10169] = 10815; -- SEAGULL ISLAND QUEST | |
| 49 | + | ||
| 50 | + | [10170] = _SYSTEM.RECYCLER_STORAGE; -- MEMORIAS | |
| 51 | + | [10172] = _SYSTEM.RECYCLER_STORAGE; -- MEMORIAS | |
| 52 | + | [10173] = _SYSTEM.RECYCLER_STORAGE; -- MEMORIAS | |
| 53 | + | [10174] = _SYSTEM.RECYCLER_STORAGE; -- MEMORIAS | |
| 54 | + | [10175] = _SYSTEM.RECYCLER_STORAGE; -- ARVORE DA MORTE | |
| 55 | + | [10176] = _SYSTEM.RECYCLER_STORAGE; -- TEMPLO DAS CORES | |
| 56 | + | [10177] = _SYSTEM.RECYCLER_STORAGE; -- TEMPLO DAS CORES | |
| 57 | + | [10180] = _SYSTEM.RECYCLER_STORAGE; -- TEMPLO DAS CORES | |
| 58 | + | [10181] = _SYSTEM.RECYCLER_STORAGE; -- TEMPLO DAS CORES | |
| 59 | + | [10182] = _SYSTEM.RECYCLER_STORAGE; -- TEMPLO DAS CORES | |
| 60 | + | [10183] = 10958; -- ENIGMA DA SERPENTE | |
| 61 | + | [10184] = 10958; -- ENIGMA DA SERPENTE | |
| 62 | + | [10185] = 10958; -- ENIGMA DA SERPENTE | |
| 63 | + | } | |
| 64 | + | if item.uid == 10186 then | |
| 65 | + | if player:getStorageValue(_QUESTLOG[169].UID_01) == 05 then | |
| 66 | + | player:setStorageValue(_QUESTLOG[169].UID_01, 06) | |
| 67 | + | ||
| 68 | + | player:teleportTo({x=3651, y=1707, z=07}) | |
| 69 | + | player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) | |
| 70 | + | doBackpack(player, 12) | |
| 71 | + | addEvent(function() player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Su diario de Missiones fue actualizado.") end, 2 * 1000) | |
| 72 | + | ||
| 73 | + | return false | |
| 74 | + | end | |
| 75 | + | end | |
| 76 | + | if item.uid == 10187 then | |
| 77 | + | if player:getStorageValue(_QUESTLOG[171].UID_01) == 02 then | |
| 78 | + | player:setStorageValue(_QUESTLOG[171].UID_01, 03) | |
| 79 | + | ||
| 80 | + | doBackpack(player, 12) | |
| 81 | + | player:sendCancelMessage("@RemoveMarkMap") | |
| 82 | + | player:getPosition():sendMagicEffect(13) | |
| 83 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Su diario de Missiones fue actualizado.") | |
| 84 | + | end | |
| 85 | + | return false | |
| 86 | + | end | |
| 87 | + | if item.uid == 10188 then | |
| 88 | + | if player:getStorageValue(_QUESTLOG[171].UID_01) == 03 then | |
| 89 | + | player:setStorageValue(_QUESTLOG[171].UID_01, 04) | |
| 90 | + | ||
| 91 | + | doBackpack(player, 12) | |
| 92 | + | player:sendCancelMessage("@RemoveMarkMap") | |
| 93 | + | player:getPosition():sendMagicEffect(13) | |
| 94 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Su diario de Missiones fue actualizado.") | |
| 95 | + | end | |
| 96 | + | return false | |
| 97 | + | end | |
| 98 | + | if item.uid == 10189 then | |
| 99 | + | if player:getStorageValue(_QUESTLOG[171].UID_01) == 04 then | |
| 100 | + | player:setStorageValue(_QUESTLOG[171].UID_01, 05) | |
| 101 | + | ||
| 102 | + | doBackpack(player, 12) | |
| 103 | + | player:sendCancelMessage("@RemoveMarkMap") | |
| 104 | + | player:getPosition():sendMagicEffect(13) | |
| 105 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Su diario de Missiones fue actualizado.") | |
| 106 | + | end | |
| 107 | + | return false | |
| 108 | + | end | |
| 109 | + | if item.uid == 10190 then | |
| 110 | + | if player:getStorageValue(_QUESTLOG[175].UID_01) == 02 then | |
| 111 | + | player:setStorageValue(_QUESTLOG[175].UID_01, 03) | |
| 112 | + | ||
| 113 | + | doBackpack(player, 12) | |
| 114 | + | player:sendCancelMessage("@RemoveMarkMap") | |
| 115 | + | player:getPosition():sendMagicEffect(13) | |
| 116 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Su diario de Missiones fue actualizado.") | |
| 117 | + | end | |
| 118 | + | return false | |
| 119 | + | end | |
| 120 | + | if item.uid == 10191 then | |
| 121 | + | if player:getStorageValue(_QUESTLOG[176].UID_01) == 02 then | |
| 122 | + | player:setStorageValue(_QUESTLOG[176].UID_01, 03) | |
| 123 | + | ||
| 124 | + | doBackpack(player, 12) | |
| 125 | + | player:sendCancelMessage("@RemoveMarkMap") | |
| 126 | + | player:getPosition():sendMagicEffect(13) | |
| 127 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Su diario de Missiones fue actualizado.") | |
| 128 | + | end | |
| 129 | + | return false | |
| 130 | + | end | |
| 131 | + | if item.uid == 10192 then | |
| 132 | + | if player:getStorageValue(_QUESTLOG[180].UID_01) == 02 then | |
| 133 | + | player:setStorageValue(_QUESTLOG[180].UID_01, 03) | |
| 134 | + | ||
| 135 | + | doBackpack(player, 12) | |
| 136 | + | player:sendCancelMessage("@RemoveMarkMap") | |
| 137 | + | player:getPosition():sendMagicEffect(13) | |
| 138 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Su diario de Missiones fue actualizado.") | |
| 139 | + | end | |
| 140 | + | return false | |
| 141 | + | end | |
| 142 | + | if item.uid == 10193 then | |
| 143 | + | if player:getStorageValue(_QUESTLOG[180].UID_01) == 03 then | |
| 144 | + | player:setStorageValue(_QUESTLOG[180].UID_01, 04) | |
| 145 | + | ||
| 146 | + | doBackpack(player, 12) | |
| 147 | + | player:sendCancelMessage("@RemoveMarkMap") | |
| 148 | + | player:getPosition():sendMagicEffect(13) | |
| 149 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Su diario de Missiones fue actualizado.") | |
| 150 | + | end | |
| 151 | + | return false | |
| 152 | + | end | |
| 153 | + | if item.uid == 10194 then | |
| 154 | + | if player:getStorageValue(_QUESTLOG[180].UID_01) == 04 then | |
| 155 | + | player:setStorageValue(_QUESTLOG[180].UID_01, 05) | |
| 156 | + | ||
| 157 | + | doBackpack(player, 12) | |
| 158 | + | player:sendCancelMessage("@RemoveMarkMap") | |
| 159 | + | player:getPosition():sendMagicEffect(13) | |
| 160 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Su diario de Missiones fue actualizado.") | |
| 161 | + | end | |
| 162 | + | return false | |
| 163 | + | end | |
| 164 | + | if item.uid == 10195 then | |
| 165 | + | if player:getStorageValue(_QUESTLOG[188].UID_01) == 02 then | |
| 166 | + | player:setStorageValue(_QUESTLOG[188].UID_01, 03) | |
| 167 | + | ||
| 168 | + | doBackpack(player, 12) | |
| 169 | + | player:sendCancelMessage("@RemoveMarkMap") | |
| 170 | + | player:getPosition():sendMagicEffect(13) | |
| 171 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Su diario de Missiones fue actualizado.") | |
| 172 | + | end | |
| 173 | + | return false | |
| 174 | + | end | |
| 175 | + | if item.uid == 10196 then | |
| 176 | + | if player:getStorageValue(_QUESTLOG[195].UID_01) == 02 then | |
| 177 | + | player:setStorageValue(_QUESTLOG[195].UID_01, 03) | |
| 178 | + | ||
| 179 | + | doBackpack(player, 12) | |
| 180 | + | player:sendCancelMessage("@RemoveMarkMap") | |
| 181 | + | player:getPosition():sendMagicEffect(13) | |
| 182 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Su diario de Missiones fue actualizado.") | |
| 183 | + | end | |
| 184 | + | return false | |
| 185 | + | end | |
| 186 | + | if item.uid == 10199 then | |
| 187 | + | if player:getStorageValue(_QUESTLOG[121].UID_01) == 04 then | |
| 188 | + | player:teleportTo({x=3577, y=1673, z=08}) | |
| 189 | + | player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) | |
| 190 | + | elseif player:getStorageValue(_QUESTLOG[121].UID_01) == 03 then | |
| 191 | + | player:teleportTo({x=3577, y=1673, z=08}) | |
| 192 | + | player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) | |
| 193 | + | elseif player:getStorageValue(_QUESTLOG[121].UID_01) == 02 then | |
| 194 | + | player:setStorageValue(_QUESTLOG[121].UID_01, 03) | |
| 195 | + | player:teleportTo({x=3577, y=1673, z=08}) | |
| 196 | + | player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) | |
| 197 | + | ||
| 198 | + | doBackpack(player, 12) | |
| 199 | + | player:sendCancelMessage("@RemoveMarkMap") | |
| 200 | + | player:getPosition():sendMagicEffect(13) | |
| 201 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Su diario de Missiones fue actualizado.") | |
| 202 | + | end | |
| 203 | + | return false | |
| 204 | + | end | |
| 205 | + | if item.uid == 10272 then | |
| 206 | + | if player:getStorageValue(_QUESTLOG[186].UID_01) == 02 then | |
| 207 | + | player:setStorageValue(_QUESTLOG[186].UID_01, 03) | |
| 208 | + | ||
| 209 | + | doBackpack(player, 12) | |
| 210 | + | player:sendCancelMessage("@RemoveMarkMap") | |
| 211 | + | player:getPosition():sendMagicEffect(13) | |
| 212 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Su diario de Missiones fue actualizado.") | |
| 213 | + | return false | |
| 214 | + | end | |
| 215 | + | end | |
| 216 | + | if item.uid == 10273 then | |
| 217 | + | if player:getStorageValue(_QUESTLOG[197].UID_01) == 02 then | |
| 218 | + | player:setStorageValue(_QUESTLOG[197].UID_01, 03) | |
| 219 | + | player:setStorageValue(11034, 00) | |
| 220 | + | ||
| 221 | + | player:getPosition():sendMagicEffect(13) | |
| 222 | + | addEvent(function() player:say('Eso debe ser suerte.', TALKTYPE_SAY) end, 2000) | |
| 223 | + | addEvent(function() player:say('Que desastre...', TALKTYPE_SAY) end, 6000) | |
| 224 | + | addEvent(function() player:say('Deben haber sido los mercenarios. Necesito advertir a Towncryer.', TALKTYPE_SAY) end, 10000) | |
| 225 | + | addEvent(function() | |
| 226 | + | local from = {x=3876, y=1529, z=04} | |
| 227 | + | local to = {x=3882, y=1531, z=04} | |
| 228 | + | for A = from.x, to.x do | |
| 229 | + | for B = from.y, to.y do | |
| 230 | + | for C = from.z, to.z do | |
| 231 | + | local tile = Tile(A, B, C) | |
| 232 | + | local others = tile:getTopCreature() | |
| 233 | + | if tile then | |
| 234 | + | if others and others:isPlayer() and others ~= player then | |
| 235 | + | others:teleportTo({x=3890, y=1533, z=05}) | |
| 236 | + | others:getPosition():sendMagicEffect(CONST_ME_TELEPORT) | |
| 237 | + | return false | |
| 238 | + | end | |
| 239 | + | end | |
| 240 | + | end | |
| 241 | + | end | |
| 242 | + | end | |
| 243 | + | end, 12000) | |
| 244 | + | ||
| 245 | + | addEvent(function() | |
| 246 | + | Game.createMonster("Mercenario", {x=3882, y=1529, z=04}) | |
| 247 | + | Game.createMonster("Mercenario", {x=3882, y=1531, z=04}) | |
| 248 | + | addEvent(function() | |
| 249 | + | if player then | |
| 250 | + | Game.createMonster("Mercenario", {x=3882, y=1529, z=04}) | |
| 251 | + | Game.createMonster("Mercenario", {x=3882, y=1531, z=04}) | |
| 252 | + | addEvent(function() | |
| 253 | + | Game.createMonster("Mercenario", {x=3882, y=1529, z=04}) | |
| 254 | + | Game.createMonster("Mercenario", {x=3882, y=1531, z=04}) | |
| 255 | + | return false | |
| 256 | + | end, 10000) | |
| 257 | + | else | |
| 258 | + | return false | |
| 259 | + | end | |
| 260 | + | end, 10000) | |
| 261 | + | end, 13000) | |
| 262 | + | return false | |
| 263 | + | end | |
| 264 | + | end | |
| 265 | + | ||
| 266 | + | -- 10272 > 10299 | |
| 267 | + | if QUEST_UNLOCK[item.uid] then | |
| 268 | + | if player:getStorageValue(QUEST_UNLOCK[item.uid]) == 01 then | |
| 269 | + | player:setStorageValue(QUEST_UNLOCK[item.uid], 02) | |
| 270 | + | ||
| 271 | + | doBackpack(player, 12) | |
| 272 | + | player:sendCancelMessage("@RemoveMarkMap") | |
| 273 | + | player:sendCancelMessage("@LoadQuestMap") | |
| 274 | + | player:sendCancelMessage("@LoadQuestWindows") | |
| 275 | + | player:getPosition():sendMagicEffect(13) | |
| 276 | + | ||
| 277 | + | addEvent(function() player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Su diario de Missiones fue actualizado.") end, 5000) | |
| 278 | + | end | |
| 279 | + | end | |
| 280 | + | if item.uid == 10160 then | |
| 281 | + | local msg = [[ | |
| 282 | + | Carta Oculta: | |
| 283 | + | ||
| 284 | + | Oh hombre. Lo logre! �Conoces esos lobos blancos que casi nos atrapan? | |
| 285 | + | Entonces, entre en su guarida y encontre este loco mecanismo en el suelo. En realidad encontre dos. | |
| 286 | + | Mientras estaba encima de uno, �en un abrir y cerrar de ojos fui teletransportado! | |
| 287 | + | Del otro lado me di cuenta que esto paso cuando el lobo paso por encima del otro mecanismo. | |
| 288 | + | Eso es una locura, �no? | |
| 289 | + | ||
| 290 | + | Deje tu equipo alli. Creo que estara seguro hasta que regreses. | |
| 291 | + | Cuando leas esta carta, rompela. | |
| 292 | + | ]] | |
| 293 | + | player:popupFYI(msg) | |
| 294 | + | ||
| 295 | + | elseif item.uid == 10163 then | |
| 296 | + | local msg = [[ | |
| 297 | + | Donatelo, �estas escuchando? | |
| 298 | + | Cenaremos huevos de tortuga. Repito, huevos de tortuga para cenar. | |
| 299 | + | ||
| 300 | + | jajajaja | |
| 301 | + | Buen viaje, compa�ero. | |
| 302 | + | ]] | |
| 303 | + | player:popupFYI(msg) | |
| 304 | + | ||
| 305 | + | elseif item.uid == 10170 then | |
| 306 | + | if player:getStorageValue(_QUESTLOG[121].UID_01) == 04 then | |
| 307 | + | player:teleportTo({x=3567, y=1679, z=10}) | |
| 308 | + | player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) | |
| 309 | + | else | |
| 310 | + | if player:getStorageValue(_SYSTEM.RECYCLER_STORAGE) < 01 then | |
| 311 | + | player:setStorageValue(_SYSTEM.RECYCLER_STORAGE, 01) | |
| 312 | + | ||
| 313 | + | player:getPosition():sendMagicEffect(13) | |
| 314 | + | elseif player:getStorageValue(_QUESTLOG[121].UID_01) == 04 then | |
| 315 | + | player:teleportTo({x=3567, y=1678, z=10}) | |
| 316 | + | player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) | |
| 317 | + | end | |
| 318 | + | end | |
| 319 | + | ||
| 320 | + | elseif item.uid == 10171 then | |
| 321 | + | if player:getStorageValue(_QUESTLOG[121].UID_01) == 01 then | |
| 322 | + | player:setStorageValue(_QUESTLOG[121].UID_01, 02) | |
| 323 | + | ||
| 324 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Su diario de Missiones fue actualizado.") | |
| 325 | + | player:getPosition():sendMagicEffect(13) | |
| 326 | + | doBackpack(player, 12) | |
| 327 | + | player:sendCancelMessage("@RemoveMarkMap") | |
| 328 | + | player:sendCancelMessage("@LoadQuestWindows") | |
| 329 | + | return true | |
| 330 | + | end | |
| 331 | + | ||
| 332 | + | elseif item.uid == 10172 then | |
| 333 | + | if player:getStorageValue(_SYSTEM.RECYCLER_STORAGE) < 01 then | |
| 334 | + | player:setStorageValue(_SYSTEM.RECYCLER_STORAGE, 01) | |
| 335 | + | ||
| 336 | + | player:getPosition():sendMagicEffect(13) | |
| 337 | + | else | |
| 338 | + | player:setStorageValue(_SYSTEM.RECYCLER_STORAGE, nil) | |
| 339 | + | end | |
| 340 | + | ||
| 341 | + | elseif item.uid == 10173 then | |
| 342 | + | if player:getStorageValue(_SYSTEM.RECYCLER_STORAGE) == 01 then | |
| 343 | + | player:setStorageValue(_SYSTEM.RECYCLER_STORAGE, 02) | |
| 344 | + | ||
| 345 | + | player:getPosition():sendMagicEffect(13) | |
| 346 | + | else | |
| 347 | + | player:setStorageValue(_SYSTEM.RECYCLER_STORAGE, nil) | |
| 348 | + | end | |
| 349 | + | ||
| 350 | + | elseif item.uid == 10174 then | |
| 351 | + | if player:getStorageValue(_SYSTEM.RECYCLER_STORAGE) == 02 then | |
| 352 | + | player:setStorageValue(_SYSTEM.RECYCLER_STORAGE, nil) | |
| 353 | + | player:setStorageValue(_QUESTLOG[121].UID_01, 05) | |
| 354 | + | ||
| 355 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Su diario de Missiones fue actualizado.") | |
| 356 | + | player:getPosition():sendMagicEffect(13) | |
| 357 | + | doBackpack(player, 12) | |
| 358 | + | player:sendCancelMessage("@RemoveMarkMap") | |
| 359 | + | player:sendCancelMessage("@LoadQuestWindows") | |
| 360 | + | return true | |
| 361 | + | else | |
| 362 | + | player:setStorageValue(_SYSTEM.RECYCLER_STORAGE, nil) | |
| 363 | + | end | |
| 364 | + | ||
| 365 | + | --[[ ARVORE DA MORTE | |
| 366 | + | elseif item.uid == 10175 then | |
| 367 | + | if player:getStorageValue(QUEST_UNLOCK[item.uid]) < 01 then | |
| 368 | + | player:setStorageValue(QUEST_UNLOCK[item.uid], 01) | |
| 369 | + | ||
| 370 | + | player:getPosition():sendMagicEffect(13) | |
| 371 | + | else | |
| 372 | + | player:setStorageValue(QUEST_UNLOCK[item.uid], nil) | |
| 373 | + | end]] | |
| 374 | + | ||
| 375 | + | elseif item.uid == 10176 then | |
| 376 | + | if player:getStorageValue(_QUESTLOG[122].UID_01) == 02 then | |
| 377 | + | if player:getStorageValue(QUEST_UNLOCK[item.uid]) > 00 then | |
| 378 | + | player:setStorageValue(QUEST_UNLOCK[item.uid], nil) | |
| 379 | + | ||
| 380 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "[ ERROR ]\nReinicio de arboles!") | |
| 381 | + | player:getPosition():sendMagicEffect(03) | |
| 382 | + | return true | |
| 383 | + | else | |
| 384 | + | local Sequencia = 02 | |
| 385 | + | local Position_1 = Position(TEMPLO_CORES[00][01].POS[01], TEMPLO_CORES[00][01].POS[02], TEMPLO_CORES[00][01].POS[03]) | |
| 386 | + | local Lamp_1 = Tile(Position_1):getItemById(TEMPLO_CORES[01][Sequencia][01]) | |
| 387 | + | local Position_2 = Position(TEMPLO_CORES[00][02].POS[01], TEMPLO_CORES[00][02].POS[02], TEMPLO_CORES[00][02].POS[03]) | |
| 388 | + | local Lamp_2 = Tile(Position_2):getItemById(TEMPLO_CORES[01][Sequencia][02]) | |
| 389 | + | local Position_3 = Position(TEMPLO_CORES[00][03].POS[01], TEMPLO_CORES[00][03].POS[02], TEMPLO_CORES[00][03].POS[03]) | |
| 390 | + | local Lamp_3 = Tile(Position_3):getItemById(TEMPLO_CORES[01][Sequencia][03]) | |
| 391 | + | local Position_4 = Position(TEMPLO_CORES[00][04].POS[01], TEMPLO_CORES[00][04].POS[02], TEMPLO_CORES[00][04].POS[03]) | |
| 392 | + | local Lamp_4 = Tile(Position_4):getItemById(TEMPLO_CORES[01][Sequencia][04]) | |
| 393 | + | local Position_5 = Position(TEMPLO_CORES[00][05].POS[01], TEMPLO_CORES[00][05].POS[02], TEMPLO_CORES[00][05].POS[03]) | |
| 394 | + | local Lamp_5 = Tile(Position_5):getItemById(TEMPLO_CORES[01][Sequencia][05]) | |
| 395 | + | ||
| 396 | + | if Lamp_1 and Lamp_2 and Lamp_3 and Lamp_4 and Lamp_5 then | |
| 397 | + | player:setStorageValue(QUEST_UNLOCK[item.uid], 01) | |
| 398 | + | ||
| 399 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "[ 01 / 05 ]") | |
| 400 | + | player:getPosition():sendMagicEffect(13) | |
| 401 | + | onResetLever() | |
| 402 | + | return true | |
| 403 | + | else | |
| 404 | + | player:setStorageValue(QUEST_UNLOCK[item.uid], nil) | |
| 405 | + | ||
| 406 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "[ ERROR ]\nReinicio de arboles!") | |
| 407 | + | player:getPosition():sendMagicEffect(03) | |
| 408 | + | onResetLever() | |
| 409 | + | return true | |
| 410 | + | end | |
| 411 | + | end | |
| 412 | + | end | |
| 413 | + | ||
| 414 | + | elseif item.uid == 10177 then | |
| 415 | + | if player:getStorageValue(_QUESTLOG[122].UID_01) == 02 then | |
| 416 | + | if player:getStorageValue(QUEST_UNLOCK[item.uid]) == 01 then | |
| 417 | + | local Sequencia = 03 | |
| 418 | + | local Position_1 = Position(TEMPLO_CORES[00][01].POS[01], TEMPLO_CORES[00][01].POS[02], TEMPLO_CORES[00][01].POS[03]) | |
| 419 | + | local Lamp_1 = Tile(Position_1):getItemById(TEMPLO_CORES[01][Sequencia][01]) | |
| 420 | + | local Position_2 = Position(TEMPLO_CORES[00][02].POS[01], TEMPLO_CORES[00][02].POS[02], TEMPLO_CORES[00][02].POS[03]) | |
| 421 | + | local Lamp_2 = Tile(Position_2):getItemById(TEMPLO_CORES[01][Sequencia][02]) | |
| 422 | + | local Position_3 = Position(TEMPLO_CORES[00][03].POS[01], TEMPLO_CORES[00][03].POS[02], TEMPLO_CORES[00][03].POS[03]) | |
| 423 | + | local Lamp_3 = Tile(Position_3):getItemById(TEMPLO_CORES[01][Sequencia][03]) | |
| 424 | + | local Position_4 = Position(TEMPLO_CORES[00][04].POS[01], TEMPLO_CORES[00][04].POS[02], TEMPLO_CORES[00][04].POS[03]) | |
| 425 | + | local Lamp_4 = Tile(Position_4):getItemById(TEMPLO_CORES[01][Sequencia][04]) | |
| 426 | + | local Position_5 = Position(TEMPLO_CORES[00][05].POS[01], TEMPLO_CORES[00][05].POS[02], TEMPLO_CORES[00][05].POS[03]) | |
| 427 | + | local Lamp_5 = Tile(Position_5):getItemById(TEMPLO_CORES[01][Sequencia][05]) | |
| 428 | + | ||
| 429 | + | if Lamp_1 and Lamp_2 and Lamp_3 and Lamp_4 and Lamp_5 then | |
| 430 | + | player:setStorageValue(QUEST_UNLOCK[item.uid], 02) | |
| 431 | + | ||
| 432 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "[ 02 / 05 ]") | |
| 433 | + | player:getPosition():sendMagicEffect(13) | |
| 434 | + | onResetLever() | |
| 435 | + | return true | |
| 436 | + | else | |
| 437 | + | player:setStorageValue(QUEST_UNLOCK[item.uid], nil) | |
| 438 | + | ||
| 439 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "[ ERROR ]\nReinicio de arboles!") | |
| 440 | + | player:getPosition():sendMagicEffect(03) | |
| 441 | + | onResetLever() | |
| 442 | + | return true | |
| 443 | + | end | |
| 444 | + | else | |
| 445 | + | player:setStorageValue(QUEST_UNLOCK[item.uid], nil) | |
| 446 | + | ||
| 447 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "[ ERROR ]\nReinicio de arboles!") | |
| 448 | + | player:getPosition():sendMagicEffect(03) | |
| 449 | + | onResetLever() | |
| 450 | + | return true | |
| 451 | + | end | |
| 452 | + | end | |
| 453 | + | ||
| 454 | + | elseif item.uid == 10180 then | |
| 455 | + | if player:getStorageValue(_QUESTLOG[122].UID_01) == 02 then | |
| 456 | + | if player:getStorageValue(QUEST_UNLOCK[item.uid]) == 02 then | |
| 457 | + | local Sequencia = 06 | |
| 458 | + | local Position_1 = Position(TEMPLO_CORES[00][01].POS[01], TEMPLO_CORES[00][01].POS[02], TEMPLO_CORES[00][01].POS[03]) | |
| 459 | + | local Lamp_1 = Tile(Position_1):getItemById(TEMPLO_CORES[01][Sequencia][01]) | |
| 460 | + | local Position_2 = Position(TEMPLO_CORES[00][02].POS[01], TEMPLO_CORES[00][02].POS[02], TEMPLO_CORES[00][02].POS[03]) | |
| 461 | + | local Lamp_2 = Tile(Position_2):getItemById(TEMPLO_CORES[01][Sequencia][02]) | |
| 462 | + | local Position_3 = Position(TEMPLO_CORES[00][03].POS[01], TEMPLO_CORES[00][03].POS[02], TEMPLO_CORES[00][03].POS[03]) | |
| 463 | + | local Lamp_3 = Tile(Position_3):getItemById(TEMPLO_CORES[01][Sequencia][03]) | |
| 464 | + | local Position_4 = Position(TEMPLO_CORES[00][04].POS[01], TEMPLO_CORES[00][04].POS[02], TEMPLO_CORES[00][04].POS[03]) | |
| 465 | + | local Lamp_4 = Tile(Position_4):getItemById(TEMPLO_CORES[01][Sequencia][04]) | |
| 466 | + | local Position_5 = Position(TEMPLO_CORES[00][05].POS[01], TEMPLO_CORES[00][05].POS[02], TEMPLO_CORES[00][05].POS[03]) | |
| 467 | + | local Lamp_5 = Tile(Position_5):getItemById(TEMPLO_CORES[01][Sequencia][05]) | |
| 468 | + | ||
| 469 | + | if Lamp_1 and Lamp_2 and Lamp_3 and Lamp_4 and Lamp_5 then | |
| 470 | + | player:setStorageValue(QUEST_UNLOCK[item.uid], 03) | |
| 471 | + | ||
| 472 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "[ 03 / 05 ]") | |
| 473 | + | player:getPosition():sendMagicEffect(13) | |
| 474 | + | onResetLever() | |
| 475 | + | return true | |
| 476 | + | else | |
| 477 | + | player:setStorageValue(QUEST_UNLOCK[item.uid], nil) | |
| 478 | + | ||
| 479 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "[ ERROR ]\nReinicio de arboles!") | |
| 480 | + | player:getPosition():sendMagicEffect(03) | |
| 481 | + | onResetLever() | |
| 482 | + | return true | |
| 483 | + | end | |
| 484 | + | else | |
| 485 | + | player:setStorageValue(QUEST_UNLOCK[item.uid], nil) | |
| 486 | + | ||
| 487 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "[ ERROR ]\nReinicio de arboles!") | |
| 488 | + | player:getPosition():sendMagicEffect(03) | |
| 489 | + | onResetLever() | |
| 490 | + | return true | |
| 491 | + | end | |
| 492 | + | end | |
| 493 | + | ||
| 494 | + | elseif item.uid == 10181 then | |
| 495 | + | if player:getStorageValue(_QUESTLOG[122].UID_01) == 02 then | |
| 496 | + | if player:getStorageValue(QUEST_UNLOCK[item.uid]) == 03 then | |
| 497 | + | local Sequencia = 07 | |
| 498 | + | local Position_1 = Position(TEMPLO_CORES[00][01].POS[01], TEMPLO_CORES[00][01].POS[02], TEMPLO_CORES[00][01].POS[03]) | |
| 499 | + | local Lamp_1 = Tile(Position_1):getItemById(TEMPLO_CORES[01][Sequencia][01]) | |
| 500 | + | local Position_2 = Position(TEMPLO_CORES[00][02].POS[01], TEMPLO_CORES[00][02].POS[02], TEMPLO_CORES[00][02].POS[03]) | |
| 501 | + | local Lamp_2 = Tile(Position_2):getItemById(TEMPLO_CORES[01][Sequencia][02]) | |
| 502 | + | local Position_3 = Position(TEMPLO_CORES[00][03].POS[01], TEMPLO_CORES[00][03].POS[02], TEMPLO_CORES[00][03].POS[03]) | |
| 503 | + | local Lamp_3 = Tile(Position_3):getItemById(TEMPLO_CORES[01][Sequencia][03]) | |
| 504 | + | local Position_4 = Position(TEMPLO_CORES[00][04].POS[01], TEMPLO_CORES[00][04].POS[02], TEMPLO_CORES[00][04].POS[03]) | |
| 505 | + | local Lamp_4 = Tile(Position_4):getItemById(TEMPLO_CORES[01][Sequencia][04]) | |
| 506 | + | local Position_5 = Position(TEMPLO_CORES[00][05].POS[01], TEMPLO_CORES[00][05].POS[02], TEMPLO_CORES[00][05].POS[03]) | |
| 507 | + | local Lamp_5 = Tile(Position_5):getItemById(TEMPLO_CORES[01][Sequencia][05]) | |
| 508 | + | ||
| 509 | + | if Lamp_1 and Lamp_2 and Lamp_3 and Lamp_4 and Lamp_5 then | |
| 510 | + | player:setStorageValue(QUEST_UNLOCK[item.uid], 04) | |
| 511 | + | ||
| 512 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "[ 04 / 05 ]") | |
| 513 | + | player:getPosition():sendMagicEffect(13) | |
| 514 | + | onResetLever() | |
| 515 | + | return true | |
| 516 | + | else | |
| 517 | + | player:setStorageValue(QUEST_UNLOCK[item.uid], nil) | |
| 518 | + | ||
| 519 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "[ ERROR ]\nReinicio de arboles!") | |
| 520 | + | player:getPosition():sendMagicEffect(03) | |
| 521 | + | onResetLever() | |
| 522 | + | return true | |
| 523 | + | end | |
| 524 | + | else | |
| 525 | + | player:setStorageValue(QUEST_UNLOCK[item.uid], nil) | |
| 526 | + | ||
| 527 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "[ ERROR ]\nReinicio de arboles!") | |
| 528 | + | player:getPosition():sendMagicEffect(03) | |
| 529 | + | onResetLever() | |
| 530 | + | return true | |
| 531 | + | end | |
| 532 | + | end | |
| 533 | + | ||
| 534 | + | elseif item.uid == 10182 then | |
| 535 | + | if player:getStorageValue(_QUESTLOG[122].UID_01) == 02 then | |
| 536 | + | if player:getStorageValue(QUEST_UNLOCK[item.uid]) == 04 then | |
| 537 | + | local Sequencia = 08 | |
| 538 | + | local Position_1 = Position(TEMPLO_CORES[00][01].POS[01], TEMPLO_CORES[00][01].POS[02], TEMPLO_CORES[00][01].POS[03]) | |
| 539 | + | local Lamp_1 = Tile(Position_1):getItemById(TEMPLO_CORES[01][Sequencia][01]) | |
| 540 | + | local Position_2 = Position(TEMPLO_CORES[00][02].POS[01], TEMPLO_CORES[00][02].POS[02], TEMPLO_CORES[00][02].POS[03]) | |
| 541 | + | local Lamp_2 = Tile(Position_2):getItemById(TEMPLO_CORES[01][Sequencia][02]) | |
| 542 | + | local Position_3 = Position(TEMPLO_CORES[00][03].POS[01], TEMPLO_CORES[00][03].POS[02], TEMPLO_CORES[00][03].POS[03]) | |
| 543 | + | local Lamp_3 = Tile(Position_3):getItemById(TEMPLO_CORES[01][Sequencia][03]) | |
| 544 | + | local Position_4 = Position(TEMPLO_CORES[00][04].POS[01], TEMPLO_CORES[00][04].POS[02], TEMPLO_CORES[00][04].POS[03]) | |
| 545 | + | local Lamp_4 = Tile(Position_4):getItemById(TEMPLO_CORES[01][Sequencia][04]) | |
| 546 | + | local Position_5 = Position(TEMPLO_CORES[00][05].POS[01], TEMPLO_CORES[00][05].POS[02], TEMPLO_CORES[00][05].POS[03]) | |
| 547 | + | local Lamp_5 = Tile(Position_5):getItemById(TEMPLO_CORES[01][Sequencia][05]) | |
| 548 | + | ||
| 549 | + | if Lamp_1 and Lamp_2 and Lamp_3 and Lamp_4 and Lamp_5 then | |
| 550 | + | player:setStorageValue(QUEST_UNLOCK[item.uid], nil) | |
| 551 | + | player:teleportTo({x=3693, y=1713, z=03}) | |
| 552 | + | player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) | |
| 553 | + | ||
| 554 | + | local from = {x=3691, y=1708, z=05} | |
| 555 | + | local to = {x=3696, y=1717, z=05} | |
| 556 | + | for A = from.x, to.x do | |
| 557 | + | for B = from.y, to.y do | |
| 558 | + | for C = from.z, to.z do | |
| 559 | + | local tile = Tile(A, B, C) | |
| 560 | + | if tile ~= nil then | |
| 561 | + | local creature = tile:getTopCreature() | |
| 562 | + | if creature and creature:isPlayer() then | |
| 563 | + | creature:teleportTo({x=3693, y=1713, z=03}) | |
| 564 | + | creature:getPosition():sendMagicEffect(CONST_ME_TELEPORT) | |
| 565 | + | end | |
| 566 | + | end | |
| 567 | + | end | |
| 568 | + | end | |
| 569 | + | end | |
| 570 | + | ||
| 571 | + | doBackpack(player, 12) | |
| 572 | + | player:sendCancelMessage("@RemoveMarkMap") | |
| 573 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "[ 05 / 05 ]") | |
| 574 | + | onResetLever() | |
| 575 | + | return true | |
| 576 | + | else | |
| 577 | + | player:setStorageValue(QUEST_UNLOCK[item.uid], nil) | |
| 578 | + | ||
| 579 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "[ ERROR ]\nReinicio de arboles!") | |
| 580 | + | player:getPosition():sendMagicEffect(03) | |
| 581 | + | onResetLever() | |
| 582 | + | return true | |
| 583 | + | end | |
| 584 | + | else | |
| 585 | + | player:setStorageValue(QUEST_UNLOCK[item.uid], nil) | |
| 586 | + | ||
| 587 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "[ ERROR ]\nReinicio de arboles!") | |
| 588 | + | player:getPosition():sendMagicEffect(03) | |
| 589 | + | onResetLever() | |
| 590 | + | return true | |
| 591 | + | end | |
| 592 | + | end | |
| 593 | + | ||
| 594 | + | elseif item.uid == 10183 then | |
| 595 | + | if player:getStorageValue(QUEST_UNLOCK[item.uid]) == 01 then | |
| 596 | + | player:setStorageValue(QUEST_UNLOCK[item.uid], 02) | |
| 597 | + | ||
| 598 | + | player:getPosition():sendMagicEffect(13) | |
| 599 | + | return true | |
| 600 | + | end | |
| 601 | + | ||
| 602 | + | elseif item.uid == 10184 then | |
| 603 | + | if player:getStorageValue(QUEST_UNLOCK[item.uid]) >= 02 then | |
| 604 | + | local ProcurarID_1 = 3032 | |
| 605 | + | local ProcurarID_2 = 3022 | |
| 606 | + | local ProcurarID_3 = 3213 | |
| 607 | + | local QntPlayer = 01 | |
| 608 | + | local POS_A = Tile(3556, 1895, 08) | |
| 609 | + | local crea_a = POS_A:getTopCreature() | |
| 610 | + | local POS_B = Tile(3556, 1896, 08) | |
| 611 | + | local crea_b = POS_B:getTopCreature() | |
| 612 | + | local QNT_PLA_1 = 0 local POS_PLA_1 = 0 local EXT_PLA_1 = 0 | |
| 613 | + | local QNT_PLA_2 = 0 local POS_PLA_2 = 0 local EXT_PLA_2 = 0 | |
| 614 | + | local QNT_PLA_3 = 0 local POS_PLA_3 = 0 local EXT_PLA_3 = 0 | |
| 615 | + | ||
| 616 | + | if crea_a and crea_a:isPlayer() then | |
| 617 | + | if crea_a:getStorageValue(QUEST_UNLOCK[item.uid]) >= 02 then | |
| 618 | + | QntPlayer = QntPlayer + 01 | |
| 619 | + | if crea_b and crea_b:isPlayer() then | |
| 620 | + | if crea_b:getStorageValue(QUEST_UNLOCK[item.uid]) >= 02 then | |
| 621 | + | QntPlayer = QntPlayer + 01 | |
| 622 | + | end | |
| 623 | + | end | |
| 624 | + | end | |
| 625 | + | end | |
| 626 | + | ||
| 627 | + | if QntPlayer == 03 then | |
| 628 | + | doBackpack(player, 03, 03, 01, 01, ProcurarID_1) -- Procurar | |
| 629 | + | QNT_PLA_1 = doBackpack(player, 04) | |
| 630 | + | POS_PLA_1 = doBackpack(player, 05) | |
| 631 | + | EXT_PLA_1 = doBackpack(player, 06) | |
| 632 | + | if QNT_PLA_1 > 00 then | |
| 633 | + | if crea_a and crea_a:isPlayer() then | |
| 634 | + | doBackpack(crea_a, 03, 03, 01, 01, ProcurarID_2) -- Procurar | |
| 635 | + | QNT_PLA_2 = doBackpack(crea_a, 04) | |
| 636 | + | POS_PLA_2 = doBackpack(crea_a, 05) | |
| 637 | + | EXT_PLA_2 = doBackpack(crea_a, 06) | |
| 638 | + | if QNT_PLA_2 > 00 then | |
| 639 | + | if crea_b and crea_b:isPlayer() then | |
| 640 | + | doBackpack(crea_b, 03, 03, 01, 01, ProcurarID_3) -- Procurar | |
| 641 | + | QNT_PLA_3 = doBackpack(crea_b, 04) | |
| 642 | + | POS_PLA_3 = doBackpack(crea_b, 05) | |
| 643 | + | EXT_PLA_3 = doBackpack(crea_b, 06) | |
| 644 | + | if QNT_PLA_3 > 00 then | |
| 645 | + | if QNT_PLA_1 > 01 then | |
| 646 | + | player:setStorageValue(_BACKPACK[03][EXT_PLA_1][POS_PLA_1].UID_04, (QNT_PLA_1 - 01)) | |
| 647 | + | else | |
| 648 | + | doBackpack(player, 02, 03, EXT_PLA_1, POS_PLA_1) | |
| 649 | + | end | |
| 650 | + | if player:getStorageValue(QUEST_UNLOCK[item.uid]) < 100 then | |
| 651 | + | player:setStorageValue(QUEST_UNLOCK[item.uid], 03) | |
| 652 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Su diario de Missiones fue actualizado.") | |
| 653 | + | end | |
| 654 | + | player:sendCancelMessage("@ReloadBackpack 03 01") | |
| 655 | + | player:teleportTo({x=3543, y=1899, z=08}) | |
| 656 | + | player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) | |
| 657 | + | ||
| 658 | + | if QNT_PLA_2 > 01 then | |
| 659 | + | crea_a:setStorageValue(_BACKPACK[03][EXT_PLA_2][POS_PLA_2].UID_04, (QNT_PLA_2 - 01)) | |
| 660 | + | else | |
| 661 | + | doBackpack(crea_a, 02, 03, EXT_PLA_2, POS_PLA_2) | |
| 662 | + | end | |
| 663 | + | if crea_a:getStorageValue(QUEST_UNLOCK[item.uid]) < 100 then | |
| 664 | + | crea_a:setStorageValue(QUEST_UNLOCK[item.uid], 03) | |
| 665 | + | crea_a:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Su diario de Missiones fue actualizado.") | |
| 666 | + | end | |
| 667 | + | crea_a:sendCancelMessage("@ReloadBackpack 03 01") | |
| 668 | + | crea_a:teleportTo({x=3543, y=1899, z=08}) | |
| 669 | + | crea_a:getPosition():sendMagicEffect(CONST_ME_TELEPORT) | |
| 670 | + | ||
| 671 | + | if QNT_PLA_3 > 01 then | |
| 672 | + | crea_b:setStorageValue(_BACKPACK[03][EXT_PLA_3][POS_PLA_3].UID_04, (QNT_PLA_3 - 01)) | |
| 673 | + | else | |
| 674 | + | doBackpack(crea_b, 02, 03, EXT_PLA_3, POS_PLA_3) | |
| 675 | + | end | |
| 676 | + | if crea_b:getStorageValue(QUEST_UNLOCK[item.uid]) < 100 then | |
| 677 | + | crea_b:setStorageValue(QUEST_UNLOCK[item.uid], 03) | |
| 678 | + | crea_b:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Su diario de Missiones fue actualizado.") | |
| 679 | + | end | |
| 680 | + | crea_b:sendCancelMessage("@ReloadBackpack 03 01") | |
| 681 | + | crea_b:teleportTo({x=3543, y=1899, z=08}) | |
| 682 | + | crea_b:getPosition():sendMagicEffect(CONST_ME_TELEPORT) | |
| 683 | + | ||
| 684 | + | return true | |
| 685 | + | end | |
| 686 | + | end | |
| 687 | + | end | |
| 688 | + | end | |
| 689 | + | end | |
| 690 | + | end | |
| 691 | + | ||
| 692 | + | player:teleportTo({x=3554, y=1901, z=08}) | |
| 693 | + | player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) | |
| 694 | + | if crea_a and crea_a:isPlayer() then | |
| 695 | + | crea_a:teleportTo({x=3554, y=1901, z=08}) | |
| 696 | + | crea_a:getPosition():sendMagicEffect(CONST_ME_TELEPORT) | |
| 697 | + | end | |
| 698 | + | if crea_b and crea_a:isPlayer() then | |
| 699 | + | crea_b:teleportTo({x=3554, y=1901, z=08}) | |
| 700 | + | crea_b:getPosition():sendMagicEffect(CONST_ME_TELEPORT) | |
| 701 | + | end | |
| 702 | + | return true | |
| 703 | + | else | |
| 704 | + | player:teleportTo({x=3554, y=1901, z=08}) | |
| 705 | + | player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) | |
| 706 | + | if crea_a and crea_a:isPlayer() then | |
| 707 | + | crea_a:teleportTo({x=3554, y=1901, z=08}) | |
| 708 | + | crea_a:getPosition():sendMagicEffect(CONST_ME_TELEPORT) | |
| 709 | + | end | |
| 710 | + | if crea_b and crea_a:isPlayer() then | |
| 711 | + | crea_b:teleportTo({x=3554, y=1901, z=08}) | |
| 712 | + | crea_b:getPosition():sendMagicEffect(CONST_ME_TELEPORT) | |
| 713 | + | end | |
| 714 | + | end | |
| 715 | + | ||
| 716 | + | if item.itemid == 1945 then | |
| 717 | + | item:transform(item.itemid + 1) | |
| 718 | + | else | |
| 719 | + | item:transform(item.itemid - 1) | |
| 720 | + | end | |
| 721 | + | ||
| 722 | + | elseif item.uid == 10185 then | |
| 723 | + | if player:getStorageValue(QUEST_UNLOCK[item.uid]) == 03 then | |
| 724 | + | local ProcurarID_1 = 3243 | |
| 725 | + | local ProcurarID_2 = 3031 | |
| 726 | + | local QNT_PLA_1 = 0 local POS_PLA_1 = 0 local EXT_PLA_1 = 0 | |
| 727 | + | local QNT_PLA_2 = 0 local POS_PLA_2 = 0 local EXT_PLA_2 = 0 | |
| 728 | + | ||
| 729 | + | doBackpack(player, 03, 03, 01, 01, ProcurarID_1) -- Procurar | |
| 730 | + | QNT_PLA_1 = doBackpack(player, 04) | |
| 731 | + | POS_PLA_1 = doBackpack(player, 05) | |
| 732 | + | EXT_PLA_1 = doBackpack(player, 06) | |
| 733 | + | if QNT_PLA_1 > 00 then | |
| 734 | + | doBackpack(player, 03, 03, 01, 01, ProcurarID_2) -- Procurar | |
| 735 | + | QNT_PLA_2 = doBackpack(player, 04) | |
| 736 | + | POS_PLA_2 = doBackpack(player, 05) | |
| 737 | + | EXT_PLA_2 = doBackpack(player, 06) | |
| 738 | + | if QNT_PLA_2 > 00 then | |
| 739 | + | if QNT_PLA_1 > 01 then | |
| 740 | + | player:setStorageValue(_BACKPACK[03][EXT_PLA_1][POS_PLA_1].UID_04, (QNT_PLA_1 - 01)) | |
| 741 | + | else | |
| 742 | + | doBackpack(player, 02, 03, EXT_PLA_1, POS_PLA_1) | |
| 743 | + | end | |
| 744 | + | if QNT_PLA_2 > 01 then | |
| 745 | + | player:setStorageValue(_BACKPACK[03][EXT_PLA_2][POS_PLA_2].UID_04, (QNT_PLA_2 - 01)) | |
| 746 | + | else | |
| 747 | + | doBackpack(player, 02, 03, EXT_PLA_2, POS_PLA_2) | |
| 748 | + | end | |
| 749 | + | ||
| 750 | + | player:sendCancelMessage("@ReloadBackpack 03 01") | |
| 751 | + | if player:getStorageValue(QUEST_UNLOCK[item.uid]) < 100 then | |
| 752 | + | player:setStorageValue(QUEST_UNLOCK[item.uid], 04) | |
| 753 | + | ||
| 754 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Su diario de Missiones fue actualizado.") | |
| 755 | + | player:getPosition():sendMagicEffect(13) | |
| 756 | + | return true | |
| 757 | + | end | |
| 758 | + | else | |
| 759 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Se requiere oferta.") | |
| 760 | + | player:getPosition():sendMagicEffect(03) | |
| 761 | + | return true | |
| 762 | + | end | |
| 763 | + | else | |
| 764 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Se requiere oferta.") | |
| 765 | + | player:getPosition():sendMagicEffect(03) | |
| 766 | + | return true | |
| 767 | + | end | |
| 768 | + | end | |
| 769 | + | ||
| 770 | + | if item.itemid == 1945 then | |
| 771 | + | item:transform(item.itemid + 1) | |
| 772 | + | else | |
| 773 | + | item:transform(item.itemid - 1) | |
| 774 | + | end | |
| 775 | + | end | |
| 776 | + | ||
| 777 | + | return false | |
| 778 | + | end |
| @@ -0,0 +1,69 @@ | |||
| 1 | + | function onUse(player, item, fromPosition, target, toPosition, isHotkey) | |
| 2 | + | if item.itemid == 1945 then | |
| 3 | + | local Position_1 = Position(3815, 969, 6) | |
| 4 | + | local Lamp_1 = Tile(Position_1):getItemById(3945) | |
| 5 | + | local Position_2 = Position(3824, 968, 6) | |
| 6 | + | local Lamp_2 = Tile(Position_2):getItemById(3945) | |
| 7 | + | local Position_3 = Position(3826, 973, 6) | |
| 8 | + | local Lamp_3 = Tile(Position_3):getItemById(3945) | |
| 9 | + | local Position_4 = Position(3822, 964, 6) | |
| 10 | + | local Lamp_4 = Tile(Position_4):getItemById(3945) | |
| 11 | + | local Position_5 = Position(3828, 961, 6) | |
| 12 | + | local Lamp_5 = Tile(Position_5):getItemById(3945) | |
| 13 | + | local Position_6 = Position(3818, 960, 6) | |
| 14 | + | local Lamp_6 = Tile(Position_6):getItemById(3945) | |
| 15 | + | ||
| 16 | + | local Position_7 = Position(3824, 978, 6) | |
| 17 | + | local Lamp_7 = Tile(Position_7):getItemById(3946) | |
| 18 | + | local Position_8 = Position(3825, 976, 6) | |
| 19 | + | local Lamp_8 = Tile(Position_8):getItemById(3946) | |
| 20 | + | local Position_9 = Position(3828, 970, 6) | |
| 21 | + | local Lamp_9 = Tile(Position_9):getItemById(3946) | |
| 22 | + | local Position_10 = Position(3825, 965, 6) | |
| 23 | + | local Lamp_10 = Tile(Position_10):getItemById(3946) | |
| 24 | + | local Position_11 = Position(3827, 963, 6) | |
| 25 | + | local Lamp_11 = Tile(Position_11):getItemById(3946) | |
| 26 | + | local Position_12 = Position(3820, 967, 6) | |
| 27 | + | local Lamp_12 = Tile(Position_12):getItemById(3946) | |
| 28 | + | local Position_13 = Position(3821, 961, 6) | |
| 29 | + | local Lamp_13 = Tile(Position_13):getItemById(3946) | |
| 30 | + | local Position_14 = Position(3821, 958, 6) | |
| 31 | + | local Lamp_14 = Tile(Position_14):getItemById(3946) | |
| 32 | + | local Position_15 = Position(3818, 965, 6) | |
| 33 | + | local Lamp_15 = Tile(Position_14):getItemById(3946) | |
| 34 | + | ||
| 35 | + | if Lamp_1 and Lamp_2 and Lamp_3 and Lamp_4 and Lamp_5 and Lamp_6 then | |
| 36 | + | if Lamp_7 and Lamp_8 and Lamp_9 and Lamp_10 and Lamp_11 and Lamp_12 then | |
| 37 | + | player:teleportTo({x=3800, y=1025, z=07}) | |
| 38 | + | player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) | |
| 39 | + | ||
| 40 | + | Lamp_1:transform(3946) | |
| 41 | + | Lamp_2:transform(3946) | |
| 42 | + | Lamp_3:transform(3946) | |
| 43 | + | Lamp_4:transform(3946) | |
| 44 | + | Lamp_5:transform(3946) | |
| 45 | + | Lamp_6:transform(3946) | |
| 46 | + | ||
| 47 | + | Lamp_7:transform(3946) | |
| 48 | + | Lamp_8:transform(3946) | |
| 49 | + | Lamp_9:transform(3946) | |
| 50 | + | Lamp_10:transform(3946) | |
| 51 | + | Lamp_11:transform(3946) | |
| 52 | + | Lamp_12:transform(3946) | |
| 53 | + | Lamp_13:transform(3946) | |
| 54 | + | Lamp_14:transform(3946) | |
| 55 | + | Lamp_15:transform(3946) | |
| 56 | + | else | |
| 57 | + | player:getPosition():sendMagicEffect(03) | |
| 58 | + | end | |
| 59 | + | else | |
| 60 | + | player:getPosition():sendMagicEffect(03) | |
| 61 | + | end | |
| 62 | + | end | |
| 63 | + | ||
| 64 | + | if item.itemid == 1945 then | |
| 65 | + | item:transform(item.itemid + 1) | |
| 66 | + | else | |
| 67 | + | item:transform(item.itemid - 1) | |
| 68 | + | end | |
| 69 | + | end |
| @@ -0,0 +1,20 @@ | |||
| 1 | + | function onUse(player, item, fromPosition, target, toPosition, isHotkey) | |
| 2 | + | if _DEBUG_MODE then | |
| 3 | + | print("[ACTION - DESAFIOS] " ..player:getName().. " - Abrindo tabla de Desafios") | |
| 4 | + | end | |
| 5 | + | local A = _DAILYS[01].ID | |
| 6 | + | local B = _DAILYS[02].ID | |
| 7 | + | local C = _DAILYS[03].ID | |
| 8 | + | local D = _DAILYS[04].ID | |
| 9 | + | local E = _DAILYS[05].ID | |
| 10 | + | local F = _DAILYS[06].ID | |
| 11 | + | local G = _DAILYS[07].ID | |
| 12 | + | local H = _DAILYS[08].ID | |
| 13 | + | local I = _DAILYS[09].ID | |
| 14 | + | local J = _DAILYS[10].ID | |
| 15 | + | local K = player:getStorageValue(_DESAFIOS[00].DESAFIO_ID) | |
| 16 | + | local L = player:getStorageValue(_DESAFIOS[00].DESAFIO_COUNT) | |
| 17 | + | local M = player:getStorageValue(_SYSTEM.DESAFIOS_COIN) or 0 | |
| 18 | + | ||
| 19 | + | player:sendCancelMessage("@showDesafios " ..A.. " " ..B.. " " ..C.. " " ..D.. " " ..E.. " " ..F.. " " ..G.. " " ..H.. " " ..I.. " " ..J.. " " ..K.. " " ..L.. " " ..M) | |
| 20 | + | end |
| @@ -0,0 +1,218 @@ | |||
| 1 | + | function onUse(player, item, fromPosition, target, toPosition, isHotkey) | |
| 2 | + | ||
| 3 | + | if item.actionid == 3100 then -- COLISEU [COMBATE 01 VS 01] | |
| 4 | + | local from = _GLOBAL_RANDOM.COLISEUM.ORDER[00][01].ARENA_X_POS | |
| 5 | + | local to = _GLOBAL_RANDOM.COLISEUM.ORDER[00][01].ARENA_Y_POS | |
| 6 | + | local check = 00 | |
| 7 | + | for A = from.x, to.x do | |
| 8 | + | for B = from.y, to.y do | |
| 9 | + | for C = from.z, to.z do | |
| 10 | + | local tile = Tile(A, B, C) | |
| 11 | + | local creature = tile:getTopCreature() | |
| 12 | + | if creature and creature:isMonster() then | |
| 13 | + | local title = "Desistir" | |
| 14 | + | local message = "Seu advers�rio ainda est� na arena. Deseja desistir?" | |
| 15 | + | local quitColiseu = ModalWindow(1003, title, message) | |
| 16 | + | quitColiseu:addButton(100, "Yes") | |
| 17 | + | quitColiseu:addButton(101, "No") | |
| 18 | + | quitColiseu:setDefaultEnterButton(100) | |
| 19 | + | quitColiseu:setDefaultEscapeButton(101) | |
| 20 | + | quitColiseu:sendToPlayer(player) | |
| 21 | + | check = 01 | |
| 22 | + | return false | |
| 23 | + | end | |
| 24 | + | end | |
| 25 | + | end | |
| 26 | + | end | |
| 27 | + | if check == 00 then | |
| 28 | + | player:teleportTo({x=3896, y=1769, z=06}) | |
| 29 | + | player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) | |
| 30 | + | player:sendCancelMessage("@NoTeleport 00") | |
| 31 | + | local myColiseu = player:getStorageValue(_SYSTEM.COLISEU[02]) | |
| 32 | + | if myColiseu < 01 then | |
| 33 | + | myColiseu = 01 | |
| 34 | + | end | |
| 35 | + | if player:getStorageValue(_SYSTEM.COLISEU[07]) == myColiseu then | |
| 36 | + | player:setStorageValue(_SYSTEM.COLISEU[02], (myColiseu + 01)) | |
| 37 | + | end | |
| 38 | + | ||
| 39 | + | local HARD = player:getStorageValue(_SYSTEM.COLISEU[06]) | |
| 40 | + | local INDEX = player:getStorageValue(_SYSTEM.COLISEU[07]) | |
| 41 | + | local EXP_REWARD = _GLOBAL_RANDOM.COLISEUM.ORDER[00][01].REWARD * HARD * INDEX | |
| 42 | + | ||
| 43 | + | -- DESAFIO | |
| 44 | + | if player:getStorageValue(_DESAFIOS[00].DESAFIO_ID) > 00 then | |
| 45 | + | onPlayerDesafios(player, 76, 01) | |
| 46 | + | end | |
| 47 | + | player:setStorageValue(_SYSTEM.COLISEU[05], nil) | |
| 48 | + | player:setStorageValue(_SYSTEM.COLISEU[06], nil) | |
| 49 | + | player:setStorageValue(_SYSTEM.COLISEU[07], nil) | |
| 50 | + | player:setStorageValue(_SYSTEM.COLISEU[08], nil) | |
| 51 | + | player:addExperience(EXP_REWARD, true, true) | |
| 52 | + | if player:getStorageValue(_SYSTEM.COLISEU[09]) < 01 then | |
| 53 | + | player:setStorageValue(_SYSTEM.COLISEU[09], (player:getStorageValue(_SYSTEM.COLISEU[09]) + INDEX) + 01) | |
| 54 | + | else | |
| 55 | + | player:setStorageValue(_SYSTEM.COLISEU[09], (player:getStorageValue(_SYSTEM.COLISEU[09]) + INDEX)) | |
| 56 | + | end | |
| 57 | + | player:sendTextMessage(MESSAGE_INFO_DESCR, "Voc� concluiu o desafio do Coliseu.\nEXP: [ " ..EXP_REWARD.. " ]\nCHAVES: [ " ..INDEX.. " ]") | |
| 58 | + | ||
| 59 | + | if player:getStorageValue(_QUESTLOG[201].UID_01) == 01 then | |
| 60 | + | player:setStorageValue(_QUESTLOG[201].UID_01, 101) | |
| 61 | + | addEvent(function() | |
| 62 | + | player:addExperience(70000, true, true) | |
| 63 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Seu Quest Log foi atualizado.") | |
| 64 | + | player:sendCancelMessage("@TutorShow 47") | |
| 65 | + | end, 5000) | |
| 66 | + | end | |
| 67 | + | end | |
| 68 | + | end | |
| 69 | + | if item.actionid == 3101 then -- COLISEU [RESISTENCIA 05 WAVES] | |
| 70 | + | if player:getStorageValue(_SYSTEM.COLISEU[08]) < 06 then | |
| 71 | + | local title = "Desistir" | |
| 72 | + | local message = "Ainda possui Waves para finalizar. Deseja desistir?" | |
| 73 | + | local quitColiseu = ModalWindow(1003, title, message) | |
| 74 | + | quitColiseu:addButton(100, "Yes") | |
| 75 | + | quitColiseu:addButton(101, "No") | |
| 76 | + | quitColiseu:setDefaultEnterButton(100) | |
| 77 | + | quitColiseu:setDefaultEscapeButton(101) | |
| 78 | + | quitColiseu:sendToPlayer(player) | |
| 79 | + | else | |
| 80 | + | player:teleportTo({x=3896, y=1769, z=06}) | |
| 81 | + | player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) | |
| 82 | + | player:sendCancelMessage("@NoTeleport 00") | |
| 83 | + | local myColiseu = player:getStorageValue(_SYSTEM.COLISEU[03]) | |
| 84 | + | if myColiseu < 01 then | |
| 85 | + | myColiseu = 01 | |
| 86 | + | end | |
| 87 | + | if player:getStorageValue(_SYSTEM.COLISEU[07]) == myColiseu then | |
| 88 | + | player:setStorageValue(_SYSTEM.COLISEU[03], (myColiseu + 01)) | |
| 89 | + | end | |
| 90 | + | ||
| 91 | + | local HARD = player:getStorageValue(_SYSTEM.COLISEU[01]) | |
| 92 | + | if HARD < 01 then | |
| 93 | + | HARD = 01 | |
| 94 | + | end | |
| 95 | + | local INDEX = player:getStorageValue(_SYSTEM.COLISEU[07]) | |
| 96 | + | local GOLD_REWARD = _GLOBAL_RANDOM.COLISEUM.ORDER[00][02].REWARD * HARD * INDEX | |
| 97 | + | if player:getStorageValue(_SYSTEM.COLISEU[09]) < 01 then | |
| 98 | + | player:setStorageValue(_SYSTEM.COLISEU[09], (player:getStorageValue(_SYSTEM.COLISEU[09]) + INDEX) + 01) | |
| 99 | + | else | |
| 100 | + | player:setStorageValue(_SYSTEM.COLISEU[09], (player:getStorageValue(_SYSTEM.COLISEU[09]) + INDEX)) | |
| 101 | + | end | |
| 102 | + | ||
| 103 | + | -- DESAFIO | |
| 104 | + | if player:getStorageValue(_DESAFIOS[00].DESAFIO_ID) > 00 then | |
| 105 | + | onPlayerDesafios(player, 77, 01) | |
| 106 | + | end | |
| 107 | + | PlayerGoldCoins(player, 02, GOLD_REWARD) | |
| 108 | + | player:sendTextMessage(MESSAGE_INFO_DESCR, "Voc� concluiu o desafio do Coliseu.\nGold Coin: [ " ..GOLD_REWARD.. " ]\nCHAVES: [ " ..INDEX.. " ]") | |
| 109 | + | ||
| 110 | + | doBackpack(player, 11) | |
| 111 | + | player:setStorageValue(_SYSTEM.COLISEU[05], nil) | |
| 112 | + | player:setStorageValue(_SYSTEM.COLISEU[06], nil) | |
| 113 | + | player:setStorageValue(_SYSTEM.COLISEU[07], nil) | |
| 114 | + | player:setStorageValue(_SYSTEM.COLISEU[08], nil) | |
| 115 | + | end | |
| 116 | + | end | |
| 117 | + | if item.actionid == 3102 then -- COLISEU [SOBREVIVENCIA 04 WAVES] | |
| 118 | + | if player:getStorageValue(_SYSTEM.COLISEU[08]) == 01 then | |
| 119 | + | local title = "Desistir" | |
| 120 | + | local message = "Tem certeza que deseja desistir agora?" | |
| 121 | + | local quitColiseu = ModalWindow(1003, title, message) | |
| 122 | + | quitColiseu:addButton(100, "Yes") | |
| 123 | + | quitColiseu:addButton(101, "No") | |
| 124 | + | quitColiseu:setDefaultEnterButton(100) | |
| 125 | + | quitColiseu:setDefaultEscapeButton(101) | |
| 126 | + | quitColiseu:sendToPlayer(player) | |
| 127 | + | else | |
| 128 | + | local check = 00 | |
| 129 | + | local from = _GLOBAL_RANDOM.COLISEUM.ORDER[00][03].ARENA_X_POS | |
| 130 | + | local to = _GLOBAL_RANDOM.COLISEUM.ORDER[00][03].ARENA_Y_POS | |
| 131 | + | for A = from.x, to.x do | |
| 132 | + | for B = from.y, to.y do | |
| 133 | + | for C = from.z, to.z do | |
| 134 | + | local tile = Tile(A, B, C) | |
| 135 | + | local creature = tile:getTopCreature() | |
| 136 | + | if creature and creature:isMonster() then | |
| 137 | + | check = 01 | |
| 138 | + | break | |
| 139 | + | end | |
| 140 | + | end | |
| 141 | + | end | |
| 142 | + | end | |
| 143 | + | if check == 01 then | |
| 144 | + | local title = "Desistir" | |
| 145 | + | local message = "Elimine todos os monstros para finalizar. Tem certeza que deseja desistir agora?" | |
| 146 | + | local quitColiseu = ModalWindow(1003, title, message) | |
| 147 | + | quitColiseu:addButton(100, "Yes") | |
| 148 | + | quitColiseu:addButton(101, "No") | |
| 149 | + | quitColiseu:setDefaultEnterButton(100) | |
| 150 | + | quitColiseu:setDefaultEscapeButton(101) | |
| 151 | + | quitColiseu:sendToPlayer(player) | |
| 152 | + | else | |
| 153 | + | player:teleportTo({x=3896, y=1769, z=06}) | |
| 154 | + | player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) | |
| 155 | + | player:sendCancelMessage("@NoTeleport 00") | |
| 156 | + | local myColiseu = player:getStorageValue(_SYSTEM.COLISEU[04]) | |
| 157 | + | if myColiseu < 01 then | |
| 158 | + | myColiseu = 01 | |
| 159 | + | end | |
| 160 | + | if player:getStorageValue(_SYSTEM.COLISEU[07]) == myColiseu then | |
| 161 | + | player:setStorageValue(_SYSTEM.COLISEU[04], (myColiseu + 01)) | |
| 162 | + | end | |
| 163 | + | local HARD = player:getStorageValue(_SYSTEM.COLISEU[06]) | |
| 164 | + | local INDEX = player:getStorageValue(_SYSTEM.COLISEU[07]) | |
| 165 | + | local COLISEUM_LVL = player:getStorageValue(_SYSTEM.COLISEU[01]) | |
| 166 | + | if COLISEUM_LVL < 01 then COLISEUM_LVL = 01 end | |
| 167 | + | local REWARDS = _GLOBAL_RANDOM.COLISEUM.ORDER[HARD][03][INDEX].POINTS | |
| 168 | + | ||
| 169 | + | if COLISEUM_LVL == 02 then | |
| 170 | + | PlayerTokenCoins(player, 02, REWARDS, 01) | |
| 171 | + | elseif COLISEUM_LVL == 03 then | |
| 172 | + | PlayerTokenCoins(player, 03, REWARDS, 01) | |
| 173 | + | elseif COLISEUM_LVL == 04 then | |
| 174 | + | PlayerTokenCoins(player, 03, REWARDS, 01) | |
| 175 | + | else | |
| 176 | + | PlayerTokenCoins(player, 01, REWARDS, 01) | |
| 177 | + | end | |
| 178 | + | if player:getStorageValue(_SYSTEM.COLISEU[09]) < 01 then | |
| 179 | + | player:setStorageValue(_SYSTEM.COLISEU[09], (player:getStorageValue(_SYSTEM.COLISEU[09]) + (INDEX * COLISEUM_LVL)) + 01) | |
| 180 | + | else | |
| 181 | + | player:setStorageValue(_SYSTEM.COLISEU[09], (player:getStorageValue(_SYSTEM.COLISEU[09]) + (INDEX * COLISEUM_LVL))) | |
| 182 | + | end | |
| 183 | + | ||
| 184 | + | -- DESAFIO | |
| 185 | + | if player:getStorageValue(_DESAFIOS[00].DESAFIO_ID) > 00 then | |
| 186 | + | onPlayerDesafios(player, 78, 01) | |
| 187 | + | end | |
| 188 | + | player:sendTextMessage(MESSAGE_INFO_DESCR, "Voc� concluiu o desafio do Coliseu.\nTask Points: [ " ..REWARDS.. " ]\nCHAVES: [ " ..INDEX.. " ]") | |
| 189 | + | player:setStorageValue(_SYSTEM.COLISEU[05], nil) | |
| 190 | + | player:setStorageValue(_SYSTEM.COLISEU[06], nil) | |
| 191 | + | player:setStorageValue(_SYSTEM.COLISEU[07], nil) | |
| 192 | + | player:setStorageValue(_SYSTEM.COLISEU[08], nil) | |
| 193 | + | end | |
| 194 | + | end | |
| 195 | + | end | |
| 196 | + | if player:getStorageValue(_SYSTEM.COLISEU[01]) < 05 then | |
| 197 | + | if player:getStorageValue(_SYSTEM.COLISEU[02]) == 11 and player:getStorageValue(_SYSTEM.COLISEU[03]) == 11 and player:getStorageValue(_SYSTEM.COLISEU[04]) == 06 then | |
| 198 | + | if player:getStorageValue(_SYSTEM.COLISEU[01]) < 02 then | |
| 199 | + | player:setStorageValue(_SYSTEM.COLISEU[01], 02) | |
| 200 | + | else | |
| 201 | + | player:setStorageValue(_SYSTEM.COLISEU[01], ( player:getStorageValue(_SYSTEM.COLISEU[01]) + 01)) | |
| 202 | + | end | |
| 203 | + | ||
| 204 | + | player:setStorageValue(_SYSTEM.COLISEU[02], nil) | |
| 205 | + | player:setStorageValue(_SYSTEM.COLISEU[03], nil) | |
| 206 | + | player:setStorageValue(_SYSTEM.COLISEU[04], nil) | |
| 207 | + | addEvent(function() | |
| 208 | + | player:sendTextMessage(MESSAGE_INFO_DESCR, "[COLISEU]\nVoc� avan�ou de Rank de Dificuldade no Coliseu. Novos atributos de equipamentos est�o dispon�veis em MENU > ACTIVE > COLISEU.") | |
| 209 | + | end, 4000) | |
| 210 | + | end | |
| 211 | + | end | |
| 212 | + | ||
| 213 | + | local KEYS, HARD, QUEST = player:getStorageValue(_SYSTEM.COLISEU[09]), player:getStorageValue(_SYSTEM.COLISEU[01]), player:getStorageValue(_QUESTLOG[201].UID_01) | |
| 214 | + | if KEYS < 00 then KEYS = 00 end | |
| 215 | + | if HARD < 02 then HARD = 01 end | |
| 216 | + | player:sendCancelMessage("@ColiseuLoad " ..KEYS.. " " ..HARD.. " " ..QUEST.. " 01") | |
| 217 | + | player:setStorageValue(_SYSTEM.FIRST_DEAD_TUTOR, nil) | |
| 218 | + | end |
| @@ -0,0 +1,306 @@ | |||
| 1 | + | local STATUE_BONE_01 = 1452 | |
| 2 | + | local STATUE_BONE_02 = 1452 | |
| 3 | + | local STATUE_BONE_03 = 1452 | |
| 4 | + | local STATUE_BONE_04 = 1452 | |
| 5 | + | local STATUES_IDS = {1452, 1453, 1454, 1455} | |
| 6 | + | local FIRE_STATUE = { | |
| 7 | + | [10326] = { | |
| 8 | + | [01] = {x=3999, y=1168, z=14}; | |
| 9 | + | [02] = {x=3990, y=1170, z=14}; | |
| 10 | + | [03] = {x=3995, y=1173, z=14}; | |
| 11 | + | [04] = {x=4001, y=1176, z=14}; | |
| 12 | + | [05] = {x=3996, y=1179, z=14}; | |
| 13 | + | [06] = {x=3990, y=1181, z=14}; | |
| 14 | + | [07] = {x=3995, y=1184, z=14}; | |
| 15 | + | [08] = {x=4000, y=1185, z=14}; | |
| 16 | + | }; | |
| 17 | + | [10535] = { | |
| 18 | + | [01] = {x=4107, y=1168, z=14}; | |
| 19 | + | [02] = {x=4098, y=1170, z=14}; | |
| 20 | + | [03] = {x=4103, y=1173, z=14}; | |
| 21 | + | [04] = {x=4109, y=1176, z=14}; | |
| 22 | + | [05] = {x=4104, y=1179, z=14}; | |
| 23 | + | [06] = {x=4098, y=1181, z=14}; | |
| 24 | + | [07] = {x=4103, y=1184, z=14}; | |
| 25 | + | [08] = {x=4108, y=1185, z=14}; | |
| 26 | + | }; | |
| 27 | + | [10599] = { | |
| 28 | + | [01] = {x=4215, y=1168, z=14}; | |
| 29 | + | [02] = {x=4206, y=1170, z=14}; | |
| 30 | + | [03] = {x=4211, y=1173, z=14}; | |
| 31 | + | [04] = {x=4217, y=1176, z=14}; | |
| 32 | + | [05] = {x=4212, y=1179, z=14}; | |
| 33 | + | [06] = {x=4206, y=1181, z=14}; | |
| 34 | + | [07] = {x=4211, y=1184, z=14}; | |
| 35 | + | [08] = {x=4216, y=1185, z=14}; | |
| 36 | + | }; | |
| 37 | + | } | |
| 38 | + | local CLEAN_AREA = { | |
| 39 | + | [10321] = {POS_X = {x=3939, y=1190, z=14}, POS_Y = {x=3967, y=1205, z=14}, STO = {01, 02}, MSG = "Portais da Zona 02-A liberados."}; | |
| 40 | + | [10359] = {POS_X = {x=4048, y=1189, z=14}, POS_Y = {x=4075, y=1205, z=14}, STO = {01, 02}, MSG = "Portais da Zona 02-A liberados."}; | |
| 41 | + | [10360] = {POS_X = {x=4155, y=1189, z=14}, POS_Y = {x=4183, y=1205, z=14}, STO = {01, 02}, MSG = "Portais da Zona 02-A liberados."}; | |
| 42 | + | ||
| 43 | + | [10322] = {POS_X = {x=3985, y=1190, z=14}, POS_Y = {x=4024, y=1205, z=14}, STO = {09, 10}, MSG = "Est�tuas da Zona 02-B liberados."}; | |
| 44 | + | [10530] = {POS_X = {x=4092, y=1190, z=14}, POS_Y = {x=4132, y=1205, z=14}, STO = {09, 10}, MSG = "Est�tuas da Zona 02-B liberados."}; | |
| 45 | + | [10531] = {POS_X = {x=4201, y=1190, z=14}, POS_Y = {x=4240, y=1205, z=14}, STO = {09, 10}, MSG = "Est�tuas da Zona 02-B liberados."}; | |
| 46 | + | ||
| 47 | + | [10324] = {POS_X = {x=3955, y=1206, z=14}, POS_Y = {x=3983, y=1220, z=14}, STO = {11, 12}, MSG = "Puzzles da Zona 04-A liberados."}; | |
| 48 | + | [10534] = {POS_X = {x=4063, y=1206, z=14}, POS_Y = {x=4091, y=1220, z=14}, STO = {11, 12}, MSG = "Puzzles da Zona 04-A liberados."}; | |
| 49 | + | [10532] = {POS_X = {x=4171, y=1206, z=14}, POS_Y = {x=4199, y=1220, z=14}, STO = {11, 12}, MSG = "Puzzles da Zona 04-A liberados."}; | |
| 50 | + | ||
| 51 | + | [10327] = {POS_X = {x=3988, y=1166, z=14}, POS_Y = {x=4003, y=1189, z=14}, STO = {17, 18}, toPosReward = {x=3987, y=1214, z=14}}; | |
| 52 | + | [10507] = {POS_X = {x=4096, y=1166, z=14}, POS_Y = {x=4111, y=1189, z=14}, STO = {17, 18}, toPosReward = {x=3987, y=1214, z=14}}; | |
| 53 | + | [10508] = {POS_X = {x=4204, y=1166, z=14}, POS_Y = {x=4219, y=1189, z=14}, STO = {17, 18}, toPosReward = {x=3987, y=1214, z=14}}; | |
| 54 | + | } | |
| 55 | + | local SEQUENCIA_STATUES = { | |
| 56 | + | [10323] = { | |
| 57 | + | STONE_POS_1 = {x=3948, y=1175, z=14}; | |
| 58 | + | STONE_POS_2 = {x=3953, y=1175, z=14}; | |
| 59 | + | STONE_POS_3 = {x=3953, y=1183, z=14}; | |
| 60 | + | STONE_POS_4 = {x=3948, y=1183, z=14}; | |
| 61 | + | DRAG_POS = { | |
| 62 | + | [01] = {x=3978, y=1274, z=14}; | |
| 63 | + | [02] = {x=3972, y=1215, z=14}; | |
| 64 | + | [03] = {x=3965, y=1212, z=14}; | |
| 65 | + | [04] = {x=3960, y=1214, z=14}; | |
| 66 | + | [05] = {x=3964, y=1218, z=14}; | |
| 67 | + | }; | |
| 68 | + | }; | |
| 69 | + | [10598] = { | |
| 70 | + | STONE_POS_1 = {x=4056, y=1175, z=14}; | |
| 71 | + | STONE_POS_2 = {x=4061, y=1175, z=14}; | |
| 72 | + | STONE_POS_3 = {x=4056, y=1183, z=14}; | |
| 73 | + | STONE_POS_4 = {x=4061, y=1183, z=14}; | |
| 74 | + | DRAG_POS = { | |
| 75 | + | [01] = {x=4086, y=1274, z=14}; | |
| 76 | + | [02] = {x=4080, y=1215, z=14}; | |
| 77 | + | [03] = {x=4073, y=1212, z=14}; | |
| 78 | + | [04] = {x=4068, y=1214, z=14}; | |
| 79 | + | [05] = {x=4072, y=1218, z=14}; | |
| 80 | + | }; | |
| 81 | + | }; | |
| 82 | + | [10533] = { | |
| 83 | + | STONE_POS_1 = {x=4164, y=1175, z=14}; | |
| 84 | + | STONE_POS_2 = {x=4169, y=1175, z=14}; | |
| 85 | + | STONE_POS_3 = {x=4169, y=1183, z=14}; | |
| 86 | + | STONE_POS_4 = {x=4164, y=1183, z=14}; | |
| 87 | + | DRAG_POS = { | |
| 88 | + | [01] = {x=4194, y=1274, z=14}; | |
| 89 | + | [02] = {x=4188, y=1215, z=14}; | |
| 90 | + | [03] = {x=4181, y=1212, z=14}; | |
| 91 | + | [04] = {x=4176, y=1214, z=14}; | |
| 92 | + | [05] = {x=4180, y=1218, z=14}; | |
| 93 | + | }; | |
| 94 | + | }; | |
| 95 | + | } | |
| 96 | + | function onUse(player, item, fromPosition, target, toPosition, isHotkey) | |
| 97 | + | local STORAGE_BONEBROOK = _SYSTEM.DANGEROUS[03][01].STORAGE | |
| 98 | + | local party = player:getParty() | |
| 99 | + | if CLEAN_AREA[item.uid] then | |
| 100 | + | if player:getStorageValue(STORAGE_BONEBROOK) == CLEAN_AREA[item.uid].STO[01] then | |
| 101 | + | local from = CLEAN_AREA[item.uid].POS_X | |
| 102 | + | local to = CLEAN_AREA[item.uid].POS_Y | |
| 103 | + | local checkArea = 0 | |
| 104 | + | for A = from.x, to.x do | |
| 105 | + | for B = from.y, to.y do | |
| 106 | + | for C = from.z, to.z do | |
| 107 | + | local tile = Tile(A, B, C) | |
| 108 | + | local creature = tile:getTopCreature() | |
| 109 | + | if creature and creature:isMonster() then | |
| 110 | + | local master = creature:getMaster() | |
| 111 | + | if master and master:isPlayer() then | |
| 112 | + | else | |
| 113 | + | checkArea = 01 | |
| 114 | + | break | |
| 115 | + | end | |
| 116 | + | end | |
| 117 | + | end | |
| 118 | + | end | |
| 119 | + | end | |
| 120 | + | if checkArea == 0 then | |
| 121 | + | if not party then | |
| 122 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, CLEAN_AREA[item.uid].MSG) | |
| 123 | + | player:setStorageValue(STORAGE_BONEBROOK, CLEAN_AREA[item.uid].STO[02]) | |
| 124 | + | player:getPosition():sendMagicEffect(13) | |
| 125 | + | else | |
| 126 | + | local members = party:getMembers() | |
| 127 | + | members[#members + 1] = party:getLeader() | |
| 128 | + | for _, member in ipairs(members) do | |
| 129 | + | member:sendTextMessage(MESSAGE_EVENT_ADVANCE, CLEAN_AREA[item.uid].MSG) | |
| 130 | + | member:setStorageValue(STORAGE_BONEBROOK, CLEAN_AREA[item.uid].STO[02]) | |
| 131 | + | member:getPosition():sendMagicEffect(13) | |
| 132 | + | end | |
| 133 | + | end | |
| 134 | + | ||
| 135 | + | if item.uid == 10327 then | |
| 136 | + | if not party then | |
| 137 | + | player:setStorageValue(_SYSTEM.DANGEROUS[03][01].RECOMPENSA[01], _SYSTEM.DANGEROUS[03][01].RECOMPENSA[02]) | |
| 138 | + | player:teleportTo(CLEAN_AREA[item.uid].toPosReward) | |
| 139 | + | player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) | |
| 140 | + | else | |
| 141 | + | local members = party:getMembers() | |
| 142 | + | members[#members + 1] = party:getLeader() | |
| 143 | + | for _, member in ipairs(members) do | |
| 144 | + | member:setStorageValue(_SYSTEM.DANGEROUS[03][01].RECOMPENSA[01], _SYSTEM.DANGEROUS[03][01].RECOMPENSA[02]) | |
| 145 | + | member:teleportTo(CLEAN_AREA[item.uid].toPosReward) | |
| 146 | + | member:getPosition():sendMagicEffect(CONST_ME_TELEPORT) | |
| 147 | + | end | |
| 148 | + | end | |
| 149 | + | elseif item.uid == 10507 then | |
| 150 | + | if not party then | |
| 151 | + | player:setStorageValue(_SYSTEM.DANGEROUS[03][01].RECOMPENSA[01], _SYSTEM.DANGEROUS[03][01].RECOMPENSA[02]) | |
| 152 | + | player:teleportTo(CLEAN_AREA[item.uid].toPosReward) | |
| 153 | + | player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) | |
| 154 | + | else | |
| 155 | + | local members = party:getMembers() | |
| 156 | + | members[#members + 1] = party:getLeader() | |
| 157 | + | for _, member in ipairs(members) do | |
| 158 | + | member:setStorageValue(_SYSTEM.DANGEROUS[03][01].RECOMPENSA[01], _SYSTEM.DANGEROUS[03][01].RECOMPENSA[02]) | |
| 159 | + | member:teleportTo(CLEAN_AREA[item.uid].toPosReward) | |
| 160 | + | member:getPosition():sendMagicEffect(CONST_ME_TELEPORT) | |
| 161 | + | end | |
| 162 | + | end | |
| 163 | + | elseif item.uid == 10508 then | |
| 164 | + | if not party then | |
| 165 | + | player:setStorageValue(_SYSTEM.DANGEROUS[03][01].RECOMPENSA[01], _SYSTEM.DANGEROUS[03][01].RECOMPENSA[02]) | |
| 166 | + | player:teleportTo(CLEAN_AREA[item.uid].toPosReward) | |
| 167 | + | player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) | |
| 168 | + | else | |
| 169 | + | local members = party:getMembers() | |
| 170 | + | members[#members + 1] = party:getLeader() | |
| 171 | + | for _, member in ipairs(members) do | |
| 172 | + | member:setStorageValue(_SYSTEM.DANGEROUS[03][01].RECOMPENSA[01], _SYSTEM.DANGEROUS[03][01].RECOMPENSA[02]) | |
| 173 | + | member:teleportTo(CLEAN_AREA[item.uid].toPosReward) | |
| 174 | + | member:getPosition():sendMagicEffect(CONST_ME_TELEPORT) | |
| 175 | + | end | |
| 176 | + | end | |
| 177 | + | return false | |
| 178 | + | end | |
| 179 | + | ||
| 180 | + | STATUE_BONE_01 = STATUES_IDS[math.random(01, #STATUES_IDS)] | |
| 181 | + | STATUE_BONE_02 = STATUES_IDS[math.random(01, #STATUES_IDS)] | |
| 182 | + | STATUE_BONE_03 = STATUES_IDS[math.random(01, #STATUES_IDS)] | |
| 183 | + | STATUE_BONE_04 = STATUES_IDS[math.random(01, #STATUES_IDS)] | |
| 184 | + | else | |
| 185 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Limpe toda a �rea para poder prosseguir.") | |
| 186 | + | player:getPosition():sendMagicEffect(03) | |
| 187 | + | end | |
| 188 | + | else | |
| 189 | + | player:getPosition():sendMagicEffect(03) | |
| 190 | + | end | |
| 191 | + | end | |
| 192 | + | if SEQUENCIA_STATUES[item.uid] then | |
| 193 | + | if player:getStorageValue(STORAGE_BONEBROOK) == 10 then | |
| 194 | + | local CHECK_STONE_01 = Tile(SEQUENCIA_STATUES[item.uid].STONE_POS_1):getItemById(STATUE_BONE_01) | |
| 195 | + | local CHECK_STONE_02 = Tile(SEQUENCIA_STATUES[item.uid].STONE_POS_2):getItemById(STATUE_BONE_01) | |
| 196 | + | local CHECK_STONE_03 = Tile(SEQUENCIA_STATUES[item.uid].STONE_POS_3):getItemById(STATUE_BONE_01) | |
| 197 | + | local CHECK_STONE_04 = Tile(SEQUENCIA_STATUES[item.uid].STONE_POS_4):getItemById(STATUE_BONE_01) | |
| 198 | + | ||
| 199 | + | if CHECK_STONE_01 then | |
| 200 | + | if CHECK_STONE_02 then | |
| 201 | + | if CHECK_STONE_03 then | |
| 202 | + | if CHECK_STONE_04 then | |
| 203 | + | if not party then | |
| 204 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Monstros da Zona 04 liberados.") | |
| 205 | + | player:setStorageValue(STORAGE_BONEBROOK, 11) | |
| 206 | + | player:getPosition():sendMagicEffect(13) | |
| 207 | + | else | |
| 208 | + | local members = party:getMembers() | |
| 209 | + | members[#members + 1] = party:getLeader() | |
| 210 | + | for _, member in ipairs(members) do | |
| 211 | + | member:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Monstros da Zona 04 liberados.") | |
| 212 | + | member:setStorageValue(STORAGE_BONEBROOK, 11) | |
| 213 | + | member:getPosition():sendMagicEffect(13) | |
| 214 | + | end | |
| 215 | + | end | |
| 216 | + | ||
| 217 | + | Game.createMonster("Dragon Lord", SEQUENCIA_STATUES[item.uid].DRAG_POS[01]); | |
| 218 | + | Game.createMonster("Dragon Lord", SEQUENCIA_STATUES[item.uid].DRAG_POS[02]); | |
| 219 | + | Game.createMonster("Dragon Lord", SEQUENCIA_STATUES[item.uid].DRAG_POS[03]); | |
| 220 | + | Game.createMonster("Dragon Lord", SEQUENCIA_STATUES[item.uid].DRAG_POS[04]); | |
| 221 | + | Game.createMonster("Dragon Lord", SEQUENCIA_STATUES[item.uid].DRAG_POS[05]); | |
| 222 | + | else | |
| 223 | + | if not party then | |
| 224 | + | player:say("Estatua 01 a 03 Correta.", TALKTYPE_MONSTER_SAY) | |
| 225 | + | player:getPosition():sendMagicEffect(03) | |
| 226 | + | else | |
| 227 | + | local members = party:getMembers() | |
| 228 | + | members[#members + 1] = party:getLeader() | |
| 229 | + | for _, member in ipairs(members) do | |
| 230 | + | member:say("Estatua 01 a 03 Correta.", TALKTYPE_MONSTER_SAY) | |
| 231 | + | member:getPosition():sendMagicEffect(03) | |
| 232 | + | end | |
| 233 | + | end | |
| 234 | + | end | |
| 235 | + | else | |
| 236 | + | if not party then | |
| 237 | + | player:say("Estatua 01 a 02 Correta.", TALKTYPE_MONSTER_SAY) | |
| 238 | + | player:getPosition():sendMagicEffect(03) | |
| 239 | + | else | |
| 240 | + | local members = party:getMembers() | |
| 241 | + | members[#members + 1] = party:getLeader() | |
| 242 | + | for _, member in ipairs(members) do | |
| 243 | + | member:say("Estatua 01 a 02 Correta.", TALKTYPE_MONSTER_SAY) | |
| 244 | + | member:getPosition():sendMagicEffect(03) | |
| 245 | + | end | |
| 246 | + | end | |
| 247 | + | end | |
| 248 | + | else | |
| 249 | + | if not party then | |
| 250 | + | player:say("Estatua 01 Correta.", TALKTYPE_MONSTER_SAY) | |
| 251 | + | player:getPosition():sendMagicEffect(03) | |
| 252 | + | else | |
| 253 | + | local members = party:getMembers() | |
| 254 | + | members[#members + 1] = party:getLeader() | |
| 255 | + | for _, member in ipairs(members) do | |
| 256 | + | member:say("Estatua 01 Correta.", TALKTYPE_MONSTER_SAY) | |
| 257 | + | member:getPosition():sendMagicEffect(03) | |
| 258 | + | end | |
| 259 | + | end | |
| 260 | + | end | |
| 261 | + | else | |
| 262 | + | if not party then | |
| 263 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Sequencia de Estatuas erradas.") | |
| 264 | + | player:getPosition():sendMagicEffect(03) | |
| 265 | + | else | |
| 266 | + | local members = party:getMembers() | |
| 267 | + | members[#members + 1] = party:getLeader() | |
| 268 | + | for _, member in ipairs(members) do | |
| 269 | + | member:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Sequencia de Estatuas erradas.") | |
| 270 | + | member:getPosition():sendMagicEffect(03) | |
| 271 | + | end | |
| 272 | + | end | |
| 273 | + | end | |
| 274 | + | else | |
| 275 | + | player:getPosition():sendMagicEffect(03) | |
| 276 | + | end | |
| 277 | + | end | |
| 278 | + | if FIRE_STATUE[item.uid] then | |
| 279 | + | if player:getStorageValue(STORAGE_BONEBROOK) == 16 then | |
| 280 | + | if not party then | |
| 281 | + | player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Monstros da Zona 02-C liberados.") | |
| 282 | + | player:setStorageValue(STORAGE_BONEBROOK, 17) | |
| 283 | + | player:getPosition():sendMagicEffect(13) | |
| 284 | + | else | |
| 285 | + | local members = party:getMembers() | |
| 286 | + | members[#members + 1] = party:getLeader() | |
| 287 | + | for _, member in ipairs(members) do | |
| 288 | + | member:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Monstros da Zona 02-C liberados.") | |
| 289 | + | member:setStorageValue(STORAGE_BONEBROOK, 17) | |
| 290 | + | member:getPosition():sendMagicEffect(13) | |
| 291 | + | end | |
| 292 | + | end | |
| 293 | + | ||
| 294 | + | Game.createMonster("Wyrm", FIRE_STATUE[item.uid][01]); | |
| 295 | + | Game.createMonster("Wyrm", FIRE_STATUE[item.uid][02]); | |
| 296 | + | Game.createMonster("Wyrm", FIRE_STATUE[item.uid][03]); | |
| 297 | + | Game.createMonster("Wyrm", FIRE_STATUE[item.uid][04]); | |
| 298 | + | Game.createMonster("Wyrm", FIRE_STATUE[item.uid][05]); | |
| 299 | + | Game.createMonster("Wyrm", FIRE_STATUE[item.uid][06]); | |
| 300 | + | Game.createMonster("Wyrm", FIRE_STATUE[item.uid][07]); | |
| 301 | + | Game.createMonster("Wyrm", FIRE_STATUE[item.uid][08]); | |
| 302 | + | else | |
| 303 | + | player:getPosition():sendMagicEffect(03) | |
| 304 | + | end | |
| 305 | + | end | |
| 306 | + | end |