Ir para conteúdo

Posts Recomendados

Pessoal eu preciso de uma talkactions que ramove frag urgente!

 

É o seguinte você fala assim: !removefrag e 1 frag some por 100k.

 

Porfavor me ajudem, to precisando muito, não entendo quase nada de scripts!!!

Link para o comentário
https://xtibia.com/forum/topic/125634-talkactions-que-remove-frag/
Compartilhar em outros sites

  • 4 weeks later...
local Cost = {
[1] = 100,
[2] = 200,
[3] = 300,
[4] = 400,
[5] = 500,
}
function onSay(cid)
if Cost[getCreatureSkullType(cid)] then
	if getPlayerMoney(cid) >= Cost[getCreatureSkullType(cid)] then
		doCreatureSetSkullType(cid, 0)
		doPlayerRemoveMoney(cid, Cost[getCreatureSkullType(cid)])
		db.executeQuery("UPDATE `players` SET `frags` = 0, WHERE `id` = "..getPlayerGUID(cid))
		if getCreatureSkullType(cid) >= 3 then
			doPlayerSetRedSkullTicks(cid, 0)
		end
	else
		doPlayerSendCancel(cid, "Você não tem dinheiro o suficiente.")
		doSendMagicEffect(getCreaturePosition(cid), 2)
	end
else
	doPlayerSendCancel(cid, "Você não tem nenhuma skull.")
	doSendMagicEffect(getCreaturePosition(cid), 2)
end
return true
end

Link para o comentário
https://xtibia.com/forum/topic/125634-talkactions-que-remove-frag/#findComment-840313
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...