Ir para conteúdo

Alguem Pode Me Ajudar Com Esse Script De Promot?


pok302010

Posts Recomendados

Aee galera no meu server de pokemon tem um sistema de reborn quando o player faz o 1º reborn era para ele mudar para a vocação de elite trainer e quando ele fizesse o segundo(que era para ser o MAXIMO de reborns)era para para ele evoluir para master trainer.

Mais ta dando pra dar quantos reborns quiser e ele num muda a vocação,e tbm pra dar reborn tenque ser lvl 150 eu quero mudar isso para 350.

alguém pode me ajudar a arrumar esse script?

 

 

O reborn.lua

 

 

function onSay(cid, words, param)

local level = 150 --level pra ser resetado

local RemainingLvl = 15 --lvl que ele ficara depois do reset

local pid = getPlayerGUID(cid)

local pos2 = getPlayerPosition(cid)

 

function addReset(cid)

resets = getResets(cid)

if resets < 2 then

setPlayerStorageValue(cid,1020,resets+1)

else

doPlayerSendCancel(cid, "Desculpe, voce ja tem o numero maximo de reborns.")

doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)

end

 

return true

end

 

function getResets(cid)

resets = getPlayerStorageValue(cid,1020)

if resets < 2 then

resets = 2

end

return resets

end

 

if getPlayerLevel(cid) >= level then

addReset(cid)

doTeleportThing(cid, {x == 1054, y == 1050, z == 7})

doSendMagicEffect(pos2, CONST_ME_TELEPORT)

doPlayerAddItem(cid,7891, 1)

doPlayerAddItem(cid,2160,100)

doPlayerPopupFYI(cid,"Voce renasceu, voce tem "..getResets(cid).." reborns, no maximo de 2.")

doRemoveCreature(cid)

db.executeQuery("UPDATE `players` SET `level` = "..RemainingLvl..", `experience` = 0 WHERE `id` = "..pid)

 

else

doPlayerSendCancel(cid, "voce precisa ser level "..level.." ou mais para renascer.")

doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)

end

 

return TRUE

end

 

 

 

 

e o vocations.xml

 

 

<?xml version="1.0" encoding="UTF-8"?>

<vocations>

<vocation id="0" name="Pokemon Trainer" description="a pokemon trainer" needpremium="0" gaincap="0" gainhp="40" gainmana="0" gainhpticks="0" gainhpamount="0" gainmanaticks="0" gainmanaamount="0" manamultiplier="1.1" attackspeed="99999000" soulmax="151" gainsoulticks="-1" fromvoc="1">

<formula meleeDamage="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" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.0" experience="1.0"/>

</vocation>

<vocation id="1" name="Pokemon Trainer" description="a pokemon trainer" needpremium="0" gaincap="0" gainhp="40" gainmana="0" gainhpticks="0" gainhpamount="0" gainmanaticks="0" gainmanaamount="0" manamultiplier="1.1" attackspeed="99999000" soulmax="151" gainsoulticks="-1" fromvoc="1" lessloss="0">

<formula meleeDamage="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" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.0" experience="1.0"/>

</vocation>

<vocation id="2" name="Elite Trainer" description="an elite trainer" needpremium="0" gaincap="0" gainhp="50" gainmana="0" gainhpticks="0" gainhpamount="0" gainmanaticks="0" gainmanaamount="0" manamultiplier="1.1" attackspeed="99999000" soulmax="151" gainsoulticks="-1" fromvoc="1" lessloss="0">

<formula meleeDamage="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" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.0" experience="1.0"/>

</vocation>

<vocation id="3" name="Master Trainer" description="a master trainer" needpremium="0" gaincap="0" gainhp="60" gainmana="1" gainhpticks="0" gainhpamount="0" gainmanaticks="0" gainmanaamount="0" manamultiplier="1.1" attackspeed="99999000" soulmax="151" gainsoulticks="-1" fromvoc="1" lessloss="0">

