icexking 0 Postado Novembro 22, 2007 Share Postado Novembro 22, 2007 (editado) Bem,esse eh meu primeiro tutorial aki no Xtibia essa arrow ela n pega skill, mas gasta mana e presisa de arco ou crossbow para usa-lá vc que escolhe la vai: em data\itens\itens.xml vc da ctrl+f e digita (crystal arrow) vc vai achar alguma coiza assim: -------------------------- <item id="2352" name="crystal arrow"> <attribute key="weight" value="0"/> <attribute key="weaponType" value="ammunition"/> <attribute key="attack" value="65"/> <attribute key="ammoType" value="arrow"/> <attribute key="shootType" value="arrow"/> </item> ---------------------------- ai vc muda pra isso aki : ---------------------------- <item id="2352" name="crystal arrow"> <attribute key="description" value="aki vc pode colokar oq vc kiser q vai apacer quando der look."/> <attribute key="weight" value="70"/> <attribute key="attack" value="20"/> <attribute key="weaponType" value="ammunition"/> <attribute key="ammoType" value="arrow"/> <attribute key="shootType" value="arrow"/> </item> --------------------------- Ta agora essa a parte de itens.xml está pronta agora vamos para data\weapons\scripts Copie qualquer arquivo que vc axar ai abra e mude para isso: coloque o nome do arquivo como crystal arrow.lua (ou como vc preferir) ---------------------------- local combat = createCombatObject()setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1) setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 21) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, -450, 0, -600) function onUseWeapon(cid, var) return doCombat(cid, combat, var) end ---------------------------- ( setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, -450, 0, -600) ) essa linha aqui quer dizer assim essa arrow soh vai tira entre 450 e 600 ai vc pode mudar o hit essa parte esta pronta tbm agora faça isso : abra a pasta data\weapons\weapons.xml e add isso enbaixo da linha wands q vai esta assim ---------------------------- <!-- Wands --><wand id="2190" range="4" lvl="8" mana="2" enabled="1" exhaustion="0" script="wand of vortex.lua"><vocation id="1"/><vocation id="5"/></wand> <wand id="2191" range="3" lvl="13" mana="3" enabled="1" exhaustion="0" script="wand of dragonbreath.lua"><vocation id="1"/><vocation id="5"/></wand> <wand id="2188" range="2" lvl="19" mana="5" enabled="1" exhaustion="0" script="wand of plague.lua"><vocation id="1"/><vocation id="5"/></wand> <wand id="2189" range="1" lvl="26" mana="8" enabled="1" exhaustion="0" script="wand of cosmic energy.lua"><vocation id="1"/><vocation id="5"/></wand> <wand id="2187" range="3" lvl="33" mana="13" enabled="1" exhaustion="0" script="wand of inferno.lua"><vocation id="1"/><vocation id="5"/></wand> --------------------------- ai vc soh pega essa linha ai em baixo e coloka no final: ---------------------------- <wand id="2352" range="10" lvl="100" mana="25" enabled="1" exhaustion="0" script="crystal arrow.lua"><vocation id="3"/><vocation id="7"/></wand> ---------------------------- vai fikar assim ---------------------------- <!-- Wands --><wand id="2190" range="4" lvl="8" mana="2" enabled="1" exhaustion="0" script="wand of vortex.lua"><vocation id="1"/><vocation id="5"/></wand> <wand id="2191" range="3" lvl="13" mana="3" enabled="1" exhaustion="0" script="wand of dragonbreath.lua"><vocation id="1"/><vocation id="5"/></wand> <wand id="2188" range="2" lvl="19" mana="5" enabled="1" exhaustion="0" script="wand of plague.lua"><vocation id="1"/><vocation id="5"/></wand> <wand id="2189" range="1" lvl="26" mana="8" enabled="1" exhaustion="0" script="wand of cosmic energy.lua"><vocation id="1"/><vocation id="5"/></wand> <wand id="2187" range="3" lvl="33" mana="13" enabled="1" exhaustion="0" script="wand of inferno.lua"><vocation id="1"/><vocation id="5"/></wand> <wand id="2352" range="10" lvl="100" mana="25" enabled="1" exhaustion="0" script="crystal arrow.lua"><vocation id="3"/><vocation id="7"/></wand> -------------------------- agora assim esse numero ai (2352) eh o id da arrow ( vocation id="3"/><vocation id="7"/ ) eh porque a arrow eh soh pra pally e royal (mana="25") ta 25 isso vc pode mudar (range="10") eh quantos sqms a arrow pode ir. Pronto agora c vc gostou posta ae xD c vc gostar e quiser postar em otro forum coloka meu credits e deu xD qm visualizar pelo menos diz como q ta c ta massa c ta podre xD Editado Novembro 23, 2007 por IcExKiNg Link para o comentário Compartilhar em outros sites More sharing options...
102030 0 Postado Novembro 22, 2007 Share Postado Novembro 22, 2007 MTO MASSA CARA... GOSTEI MTO. TO USANDO NO MEU OT... Link para o comentário Compartilhar em outros sites More sharing options...
DanielStyfler 0 Postado Novembro 23, 2007 Share Postado Novembro 23, 2007 (editado) Nossa daora sayusauh seria rox botar um Arrow bem forte para mages + que gasta mana :smile_positivo: Parabéns pela criatividade Editado Novembro 23, 2007 por DanielStyfler Link para o comentário Compartilhar em outros sites More sharing options...
icexking 0 Postado Novembro 23, 2007 Autor Share Postado Novembro 23, 2007 vlw xD Link para o comentário Compartilhar em outros sites More sharing options...
Addict 12 Postado Novembro 27, 2007 Share Postado Novembro 27, 2007 Aprovado, Movido para seção correta. Link para o comentário Compartilhar em outros sites More sharing options...
Bernardo 87 Postado Novembro 29, 2007 Share Postado Novembro 29, 2007 fiko muito bom o tuto aprovado Link para o comentário Compartilhar em outros sites More sharing options...
Skulls 331 Postado Novembro 30, 2007 Share Postado Novembro 30, 2007 Bem legal, Serve pa dificulta paladinos ^^ =O parabens flw Link para o comentário Compartilhar em outros sites More sharing options...
Morpheus_ 1 Postado Novembro 30, 2007 Share Postado Novembro 30, 2007 Ja vi OT que paly tem 11k de mana... Link para o comentário Compartilhar em outros sites More sharing options...
Posts Recomendados