Preciso de um script de actions, que ao clicar em um determinado item ele exploda ( e cause um efeito da explosao) com um pouco de dano.
[Resolvido] Item explode ao clicar nele

Versão do servidor? TFS?
A morte espera todos nos ,apenas aguardamos ela tentando ser felizes,mais quando não conseguimos ser felizes é o mesmo que morrer com a única solução é a morte
local SOUNDS = {"Fchhhhhh!", "Zchhhhhh!", "Grooaaaaar*cough*", "Aaa... CHOO!", "You... will.... burn!!"}
function onUse(cid, item, fromPosition, itemEx, toPosition)
local random = math.random(1, table.maxn(SOUNDS))
if(fromPosition.x ~= CONTAINER_POSITION) then
doCreatureSay(cid, SOUNDS[random], TALKTYPE_MONSTER, false, 0, fromPosition)
else
doCreatureSay(cid, SOUNDS[random], TALKTYPE_MONSTER)
end
if(random == 5) then -- "You... will.... burn!!"
doTargetCombatHealth(0, cid, COMBAT_PHYSICALDAMAGE, -5000, -5000, CONST_ME_EXPLOSIONHIT)
end
return true
end
Meu Facebook
INFOS:
CitarCIDADE: Rio de janeiro
Idade: 22 anos
SOU: {"Scripter(lua)", "WebMaster", "ProgramadorC++"}
local config = { delrey = getPlayerCarValue(cid, DELREY), cigarro = getPlayerCancer(cid, DERBY), prostituta = getPlayerAIDS(cid, cracuda), tresOitao = getPlayerRevorvi(cid, 38) } if(delrey == "Ligado" and cigarro == "Aceso" and prostituta == "No Colo" and tresOitao == "Carregado") then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Começou o fim de semana. #PAS") end
16 horas atrás, lazarocp disse:Versão do servidor? TFS?
1.0
13 horas atrás, Marshmello disse:local SOUNDS = {"Fchhhhhh!", "Zchhhhhh!", "Grooaaaaar*cough*", "Aaa... CHOO!", "You... will.... burn!!"}
function onUse(cid, item, fromPosition, itemEx, toPosition)
local random = math.random(1, table.maxn(SOUNDS))
if(fromPosition.x ~= CONTAINER_POSITION) then
doCreatureSay(cid, SOUNDS[random], TALKTYPE_MONSTER, false, 0, fromPosition)
else
doCreatureSay(cid, SOUNDS[random], TALKTYPE_MONSTER)
endif(random == 5) then -- "You... will.... burn!!"
doTargetCombatHealth(0, cid, COMBAT_PHYSICALDAMAGE, -5000, -5000, CONST_ME_EXPLOSIONHIT)
endreturn true
end
o Item some?
21 minutos atrás, R e d disse:1.0
o Item some?
Não, mais você quer que suma?
Meu Facebook
INFOS:
CitarCIDADE: Rio de janeiro
Idade: 22 anos
SOU: {"Scripter(lua)", "WebMaster", "ProgramadorC++"}
local config = { delrey = getPlayerCarValue(cid, DELREY), cigarro = getPlayerCancer(cid, DERBY), prostituta = getPlayerAIDS(cid, cracuda), tresOitao = getPlayerRevorvi(cid, 38) } if(delrey == "Ligado" and cigarro == "Aceso" and prostituta == "No Colo" and tresOitao == "Carregado") then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Começou o fim de semana. #PAS") end
5 horas atrás, Marshmello disse:Não, mais você quer que suma?
Sim ;-;
@R e d Testa
local SOUNDS = {"Fchhhhhh!", "Zchhhhhh!", "Grooaaaaar*cough*", "Aaa... CHOO!", "You... will.... burn!!"}
function onUse(cid, item, fromPosition, itemEx, toPosition)
local random = math.random(1, table.maxn(SOUNDS))
doCreatureSay(cid, SOUNDS[random], TALKTYPE_MONSTER, false, 0, fromPosition)
doTargetCombatHealth(0, cid, COMBAT_PHYSICALDAMAGE, -5000, -5000, CONST_ME_EXPLOSIONHIT)
doRemoveItem(item.uid, 1)
return true
end
Meu Facebook
INFOS:
CitarCIDADE: Rio de janeiro
Idade: 22 anos
SOU: {"Scripter(lua)", "WebMaster", "ProgramadorC++"}
local config = { delrey = getPlayerCarValue(cid, DELREY), cigarro = getPlayerCancer(cid, DERBY), prostituta = getPlayerAIDS(cid, cracuda), tresOitao = getPlayerRevorvi(cid, 38) } if(delrey == "Ligado" and cigarro == "Aceso" and prostituta == "No Colo" and tresOitao == "Carregado") then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Começou o fim de semana. #PAS") end
Meu Facebook
INFOS:
CitarCIDADE: Rio de janeiro
Idade: 22 anos
SOU: {"Scripter(lua)", "WebMaster", "ProgramadorC++"}
local config = { delrey = getPlayerCarValue(cid, DELREY), cigarro = getPlayerCancer(cid, DERBY), prostituta = getPlayerAIDS(cid, cracuda), tresOitao = getPlayerRevorvi(cid, 38) } if(delrey == "Ligado" and cigarro == "Aceso" and prostituta == "No Colo" and tresOitao == "Carregado") then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Começou o fim de semana. #PAS") end