<formula meleeDamage="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" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.0" experience="1.0"/>

</vocation>

<vocation id="4" name="Royal Paladin" description="a royal paladin" needpremium="1" gaincap="20" gainhp="10" gainmana="15" gainhpticks="3" gainhpamount="10" gainmanaticks="3" gainmanaamount="10" manamultiplier="1.4" attackspeed="2000" 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.1" shielding="1.1" fishing="1.1" experience="1.0"/>

</vocation>

<vocation id="5" name="Elite Knight" description="an elite knight" needpremium="1" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="10" gainmanaticks="4" gainmanaamount="10" manamultiplier="3.0" attackspeed="2000" soulmax="200" gainsoulticks="15" 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="6" name="Elite Knight" description="an elite knight" needpremium="1" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="10" gainmanaticks="4" gainmanaamount="10" manamultiplier="3.0" attackspeed="2000" soulmax="200" gainsoulticks="15" 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="7" name="Elite Knight" description="an elite knight" needpremium="1" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="10" gainmanaticks="4" gainmanaamount="10" manamultiplier="3.0" attackspeed="2000" soulmax="200" gainsoulticks="15" 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="8" name="Elite Knight" description="an elite knight" needpremium="1" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="10" gainmanaticks="4" gainmanaamount="10" manamultiplier="3.0" attackspeed="2000" soulmax="200" gainsoulticks="15" 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="Epic Master Sorcerer" description="an epic master sorcerer" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" soulmax="200" 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"/>

</vocation>

<vocation id="10" name="Epic Elder Druid" description="an epic elder druid" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" soulmax="200" 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"/>

</vocation>

<vocation id="11" name="Epic Royal Paladin" description="an epic royal paladin" needpremium="0" gaincap="20" gainhp="10" gainmana="15" gainhpticks="3" gainhpamount="10" gainmanaticks="3" gainmanaamount="10" manamultiplier="1.4" attackspeed="2000" 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"/>

</vocation>

<vocation id="12" name="Epic Elite Knight" description="an epic elite knight" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="8" gainhpamount="10" gainmanaticks="4" gainmanaamount="10" manamultiplier="3.0" attackspeed="2000" 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"/>

</vocation>

-->

</vocations>

 

 

 

 

aee galera vlw!!

quem poder me ajudar eu agradecerei muito!!

VLWW

Editado por pok302010
Link para o comentário
Compartilhar em outros sites

Olha aqui rapazinho,eu até pensei em te ajudar,mais quando vi sua atutide infantil de chamar o cara que tentou te ajudar de noob,mesmo não sendo oque você realmente queria,as vezes as pessoas não ententem e você acha o cara de noob?,se você é tão bom porque não faz sozinho? para que vir pedir ajuda em uma coisa tão simples? ninguem é obrigado a ajudar,saiba disso.além disso seu tópico ta muito mal formatado.

 

Flw bonzão

Link para o comentário
Compartilhar em outros sites

ow pok302010

 

nao sei se voce percebeu mais voce falo isso no tópico

 

e tbm pra dar reborn tenque ser lvl 150 eu quero mudar isso para 350.

 

ele respondeu a sua duvida :x

 

se vc nao tinha duvida sobre isso nao deveria ter postado :D

Link para o comentário
Compartilhar em outros sites

Aee galera eu so chamei o Subwat de noob por ele ter indireramente me chamado de analfabeto,ok?

Por isso eu o chamei de noob e por nada mais!

 

E quanto oa Sazu,eu sabia fazer mais como não tenho um conhecimento muito amplo na area de SCRIPTs eu preferi perguntar.

Ai você que esta lendo essa mensagen vai pensar "Mais ele respondeu a sua duvida..."

Para min,me chamar indireramente de analfabeto não é ajudar,é zonbar!

Contudo na raiva eu o chamei de noob,mais não foi a minha intenção,pesso desculpas!

 

E para o Vodkart,se puder me ajudar eu agradeço!

Editado por pok302010
Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...