Ir para conteúdo

Featured Replies

Postado
  • Diretor

fiz aqui^^

function onSay(cid, words, param)

----hokage

local roupahokage = 953

	if param == "hokage" then
    if getPlayerSex(cid) == 1 then
	doSetCreatureOutfit(cid,{lookType = roupahokage, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, -1)
	doPlayerAddSkillTry(cid,SKILL__MAGLEVEL,30)
	else
    doPlayerAddSkillTry(cid, SKILL__MAGLEVEL, 30)
	doSetCreatureOutfit(cid,{lookType = roupahokage, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, -1)
    end
    end

----mizukage
	
local roupamizukage = 953

	if param == "mizukage" then
    if getPlayerSex(cid) == 1 then
	doSetCreatureOutfit(cid,{lookType = roupamizukage, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, -1)
    doPlayerAddSkillTry(cid,SKILL_SWORD,30)
   else
    doSetCreatureOutfit(cid,{lookType = roupamizukage, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, -1)
        doPlayerAddSkillTry(cid,SKILL_SWORD,30)
	end
    end	
	
	return true
end

<talkaction log="no" words="!modo" event="script" value="modo.lua"/>

Editado por L3K0T (veja o histórico de edições)

 

20230912_034613.png.cf49b650c34dd7d7b1f79bd49c70f53c.png

Eu sou um entusiasta da programação apaixonado por ajudar a comunidade open source a crescer. Sempre em busca de novos desafios e oportunidades para contribuir com meu código.  #OpenSource #Programação #Contribuição

 

Postado
local config = {
	lookHokage = 953,
	storageHokage = 15412,
	
	lookMizukage = 953,
	storageMizukage = 15413
}

function onSay(cid, words, param)
	-- Hokage
	if param == "hokage" then
		if getPlayerStorageValue(cid, config.storageHokage) > 0 then
			doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'Você já está no modo Hokage!')
			return false
		end
		
		if getPlayerStorageValue(cid, config.storageMizukage) > 0 then
			doPlayerSetStorageValue(cid, config.storageMizukage, 0)
		end
		
		doSetCreatureOutfit(cid,{lookType = config.lookHokage, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, -1)
		doPlayerAddSkillTry(cid, SKILL__MAGLEVEL, 30)
		doPlayerSetStorageValue(cid, config.storageHokage, 1)
	
	-- Mizukage
	elseif param == "mizukage" then
		if getPlayerStorageValue(cid, config.storageMizukage) > 0 then
			doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'Você já está no modo Mizukage!')
			return false
		end
		if getPlayerStorageValue(cid, config.storageHokage) > 0 then
			doPlayerSetStorageValue(cid, config.storageHokage, 0)
		end

		doSetCreatureOutfit(cid, {lookType = config.lookMizukage, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, -1)
        doPlayerAddSkillTry(cid, SKILL_SWORD, 30)
		doPlayerSetStorageValue(cid, config.storageMizukage, 1)
    end	
	return false
end

 

Postado
  • Autor
Em 25/06/2018 em 13:56, L3K0T disse:

fiz aqui^^


function onSay(cid, words, param)

----hokage

local roupahokage = 953

	if param == "hokage" then
    if getPlayerSex(cid) == 1 then
	doSetCreatureOutfit(cid,{lookType = roupahokage, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, -1)
	doPlayerAddSkillTry(cid,SKILL__MAGLEVEL,30)
	else
    doPlayerAddSkillTry(cid, SKILL__MAGLEVEL, 30)
	doSetCreatureOutfit(cid,{lookType = roupahokage, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, -1)
    end
    end

----mizukage
	
local roupamizukage = 953

	if param == "mizukage" then
    if getPlayerSex(cid) == 1 then
	doSetCreatureOutfit(cid,{lookType = roupamizukage, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, -1)
    doPlayerAddSkillTry(cid,SKILL_SWORD,30)
   else
    doSetCreatureOutfit(cid,{lookType = roupamizukage, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, -1)
        doPlayerAddSkillTry(cid,SKILL_SWORD,30)
	end
    end	
	
	return true
end

<talkaction log="no" words="!modo" event="script" value="modo.lua"/>

Ei você pode criar mais 3 abas? que tem 5 kages xD

MODO HOKAGE 
Este item pode ser usado para aumentar 2000 de speed e 10% do seu magic level e sword.

 

MODO MIZUKAGE
Este item pode ser usado para aumentar 2000 de speed e 10% do seu magic level e distance. 

 

MODO KAZEKAGE
Este item pode ser usado para aumentar 2000 de speed e 10% do seu magic level e 2000 de vida. 

 

MODO TSUCHIKAGE 
Este item pode ser usado para aumentar 2000 de speed e 10% do seu magic level e shield.

 

MODO RAIKAGE 
Este item pode ser usado para aumentar 2000 de speed e 10% do seu magic level e glove.

Editado por xMateuss (veja o histórico de edições)

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.

Conteúdo Similar

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo