Boa noite! bom, procurei por isto em varios lugares e nao achei em nenhum
por favor, se a seção estiver errada, movam para a certa , pois não sei se este sistema é realmente uma action ou pode ser outra coisa... mas é o seguinte. vou explicar tudo detalhadamente para não ter erro...
no meu ot, existem varias promoções. o sistema vip está funcionando corretamente, e ele é um sistema por item.
o player compra o item no shopping , que no meu caso é um Holy falcon, editado com o nome de VIP 30 Dias, da use nele e então recebe em sua conta 30 dias de VIP.
Fiz um npc que só fala com players vips, e ele leva estes players para uma área vip.
Nesta área VIP eu preciso de um NPC que venda a nova Promotion para o player (que no caso é um item único configurável ) por alguns GOLD NUGGETS ao invez de GOLD COINS, (por exemplo um nightmare doll, id:11138) ou somente por dinheiro, mas no caso, para comprar esta promotion ele teria que ter uma moeda especial , ( no caso é uma gold nugget , editada. ID:2157) ou seja, o npc venderia a promotion para o player vip somente por uma quantidade de gold nuggets.
Porém, existe mais de uma promotion por vocation,
este é meu Vocations.XML
<!--?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="2000" 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"> </skill></formula></vocation> <vocation id="1" name="Sorcerer" description="a sorcerer" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="2" gainhpamount="5" gainmanaticks="2" gainmanaamount="5" manamultiplier="1.1" attackspeed="1500" soulmax="100" gainsoulticks="120" 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"> </skill></formula></vocation> <vocation id="2" name="Druid" description="a druid" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="2" gainhpamount="5" gainmanaticks="2" gainmanaamount="5" manamultiplier="1.1" attackspeed="1500" soulmax="100" gainsoulticks="120" 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"> </skill></formula></vocation> <vocation id="3" name="Paladin" description="a paladin" needpremium="0" gaincap="20" gainhp="10" gainmana="15" gainhpticks="2" gainhpamount="5" gainmanaticks="2" gainmanaamount="5" manamultiplier="1.4" attackspeed="1500" soulmax="100" gainsoulticks="120" fromvoc="3"> <formula meleedamage="1.0" distdamage="1.3" 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"> </skill></formula></vocation> <vocation id="4" name="Knight" description="a knight" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="1" gainhpamount="10" gainmanaticks="2" gainmanaamount="5" manamultiplier="3.0" attackspeed="1500" soulmax="100" gainsoulticks="120" fromvoc="4"> <formula meleedamage="1.2" 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"> </skill></formula></vocation> <vocation id="5" name="Master Sorcerer" description="a master sorcerer" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="2" gainhpamount="5" gainmanaticks="2" gainmanaamount="15" manamultiplier="1.1" attackspeed="1500" soulmax="200" gainsoulticks="15" 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"> </skill></formula></vocation> <vocation id="6" name="Elder Druid" description="an elder druid" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="2" gainhpamount="5" gainmanaticks="2" gainmanaamount="15" manamultiplier="1.1" attackspeed="1500" soulmax="200" gainsoulticks="15" 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"> </skill></formula></vocation> <vocation id="7" name="Royal Paladin" description="a royal paladin" needpremium="1" gaincap="20" gainhp="10" gainmana="15" gainhpticks="2" gainhpamount="10" gainmanaticks="1" gainmanaamount="15" manamultiplier="1.4" attackspeed="1500" soulmax="200" gainsoulticks="15" fromvoc="3" lessloss="30"> <formula meleedamage="1.0" distdamage="1.3" 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"> </skill></formula></vocation> <vocation id="8" name="Elite Knight" description="an elite knight" needpremium="1" gaincap="35" gainhp="15" gainmana="5" gainhpticks="1" gainhpamount="20" gainmanaticks="1" gainmanaamount="15" manamultiplier="3.0" attackspeed="1500" soulmax="200" gainsoulticks="15" fromvoc="4" lessloss="30"> <formula meleedamage="1.2" 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"> </skill></formula></vocation>[/b] [b]<vocation id="9" name="Soul Sorcerer" description="a soul sorcerer" needpremium="1" gaincap="11" gainhp="6" gainmana="35" gainhpticks="4" gainhpamount="5" gainmanaticks="2" gainmanaamount="25" manamultiplier="1.1" attackspeed="2000" soulmax="250" gainsoulticks="15" fromvoc="5" lessloss="50"> <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"> </skill></formula></vocation> <vocation id="10" name="Shamanic Druid" description="a shamanic druid" needpremium="1" gaincap="11" gainhp="6" gainmana="35" gainhpticks="4" gainhpamount="5" gainmanaticks="2" gainmanaamount="25" manamultiplier="1.1" attackspeed="2000" soulmax="250" gainsoulticks="15" fromvoc="6" lessloss="50"> <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"> </skill></formula></vocation> <vocation id="11" name="Bright Paladin" description="a bright paladin" needpremium="1" gaincap="22" gainhp="11" gainmana="20" gainhpticks="3" gainhpamount="10" gainmanaticks="3" gainmanaamount="25" manamultiplier="1.4" attackspeed="1300" soulmax="200" gainsoulticks="15" fromvoc="7" lessloss="50"> <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"> </skill></formula></vocation> <vocation id="12" name="Blade Knight" description="a blade knight" needpremium="1" gaincap="47" gainhp="25" gainmana="6" gainhpticks="1" gainhpamount="20" gainmanaticks="4" gainmanaamount="25" manamultiplier="3.0" attackspeed="1300" soulmax="200" gainsoulticks="15" fromvoc="8" lessloss="50"> <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"> </skill></formula></vocation> <vocation id="13" name="Soul Master Sorcerer" description="a soul master sorcerer" needpremium="1" gaincap="12" gainhp="7" gainmana="40" gainhpticks="4" gainhpamount="5" gainmanaticks="2" gainmanaamount="35" manamultiplier="1.1" attackspeed="2000" soulmax="300" gainsoulticks="15" fromvoc="9" lessloss="60"> <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"> </skill></formula></vocation> <vocation id="14" name="Shamanic Elder Druid" description="a shamanic elder druid" needpremium="1" gaincap="12" gainhp="7" gainmana="40" gainhpticks="4" gainhpamount="5" gainmanaticks="2" gainmanaamount="35" manamultiplier="1.1" attackspeed="2000" soulmax="300" gainsoulticks="15" fromvoc="10" lessloss="60"> <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"> </skill></formula></vocation> <vocation id="15" name="Bright Royal Paladin" description="a bright royal paladin" needpremium="1" gaincap="24" gainhp="12" gainmana="25" gainhpticks="3" gainhpamount="10" gainmanaticks="3" gainmanaamount="35" manamultiplier="1.4" attackspeed="1100" soulmax="200" gainsoulticks="15" fromvoc="11" lessloss="60"> <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"> </skill></formula></vocation> <vocation id="16" name="Blade Elite Knight" description="a blade elite knight" needpremium="1" gaincap="49" gainhp="35" gainmana="7" gainhpticks="1" gainhpamount="20" gainmanaticks="4" gainmanaamount="35" manamultiplier="3.0" attackspeed="1100" soulmax="200" gainsoulticks="15" fromvoc="12" lessloss="60"> <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"> </skill></formula></vocation> <vocation id="17" name="Infernatil Soul Sorcerer" description="an infernatil soul sorcerer" needpremium="1" gaincap="13" gainhp="8" gainmana="45" gainhpticks="4" gainhpamount="5" gainmanaticks="2" gainmanaamount="45" manamultiplier="1.1" attackspeed="2000" soulmax="350" gainsoulticks="15" fromvoc="13" lessloss="70"> <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"> </skill></formula></vocation> <vocation id="18" name="Ancient Shamanic Druid" description="an ancient shamanic druid" needpremium="1" gaincap="13" gainhp="8" gainmana="45" gainhpticks="4" gainhpamount="5" gainmanaticks="2" gainmanaamount="45" manamultiplier="1.1" attackspeed="2000" soulmax="350" gainsoulticks="15" fromvoc="14" lessloss="70"> <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"> </skill></formula></vocation> <vocation id="19" name="Divine Bright Paladin" description="a divine bright paladin" needpremium="1" gaincap="23" gainhp="13" gainmana="30" gainhpticks="3" gainhpamount="10" gainmanaticks="3" gainmanaamount="45" manamultiplier="1.4" attackspeed="900" soulmax="200" gainsoulticks="15" fromvoc="15" lessloss="70"> <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"> </skill></formula></vocation> <vocation id="20" name="Gladiator Blade Knight" description="a gladiator blade knight" needpremium="1" gaincap="51" gainhp="45" gainmana="9" gainhpticks="8" gainhpamount="20" gainmanaticks="4" gainmanaamount="45" manamultiplier="3.0" attackspeed="900" soulmax="200" gainsoulticks="15" fromvoc="16" lessloss="70"> <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"> </skill></formula></vocation> --> </vocations>[/b] [b]
Então resumindo. Preciso de um NPC que:
Venda a promotion para o player por GOLD NUGGETS ao invez de GOLD COINS, e que venda estas promotions tanto por um ITEM USAVEL, ou simplesmente como o npc queen eloise, que vende a promotion por 20k, porem ao invez de 20k, seriam alguns GOLD NUGGETS !
Desde já agradeço muito ! por favor, preciso urgente deste script, só falta isto para meu ot ficar pronto.
Dou todos meus Reps++ OBRIGADO !!