Postado Agosto 6, 2022 2 anos local monster = 'Pterodactyll' -- name local stor = 8000 -- storage function onCombat(cid, target) if (isPlayer(cid)) then if (isMonster(target) and (getCreatureName(target) == monster and (getPlayerStorageValue(cid, stor) ~= 1))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Voce nao esta nessa saga!") return false end end return true end function onKill(cid, target) if isMonster(target) and getCreatureName(target) == monster and getPlayerStorageValue(cid, stor) == 1 then setPlayerStorageValue(cid, stor, 2) end return true end alguiem que me ajude a trocar esa script para tfs 1.3?
Postado Agosto 8, 2022 2 anos local monster = 'Pterodactyll' -- name local stor = 8000 -- storage function onCombat(cid, target) if (cid:isPlayer()) then local player = Player(cid) if (target:isMonster() and target:getName() == monster and player:getStorageValue(stor) ~= 1) then player:sendTextMessage(MESSAGE_STATUS_WARNING, "Voce nao esta nessa saga!") return false end end return true end function onKill(cid, target) local player = Player(cid) if target:isMonster() and target:getName() == monster and player:getStorageValue(stor) == 1 then player:setStorageValue(stor, 2) end return true end
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.