Postado Outubro 9, 2021 4 anos Olá pessoa, Alguém me ajuda a resolver esse ''problema'' pf. Estou tentando por nova promotion. Adicionei a nova promotion nas (vocations) e na (Lib-031). Botei o script (Action) de Bau pra adicionar a nova vocaçao ao clicar no baú. Ate ai tudo bem, o personagem pega a 3 vocação, mas quando reloga ele volta para a promotion antiga. TFS 0.4 Vocation: Citar <?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="2" manamultiplier="4.0" attackspeed="1" soulmax="100" gainsoulticks="120" 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="Sorcerer" description="Sorcerer" needpremium="0" gaincap="10" gainhp="5" gainmana="37" gainhpticks="2" gainhpamount="500" gainmanaticks="2" gainmanaamount="1000" manamultiplier="1.1" attackspeed="150" soulmax="250" gainsoulticks="50" fromvoc="1"> <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="2" name="Druid" description="Druid" needpremium="0" gaincap="10" gainhp="5" gainmana="37" gainhpticks="2" gainhpamount="500" gainmanaticks="2" gainmanaamount="1000" manamultiplier="1.1" attackspeed="150" soulmax="250" gainsoulticks="50" fromvoc="2"> <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="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="3" name="Paladin" description="Paladin" needpremium="0" gaincap="10" gainhp="22" gainmana="15" gainhpticks="2" gainhpamount="750" gainmanaticks="2" gainmanaamount="750" manamultiplier="1.4" attackspeed="165" soulmax="250" gainsoulticks="50" 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.1" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> <vocation id="4" name="Knight" description="Knight" needpremium="0" gaincap="10" gainhp="32" gainmana="5" gainhpticks="2" gainhpamount="1000" gainmanaticks="2" gainmanaamount="500" manamultiplier="3.0" attackspeed="155" soulmax="250" gainsoulticks="50" 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="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> <vocation id="5" name="Mega Sorcerer" description="Mega Sorcerer" needpremium="1" gaincap="10" gainhp="5" gainmana="37" gainhpticks="1" gainhpamount="700" gainmanaticks="1" gainmanaamount="1200" manamultiplier="1.1" attackspeed="120" soulmax="500" gainsoulticks="50" fromvoc="1" 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.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="Mega Druid" description="Mega Druid" needpremium="1" gaincap="10" gainhp="5" gainmana="37" gainhpticks="1" gainhpamount="700" gainmanaticks="1" gainmanaamount="1200" manamultiplier="1.1" attackspeed="120" soulmax="500" gainsoulticks="50" fromvoc="2" 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.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="7" name="Mega Paladin" description="Mega Paladin" needpremium="1" gaincap="10" gainhp="22" gainmana="15" gainhpticks="1" gainhpamount="950" gainmanaticks="1" gainmanaamount="950" manamultiplier="1.4" attackspeed="135" soulmax="500" gainsoulticks="50" 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.1" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> <vocation id="8" name="Mega Knight" description="Mega Knight" needpremium="1" gaincap="10" gainhp="32" gainmana="5" gainhpticks="1" gainhpamount="1200" gainmanaticks="1" gainmanaamount="700" manamultiplier="3.0" attackspeed="125" soulmax="500" gainsoulticks="50" fromvoc="4" 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.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> <vocation id="9" name="Extreme Sorcerer" description="Extreme Sorcerer" needpremium="1" gaincap="10" gainhp="5" gainmana="37" gainhpticks="1" gainhpamount="900" gainmanaticks="1" gainmanaamount="1400" manamultiplier="1.1" attackspeed="80" soulmax="750" gainsoulticks="50" fromvoc="1" 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.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="10" name="Extreme Druid" description="Extreme Druid" needpremium="1" gaincap="10" gainhp="5" gainmana="37" gainhpticks="1" gainhpamount="900" gainmanaticks="1" gainmanaamount="1400" manamultiplier="1.1" attackspeed="80" soulmax="750" gainsoulticks="50" fromvoc="2" 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.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="11" name="Extreme Paladin" description="Extreme Paladin" needpremium="1" gaincap="10" gainhp="22" gainmana="15" gainhpticks="1" gainhpamount="1150" gainmanaticks="1" gainmanaamount="1150" manamultiplier="1.4" attackspeed="95" soulmax="750" gainsoulticks="50" 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.1" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> <vocation id="12" name="Extreme Knight" description="Extreme Knight" needpremium="1" gaincap="10" gainhp="32" gainmana="5" gainhpticks="1" gainhpamount="1400" gainmanaticks="1" gainmanaamount="900" manamultiplier="3.0" attackspeed="85" soulmax="750" gainsoulticks="50" fromvoc="4" 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.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> <vocation id="13" name="Divine Sorcerer" description="Divine Sorcerer" needpremium="1" gaincap="10" gainhp="5" gainmana="37" gainhpticks="1" gainhpamount="1100" gainmanaticks="1" gainmanaamount="1600" manamultiplier="1.1" attackspeed="60" soulmax="1000" gainsoulticks="50" fromvoc="1" 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.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="14" name="Divine Druid" description="Divine Druid" needpremium="1" gaincap="10" gainhp="5" gainmana="37" gainhpticks="1" gainhpamount="1100" gainmanaticks="1" gainmanaamount="1600" manamultiplier="1.1" attackspeed="60" soulmax="1000" gainsoulticks="50" fromvoc="2" 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.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="15" name="Divine Paladin" description="Divine Paladin" needpremium="1" gaincap="10" gainhp="22" gainmana="15" gainhpticks="1" gainhpamount="1350" gainmanaticks="1" gainmanaamount="1350" manamultiplier="1.4" attackspeed="75" soulmax="1000" gainsoulticks="50" 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.1" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> <vocation id="16" name="Divine Knight" description="Divine Knight" needpremium="1" gaincap="10" gainhp="32" gainmana="5" gainhpticks="1" gainhpamount="1600" gainmanaticks="1" gainmanaamount="1100" manamultiplier="3.0" attackspeed="65" soulmax="1000" gainsoulticks="50" fromvoc="4" 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.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> </vocations> Quest Promotion (Action) Citar local storage = 23232 function onUse(cid, item, fromPosition, itemEx, toPosition) if getPlayerStorageValue(cid, storage) < 1 then if getPlayerVocation(cid) > 4 then doPlayerSetVocation(cid, getPlayerVocation(cid)+4) doPlayerSendTextMessage(cid, 25, "Parabens, voce foi promovido!") doPlayerSetStorageValue(cid, storage, 1) else doPlayerSendCancel(cid, "Voce precisa ser promovido pra se promover novamente.") end else doPlayerSendCancel(cid, "The chest is empty.") end return true end Editado Outubro 9, 2021 4 anos por Doidodepeda (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.