cria um arquivo .lua com o nome removefrags na pasta data/talkactions/scripts, cole:
function onSay(cid, words, param)
local quantMoney = 5000 -- quantidade de gps
local noRemove = {SKULL_YELLOW}
local playerSkull = getPlayerSkullType(cid)
if isInArray(noRemove, playerSkull) then
doPlayerSendCancel(cid, "You can't remove this type of skull.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
return true
elseif playerSkull == SKULL_NONE then
doPlayerSendCancel(cid, "You don't have skull.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
return true
elseif not doPlayerRemoveMoney(cid, quantMoney) then
doPlayerSendCancel(cid, "You do not have money.")
return true
db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")")
doPlayerSendTextMessage(cid, 27, "Your frags & your skull have been removed!")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_RED)
doSendAnimatedText(getPlayerPosition(cid), "POFF!", 180)
doCreatureSetSkullType(cid,0)
doPlayerSetSkullEnd(cid, 0, playerSkull)
end
return true
end
em talkactions.xml cole a tag:
<talkaction words="!removefrags" event="script" value="removefrags.lua"/>
Créditos:
@NatsuMcDonald






info
Grupo: Artesão
Registrado: 25/03/12
Posts: 109
Reputação: +4
Char no Tibia: Kimera DebochadoOo
Tipo do script:Talkaction
Protocolo: 8.6
Servidor utilizado: tfs 3.6
Nível de experiência: Medio
Como diz o titulo preciso de um Talkaction que tire os frags do player i também que tire a Red Skull.
Valendo Rep +