Ir para conteúdo
Banner com Efeitos

Featured Replies

Postado

Fala Galra Essa Script Ela E Simples Mais eu Queria 2 Funçoes Nela , a 1 e Ter 30 Segundos De Duraçao e Que Teja Exausth De 1 Minuto 

A Segunda Funçao e Poder Usala Premium Account

Citar

local config = {
--[vocation id] = { level, nova voc, looktype, efeito}
-- Yamcha
[533] = { 800, 534, 692, 114},
-- Buu
[126] = { 800, 475, 107, 114}
}
function onSay(cid, words, param, channel)
local voc = config[getPlayerVocation(cid)]
if voc then
if getPlayerLevel(cid) >= voc[1] then
doPlayerSetVocation(cid, voc[2])
doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Voce Se Transformou Em Mode God!")
doCreatureSay(cid, "Mode God", 19)
local outfit = {lookType = voc[3]}
doCreatureChangeOutfit(cid, outfit)
doSendMagicEffect(getCreaturePosition(cid), voc[4])
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Voce precisa estar no level " .. voc[1] .. " para se Transformar Em Mode God.")
end
else
doPlayerSendCancel(cid, "Nao é possível se transformar em Mode God.")
end
return true
end

Rep + Para Quem Me Ajudar

Postado

Tente isso

 

local config = {
	exausted = 60,
	tempo = 30,
	[533] = {800, 534, 692, 114},
	[126] = {800, 475, 107, 114}
}

function change(cid)
	doPlayerSetVocation(cid, voc[2])
	doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Voce Se Transformou Em Mode God!")
	doCreatureSay(cid, "Mode God", 19)
	setPlayerStorageValue(cid, 77889, os.time()+ config.exausted)
	local outfit = {lookType = voc[3]}
	doCreatureChangeOutfit(cid, outfit)
	doSendMagicEffect(getCreaturePosition(cid), voc[4])
end

function onSay(cid, words, param, channel)
	local voc = config[getPlayerVocation(cid)]
	if getPlayerStorageValue(cid, 77889) >= os.time() then
		doPlayerSendCancel(cid, "You're exausted.")
		return TRUE
	end
	
	if isPremium(cid) then
		if voc then
			if getPlayerLevel(cid) >= voc[1] then
				addEvent(change, config.tempo * 1000, cid)
			else
				doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Voce precisa estar no level " .. voc[1] .. " para se Transformar Em Mode God.")
			end
		else
			doPlayerSendCancel(cid, "Nao é possível se transformar em Mode God.")
		end
	else
		doPlayerSendCancel(cid, "You must be premium account to use this command.")
	end
	return true
end 

 

discord.pngDiscord: vankk #7765

Precisando de ajuda? Entre em contato comigo via Discord.

 

Muitos vêm seus muitos dias de glória, mas poucos vêm seus muitos dias de luta.

Postado
local config = {
	exausted = 60,
	tempo = 30,
	[533] = {800, 534, 692, 114},
	[126] = {800, 475, 107, 114}
}

function change(cid)
	local voc = config[getPlayerVocation(cid)]
	doPlayerSetVocation(cid, voc[2])
	doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Voce Se Transformou Em Mode God!")
	doCreatureSay(cid, "Mode God", 19)
	setPlayerStorageValue(cid, 77889, os.time()+ config.exausted)
	local outfit = {lookType = voc[3]}
	doCreatureChangeOutfit(cid, outfit)
	doSendMagicEffect(getCreaturePosition(cid), voc[4])
end

function onSay(cid, words, param, channel)
	local voc = config[getPlayerVocation(cid)]
	if getPlayerStorageValue(cid, 77889) >= os.time() then
		doPlayerSendCancel(cid, "You're exausted.")
		return TRUE
	end
	
	if isPremium(cid) then
		if voc then
			if getPlayerLevel(cid) >= voc[1] then
				addEvent(change, config.tempo * 1000, cid)
			else
				doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Voce precisa estar no level " .. voc[1] .. " para se Transformar Em Mode God.")
			end
		else
			doPlayerSendCancel(cid, "Nao é possível se transformar em Mode God.")
		end
	else
		doPlayerSendCancel(cid, "You must be premium account to use this command.")
	end
	return true
end 

 

discord.pngDiscord: vankk #7765

Precisando de ajuda? Entre em contato comigo via Discord.

 

Muitos vêm seus muitos dias de glória, mas poucos vêm seus muitos dias de luta.

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.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo