Postado Junho 22, 2020 4 anos if isMonster(target) == true and getCreatureName(target) == "Renegade" then local amount = getPlayerStorageValue(cid,19100) <= 0 and 0 or getPlayerStorageValue(cid, 19100) if amount < 75 then setPlayerStorageValue(cid, 19100, amount+1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você matou "..getPlayerStorageValue(cid, 19100).."/75 Renegades.") end STYLLER OT 2022
Postado Junho 22, 2020 4 anos Autor 1 hora atrás, luanluciano93 disse: if isMonster(target) == true and getCreatureName(target) == "Renegade" then local amount = getPlayerStorageValue(cid,19100) <= 0 and 0 or getPlayerStorageValue(cid, 19100) if amount < 75 then setPlayerStorageValue(cid, 19100, amount+1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você matou "..getPlayerStorageValue(cid, 19100).."/75 Renegades.") end obrigado, funcionou ! 2 horas atrás, luanluciano93 disse: if isMonster(target) == true and getCreatureName(target) == "Renegade" then local amount = getPlayerStorageValue(cid,19100) <= 0 and 0 or getPlayerStorageValue(cid, 19100) if amount < 75 then setPlayerStorageValue(cid, 19100, amount+1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você matou "..getPlayerStorageValue(cid, 19100).."/75 Renegades.") end function onKill(cid, target) if(isPlayer(target) == TRUE and getPlayerStorageValue(cid,9103) ~= 1) then setPlayerStorageValue(cid, 9103, 1) end if isMonster(target) == true and getCreatureName(target) == "Renegade" then local amount = getPlayerStorageValue(cid,19100) <= 0 and 0 or getPlayerStorageValue(cid, 19100) if amount < 75 then setPlayerStorageValue(cid, 19100, amount+1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você matou "..getPlayerStorageValue(cid, 19100).."/75 Renegades.") end if isMonster(target) == true and getCreatureName(target) == "Nukenin" then local amount = getPlayerStorageValue(cid,19101) <= 0 and 0 or getPlayerStorageValue(cid, 19101) if amount < 100 then setPlayerStorageValue(cid, 19101, amount+1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você matou "..getPlayerStorageValue(cid, 19101).."/100 Nukenins.") end if isMonster(target) == true and getCreatureName(target) == "Anbu" then local amount = getPlayerStorageValue(cid,19102) <= 0 and 0 or getPlayerStorageValue(cid, 19102) if amount < 100 then setPlayerStorageValue(cid, 19102, amount+1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você matou "..getPlayerStorageValue(cid, 19102).."/100 Anbus.") end if isMonster(target) == true and getCreatureName(target) == "Konan" then local amount = getPlayerStorageValue(cid,19104) <= 0 and 0 or getPlayerStorageValue(cid, 19104) if amount < 100 then setPlayerStorageValue(cid, 19104, amount+1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você matou "..getPlayerStorageValue(cid, 19104).."/100 Konans.") end if isMonster(target) == true and getCreatureName(target) == "Larva" then local amount = getPlayerStorageValue(cid,19105) <= 0 and 0 or getPlayerStorageValue(cid, 19105) if amount < 200 then setPlayerStorageValue(cid, 19105, amount+1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você matou "..getPlayerStorageValue(cid, 19105).."/200 Larvas.") end if isMonster(target) == true and getCreatureName(target) == "Aranha" then local amount = getPlayerStorageValue(cid,19106) <= 0 and 0 or getPlayerStorageValue(cid, 19106) if amount < 100 then setPlayerStorageValue(cid, 19106, amount+1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você matou "..getPlayerStorageValue(cid, 19106).."/100 Aranhas.") end if isMonster(target) == true and getCreatureName(target) == "Black Dragon" then local amount = getPlayerStorageValue(cid,19107) <= 0 and 0 or getPlayerStorageValue(cid, 19107) if amount < 10 then setPlayerStorageValue(cid, 19107, amount+1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você matou "..getPlayerStorageValue(cid, 19107).."/10 Black Dragons.") end if isMonster(target) == true and getCreatureName(target) == "Black Machine" then local amount = getPlayerStorageValue(cid,19108) <= 0 and 0 or getPlayerStorageValue(cid, 19108) if amount < 10 then setPlayerStorageValue(cid, 19108, amount+1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você matou "..getPlayerStorageValue(cid, 19108).."/10 Black Machines.") end if isMonster(target) == true and getCreatureName(target) == "Evill Ghost" then local amount = getPlayerStorageValue(cid,19109) <= 0 and 0 or getPlayerStorageValue(cid, 19109) if amount < 10 then setPlayerStorageValue(cid, 19109, amount+1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você matou "..getPlayerStorageValue(cid, 19109).."/10 Evill Ghosts.") end if isMonster(target) == true and getCreatureName(target) == "Evill Snake" then local amount = getPlayerStorageValue(cid,19110) <= 0 and 0 or getPlayerStorageValue(cid, 19110) if amount < 300 then setPlayerStorageValue(cid, 19110, amount+1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você matou "..getPlayerStorageValue(cid, 19110).."/300 Evill Snakes.") end if(getPlayerStorageValue(cid,19100) >= 75) then setPlayerStorageValue(cid, 9100, 1) end if(getPlayerStorageValue(cid,19101) >= 100) then setPlayerStorageValue(cid, 9101, 1) end if(getPlayerStorageValue(cid,19102) >= 100) then setPlayerStorageValue(cid, 9102, 1) end if(getPlayerStorageValue(cid,19104) >= 100) then setPlayerStorageValue(cid, 9104, 1) end if(getPlayerStorageValue(cid,19105) >= 200) then setPlayerStorageValue(cid, 9105, 1) end if(getPlayerStorageValue(cid,19106) >= 100) then setPlayerStorageValue(cid, 9106, 1) end if(getPlayerStorageValue(cid,19107) >= 10) then setPlayerStorageValue(cid, 9107, 1) end if(getPlayerStorageValue(cid,19108) >= 10) then setPlayerStorageValue(cid, 9108, 1) end if(getPlayerStorageValue(cid,19109) >= 10) then setPlayerStorageValue(cid, 9109, 1) end if(getPlayerStorageValue(cid,19110) >= 300) then setPlayerStorageValue(cid, 9110, 1) end end return TRUE end deu esse erro ao fazer em todas
Postado Junho 23, 2020 4 anos Solução @leozincorsair local tab = { ["Renegade"] = {storage = 19100, amount = 75, storage_reward = 9100}, ["Nukenin"] = {storage = 19101, amount = 100, storage_reward = 9101}, ["Anbu"] = {storage = 19102, amount = 100, storage_reward = 9102}, ["Konan"] = {storage = 19104, amount = 100, storage_reward = 9104}, ["Larva"] = {storage = 19105, amount = 200, storage_reward = 9105}, ["Aranha"] = {storage = 19106, amount = 100, storage_reward = 9106}, ["Black Dragon"] = {storage = 19107, amount = 10, storage_reward = 9107}, ["Black Machine"] = {storage = 19108, amount = 10, storage_reward = 9108}, ["Evill Ghost"] = {storage = 19109, amount = 10, storage_reward = 9109}, ["Evill Snake"] = {storage = 191010, amount = 300, storage_reward = 9110} } function onKill(cid, target) if(isPlayer(target) == TRUE and getPlayerStorageValue(cid,9103) ~= 1) then setPlayerStorageValue(cid, 9103, 1) end local ret = tab[getCreatureName(target)] if isMonster(target) == true and ret then local amount = getPlayerStorageValue(cid, ret.storage) <= 0 and 0 or getPlayerStorageValue(cid, ret.storage) if amount < ret.amount then setPlayerStorageValue(cid, ret.storage, amount+1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você matou "..getPlayerStorageValue(cid, ret.storage).."/"..ret.amount.." "..getCreatureName(target)..".") end if getPlayerStorageValue(cid, ret.storage) >= ret.amount then setPlayerStorageValue(cid, ret.storage_reward, 1) end end return true end [*Ninguém será digno do sucesso se não usar suas derrotas para conquistá-lo.*] DISCORD: vodkart#6090
Postado Junho 23, 2020 4 anos Autor 1 hora atrás, Vodkart disse: @leozincorsair local tab = { ["Renegade"] = {storage = 19100, amount = 75, storage_reward = 9100}, ["Nukenin"] = {storage = 19101, amount = 100, storage_reward = 9101}, ["Anbu"] = {storage = 19102, amount = 100, storage_reward = 9102}, ["Konan"] = {storage = 19104, amount = 100, storage_reward = 9104}, ["Larva"] = {storage = 19105, amount = 200, storage_reward = 9105}, ["Aranha"] = {storage = 19106, amount = 100, storage_reward = 9106}, ["Black Dragon"] = {storage = 19107, amount = 10, storage_reward = 9107}, ["Black Machine"] = {storage = 19108, amount = 10, storage_reward = 9108}, ["Evill Ghost"] = {storage = 19109, amount = 10, storage_reward = 9109}, ["Evill Snake"] = {storage = 191010, amount = 300, storage_reward = 9110} } function onKill(cid, target) if(isPlayer(target) == TRUE and getPlayerStorageValue(cid,9103) ~= 1) then setPlayerStorageValue(cid, 9103, 1) end local ret = tab[getCreatureName(target)] if isMonster(target) == true and ret then local amount = getPlayerStorageValue(cid, ret.storage) <= 0 and 0 or getPlayerStorageValue(cid, ret.storage) if amount < ret.amount then setPlayerStorageValue(cid, ret.storage, amount+1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você matou "..getPlayerStorageValue(cid, ret.storage).."/"..ret.amount.." "..getCreatureName(target)..".") end if getPlayerStorageValue(cid, ret.storage) >= ret.amount then setPlayerStorageValue(cid, ret.storage_reward, 1) end end return true end The best
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.