Postado Novembro 4, 2014 10 anos Olá queria saber como adicionar o comando !spells para seu server e tambem como um script q fiz n sei oque esta errado mas a minha vocaçao nova q criei n esta funcionando alguem poderia me ajudar. Esse é o script <?xml version="1.0" encoding="UTF-8"?> <vocations> <vocation id="0" name="None" description="none" needpremium="0" gaincap="5" gainhp="5" gainmana="5" gainhpticks="6" gainhpamount="1" gainmanaticks="6" gainmanaamount="1" manamultiplier="4.0" attackspeed="100" soulmax="100" gainsoulticks="150" fromvoc="0" attackable="no"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="1" name="Magico" description="um Magico" needpremium="0" gaincap="10" gainhp="10" gainmana="30" gainhpticks="3" gainhpamount="10" gainmanaticks="2" gainmanaamount="20" manamultiplier="1.1" attackspeed="300" soulmax="100" gainsoulticks="120" fromvoc="1"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="2.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="1.0" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="2" name="Curandeiro" description="um Curandeiro" needpremium="0" gaincap="10" gainhp="18" gainmana="30" gainhpticks="3" gainhpamount="10" gainmanaticks="2" gainmanaamount="20" manamultiplier="1.1" attackspeed="600" soulmax="100" gainsoulticks="120" fromvoc="2"> <formula meleeDamage="2.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="0.5" club="1.0" sword="1.0" axe="1.0" distance="1.8" shielding="1.0frt" fishing="1.1" experience="1.0"/> </vocation> <vocation id="3" name="Arqueiro" description="um Arqueiro" needpremium="0" gaincap="20" gainhp="15" gainmana="15" gainhpticks="3" gainhpamount="15" gainmanaticks="3" gainmanaamount="15" manamultiplier="1.4" attackspeed="450" soulmax="100" gainsoulticks="120" fromvoc="3"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.0" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> <vocation id="4" name="Gladiador" description="um Gladiador" needpremium="0" gaincap="25" gainhp="20" gainmana="10" gainhpticks="2" gainhpamount="20" gainmanaticks="3" gainmanaamount="10" manamultiplier="3.0" attackspeed="400" soulmax="100" gainsoulticks="120" fromvoc="4"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="0.5" club="1.0" sword="1.0" axe="1.0" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> <vocation id="5" name="Dementador" description="um Dementador" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="3" gainhpamount="15" gainmanaticks="2" gainmanaamount="40" manamultiplier="1.1" attackspeed="250" soulmax="200" gainsoulticks="15" fromvoc="1" lessloss="30"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="2.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="6" name="Sacerdote" description="um Sacerdote" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="3" gainhpamount="20" gainmanaticks="2" gainmanaamount="40" manamultiplier="1.1" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="2" lessloss="30"> <formula meleeDamage="3.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="1.0" sword="1.0" axe="1.0" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="7" name="Sniper" description="a Sniper" needpremium="1" gaincap="20" gainhp="23" gainmana="23" gainhpticks="2" gainhpamount="20" gainmanaticks="2" gainmanaamount="25" manamultiplier="1.4" attackspeed="300" soulmax="200" gainsoulticks="15" fromvoc="3" lessloss="30"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.0" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> <vocation id="8" name="Gladiador Real" description="um Gladiador Real" needpremium="1" gaincap="25" gainhp="30" gainmana="15" gainhpticks="2" gainhpamount="30" gainmanaticks="3" gainmanaamount="17" manamultiplier="3.0" attackspeed="350" soulmax="200" gainsoulticks="15" fromvoc="4" lessloss="30"> <formula meleeDamage="2.5" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="2.0" magDefense="1.0" armor="2.0"/> <skill fist="1.1" club="1.0" sword="1.0" axe="1.0" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> <vocation id="9" name="Sanguinario" description="um Sanguinario" needpremium="0" gaincap="25" gainhp="20" gainmana="15" gainhpticks="1" gainhpamount="20" gainmanaticks="1" gainmanaamount="17" manamultiplier="3.0" attackspeed="100" soulmax="200" gainsoulticks="15" fromvoc="5" lessloss="30"> <formula meleeDamage="0.5" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="2.0" magDefense="1.0" armor="2.0"/> <skill fist="0.1" club="1.0" sword="1.0" axe="1.0" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> --> </vocations>
Postado Novembro 4, 2014 10 anos Pra adicionar o comando !spells data/talkactions/scripts crie spells.lua function onSay(cid, words, param) file = io.open('spells.txt','r') notice = file:read(-1) doShowTextDialog(cid,7528,notice) file:close() end em talkactions.xml adicione : <talkaction words="!spells" event="script" value="spells.lua"/> sobre a vocação tem postar que erro que aparece na distro pra saber qual arquivo esta com problema ...
Postado Novembro 4, 2014 10 anos Autor Não mostra nenhum erro apenas não funciona :\ e a unica vocaçao q não funciona e a 9 o resto funciona Pra adicionar o comando !spells data/talkactions/scripts crie spells.lua function onSay(cid, words, param) file = io.open('spells.txt','r') notice = file:read(-1) doShowTextDialog(cid,7528,notice) file:close() end em talkactions.xml adicione : <talkaction words="!spells" event="script" value="spells.lua"/> sobre a vocação tem postar que erro que aparece na distro pra saber qual arquivo esta com problema ... e obrigado pelo comando :3 Editado Novembro 4, 2014 10 anos por Rikikajimo (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.