-
Mais Reputados
-
1
-
2
-
-
Tópicos
-
Últimos Posts
-
Olá amigos, alguém sabe me dizer como faço para instalar um modulo de task no client em otclient v8 ? Já tenho aqui o mod do Oen, porém não estou conseguindo instalar, ele tem as seguintes pastas: Client/mods/game_task e Server/data/scripts/task.lua já coloquei esses arquivos em diversas pastas diferentes e nada, quando coloco o game_task na pasta mods do client ele aparece um task tracker mas não o sistema de task em si, alguém que possa me dar uma luz ?
-
function onUse(cid, item, fromPosition, itemEx, toPosition) local petName = "[PET] NIVEL MAXIMO" local requiredStorage1 = 91811 local requiredStorage2 = 13546 local storageValue = 83712 local playerPets = getCreatureSummons(cid) -- Check if the player has the required immortality storages if getPlayerStorageValue(cid, requiredStorage1) == 1 and getPlayerStorageValue(cid, requiredStorage2) == 1 then -- Check if the player already has a summoned pet if #playerPets <= 0 then -- If no pet is summoned, summon a new one local newPet = doSummonMonster(cid, petName) if newPet then setPlayerStorageValue(cid, storageValue, 1) end else -- If a pet is summoned, check if it's the correct one and remove it for _, pet in ipairs(playerPets) do if getCreatureName(pet) == petName then doRemoveCreature(pet) end end end else -- If the player doesn't have the required storages, send a message doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You need the immortality storage to use this item.") end return true end