Jump to content
  • 0
potinho

Scripting Carga Manarune 7.6

Question

potinho    4
potinho

Descreva em algumas palavras a base utilizada. (Nome do servidor / Nome do cliente / Nome do website / etc.).

The OTX Server Version: (2.100 - 6000) - Codename: (FINAL)

Base:

ExtremeOT 7.6

Qual é a sua pergunta?

Olá galera, estou tentando implementar Mana Rune no meu servidor, porém ela não está vindo com cargas, como as outras runas, ela fica sem cargas (infinita) caso eu não adicione uma tag no script pra remover após usar, mas gostaria que quando fosse vendida ou criada por mim, viesse com 100 cargas como as outras. 

 

Você tem o código disponível? Se tiver poste-o na caixa de código que está dentro do spoiler abaixo:

Spoiler

Items.xml 

<item id="2281" article="a" name="Mana Rune">
		<attribute key="type" value="rune"/>
		<attribute key="charges" value="1"/>
		<attribute key="weight" value="52"/>
</item>


Spells.XML:
<rune name="Mana Rune" id="2281" allowfaruse="1" charges="1" maglv="4" exhaustion="800" aggressive="0" needtarget="1" blocktype="solid" event="script" value="healing/manarune.lua"/>

Spells/scripts:

local combat = createCombatObject()

setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)

setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, FALSE)

setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, TRUE)

function onCastSpell(cid, var)

        doCreatureAddMana(cid, math.random(100,300))

        doCreatureSay(cid,"Aaaah...", TALKTYPE_ORANGE_1)

        doPlayerRemoveItem(cid,2281,1)       

    return doCombat(cid, combat, var)

end

 

Spells.xml

 

Você tem alguma imagem que possa auxiliar no problema? Se sim, anexe-a dentro do spoiler abaixo:

Spoiler

 

 

Capturar.JPG

Edited by potinho
ss da runa

Share this post


Link to post

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

×