Ir para conteúdo

Featured Replies

Postado

<instant name="Feitiço" words="voodoo" lvl="50" mana="10" prem="1" range="3" needtarget="1" blockwalls="1" exhaustion="1000" needlearn="0" event="script">
<vocation id="5"/>
<vocation id="6"/>
<vocation id="7"/>
<vocation id="8"/>

 

Nessa parte tem ocoreu dois problema, 1ª o ''ç'' do nome feitoço da erro na distro . ( tentei mudar mais da erro ) | 2ª a tag do spell tem que esta igual a do mods ? 

nao intendi muito bem !

 

  • Respostas 31
  • Visualizações 4.3k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • sim, eu já tinha feito ela a um mês e meio atrás mas tava com um problema pra resolver e hoje eu fui testar uma solução que o Max tinha me proposto. Não deu certo mas daí eu consegui adaptar a dica de

  • fico feliz que vcs tenham curtido haha eu achei esse script muito insano... perfeito pra uma vocação que eu tava pensando em criar que seria uma espécie de Shaman ou Macumbeiro 

  • auhuheuha tudo graças à você que me ajudou a ficar testando a spell hoje de manhã <3 vlw por tudo jovem!

Postado
  • Autor

@leozincorsair vc só bota o mod, não mexe em mais nada. Ali que eu tava explicando como q muda a tag pra vc editar, não precisava recriar ela no spells.xml

@Hazardx editei do jeito q vc pediu, qlqer erro me fala q tento arrumar:
 

Spoiler

<?xml version="1.0" encoding="UTF-8"?>
<mod name="Voodoo System" version="1.0" author="Night Wolf" contact="none" enabled="yes">
------------------------------------------------------------------------------------
<config name="feitisso"><![CDATA[
configuration = {
storage = 24567, 
tempo = 20,
cooldown = 45,
effect1 = 13,
effect2 = 65
}
storagecool = 24568
]]></config>
----------------------------------------------------------------------------------
<event type="login" name="registerVoodoo" event="script"><![CDATA[
function onLogin(cid)
domodlib('feitisso')
if getPlayerStorageValue(cid, configuration.storage) > 0 then
	doPlayerSendTextMessage(cid, 22, "Your hero is not protecting your hits anymore.")
	doPlayerSetStorageValue(cid, configuration.storage, 0)
end
registerCreatureEvent(cid,"voodoo")
return true
end
]]></event>
------------------------------------------------------------------------------------
<instant name="Bound Soul" words="utamo res san" lvl="50" mana="10" prem="1" range="3" needtarget="1" blockwalls="1" exhaustion="1000" needlearn="0" event="script">
<vocation id="5"/>
<vocation id="6"/>
<vocation id="7"/>
<vocation id="8"/>
<![CDATA[ 
function onCastSpell(cid, var)
domodlib('feitisso')
	if not (isPlayer(variantToNumber(var))) then
		doPlayerSendCancel(cid, "You can only use this spell in players.")
	return false
	end

	if getPlayerStorageValue(variantToNumber(var), configuration.storage) > 0 then
		doPlayerSendCancel(cid, "You can't protect someone who's already protecting someone else.")
	return false
	end

	if (os.time() - getPlayerStorageValue(cid, storagecool)) >= configuration.cooldown then
		if getPlayerStorageValue(cid, configuration.storage) <= 0 then
			timeleft = (os.time() + configuration.cooldown)
			doPlayerSetStorageValue(cid, storagecool, timeleft)
			local target = getPlayerGUID(cid) 
			doPlayerSetStorageValue(variantToNumber(var), configuration.storage, target)
			doPlayerSetStorageValue(cid, configuration.storage, target)
			doSendMagicEffect(getPlayerPosition(cid), configuration.effect1)
			doSendMagicEffect(getThingPos(variantToNumber(var)), configuration.effect1)
			addEvent(function()
				if isCreature(cid) then
					doSendMagicEffect(getPlayerPosition(cid), configuration.effect2) 
					doPlayerSendTextMessage(cid, 22, "You're not protecting the target anymore.")	
					doPlayerSetStorageValue(cid, configuration.storage, 0)
				end
				if isCreature(variantToNumber(var)) then
					doPlayerSetStorageValue(variantToNumber(var), configuration.storage, 0)
				end
			end, 100+1000*configuration.tempo)
		elseif getPlayerStorageValue (cid, configuration.storage) > 0 then
			doPlayerSendCancel(cid, "You've already bound your soul with someone else.")
		end
	else
	doPlayerSendCancel(cid, "Your skill is in cooldown, you must wait "..(configuration.cooldown - (os.time() - getPlayerStorageValue(cid, storagecool))).." seconds.")
	end
return true
end
]]></instant>
------------------------------------------------------------------------------------
<event type="statschange" name="voodoo" event="script"><![CDATA[ 
function onStatsChange(cid, attacker, type, combat, value)
domodlib('feitisso') 
	if isPlayer(cid) and getPlayerStorageValue(cid, configuration.storage) >= 1 and getPlayerStorageValue(cid, configuration.storage) ~= getPlayerGUID(cid) and attacker ~= cid and (type == STATSCHANGE_HEALTHLOSS or type == STATSCHANGE_MANALOSS)  then
		local name = getPlayerNameByGUID(getPlayerStorageValue(cid, configuration.storage))
		local victim = getCreatureByName(name)
		if isCreature(victim) and not (getTilePzInfo(getPlayerPosition(victim))) then
			dano = math.ceil(1.2 * value)
			doSendMagicEffect(getPlayerPosition(cid), configuration.effect2)
			if attacker == victim then
				doTargetCombatHealth(cid, victim, combat, -dano, -dano, configuration.effect2)
			else
				doTargetCombatHealth(attacker, victim, combat, -dano, -dano, configuration.effect2)
			end
		return false
		end
	end
return true
end
]]></event>
------------------------------------------------------------------------------------
</mod>

 

 

Postado

Agora sim intendi . muito obrigado !

aproveitando voce poderia fornecer suporte a um outro sistema que tem aqui no tk .

estou falando do Vip System by Account 1.0 By Kydrai .. muita gente esta com problemas inclusive eu ..

se poder ao menos me ajuda eu ficaria grato . deste já !

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

  • 4 months later...
Postado

 

Em 29/02/2016 at 11:18, xWhiteWolf disse:

@Hazardx é uma ótima idéia, vou fazer depois

 

Ola Whitewolf! Top os scripts como sempre... queria saber se tem como colocar para usar em monstro tambem!! sera que é possivel? :D

obrigadoo

 

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.6k

Informação Importante

Confirmação de Termo