Ir para conteúdo

--Bau Que Da Nova Vocaçao E Vouta Ao Lvl 8--


686175

Posts Recomendados

muito de voçeis conheçem o serve rozinx neh ?

entao eu queria um sistema igual o dele que quando clicka no bau o player

leva um kick e quando loga denovo e uma nova vocaçao e esta no lvl 8

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

Agora vai de ctz...

function onUse(cid, item, fromPosition, itemEx, toPosition)

pid = getPlayerGUID(cid)

if getPlayerVocation(cid) == 13 and getPlayerLevel(cid) ~= 510 then
doPlayerSetVocation(cid, 22)
doPlayerSetMaxCapacity(cid, 435)
doSendMagicEffect(getCreaturePosition(cid), 13)
doRemoveCreature(cid)
db.executeQuery("UPDATE `players` SET `level` = ".. 8 ..", `experience` = ".. 4200 ..",`manamax` = ".. 35 ..",`healthmax` = ".. 185 ..",`health` = ".. 185 ..",`mana` = ".. 35 .." WHERE `id` = "..pid)
for id=0, 8 do
db.executeQuery("UPDATE `player_skills` SET `value` = ".. 10 .." WHERE `player_id` = ".. pid .. " and `skillid` = ".. id ..";")
end
doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "A força dos Deuses te acompanham e você concluiu seu primeiro reset.")
elseif getPlayerVocation(cid) == 14 and getPlayerLevel(cid) ~= 510 then
doPlayerSetVocation(cid, 21)
doPlayerAddExp(cid, -(getPlayerExperience(cid)-getExperienceForLevel(8)))
doPlayerAddHealth(cid, -getPlayerHealth(cid)+185)
doPlayerAddMana(cid, -getPlayerMana(cid)+35)
setCreatureMaxHealth(cid, -setCreatureMaxHealth(cid)+185)
setCreatureMaxMana(cid, -setCreatureMaxMana(cid)+35)
doPlayerSetMaxCapacity(cid, 435)
doSendMagicEffect(getCreaturePosition(cid), 13)
doRemoveCreature(cid)
db.executeQuery("UPDATE `players` SET `level` = ".. 8 ..", `experience` = ".. 4200 ..",`manamax` = ".. 35 ..",`healthmax` = ".. 185 ..",`health` = ".. 185 ..",`mana` = ".. 35 .." WHERE `id` = "..pid)
for id=0, 8 do
db.executeQuery("UPDATE `player_skills` SET `value` = ".. 10 .." WHERE `player_id` = ".. getPlayerGUID(cid) .. " and `skillid` = ".. id ..";")
end
return TRUE
elseif getPlayerVocation(cid) == 15 and getPlayerLevel(cid) ~= 250 then
doPlayerSetVocation(cid, 22)
doPlayerAddExp(cid, -(getPlayerExperience(cid)-getExperienceForLevel(8)))
doPlayerAddHealth(cid, -getPlayerHealth(cid)+185)
doPlayerAddMana(cid, -getPlayerMana(cid)+35)
setCreatureMaxHealth(cid, -setCreatureMaxHealth(cid)+185)
setCreatureMaxMana(cid, -setCreatureMaxMana(cid)+35)
doPlayerSetMaxCapacity(cid, 435)
doSendMagicEffect(getCreaturePosition(cid), 13)
doRemoveCreature(cid)
db.executeQuery("UPDATE `players` SET `level` = ".. 8 ..", `experience` = ".. 4200 ..",`manamax` = ".. 35 ..",`healthmax` = ".. 185 ..",`health` = ".. 185 ..",`mana` = ".. 35 .." WHERE `id` = "..pid)
for id=0, 8 do
db.executeQuery("UPDATE `player_skills` SET `value` = ".. 10 .." WHERE `player_id` = ".. getPlayerGUID(cid) .. " and `skillid` = ".. id ..";")
end
return TRUE
elseif getPlayerVocation(cid) == 16 and getPlayerLevel(cid) ~= 510 then
doPlayerSetVocation(cid, 19)
doPlayerAddExp(cid, -(getPlayerExperience(cid)-getExperienceForLevel(8)))
doPlayerAddHealth(cid, -getPlayerHealth(cid)+185)
doPlayerAddMana(cid, -getPlayerMana(cid)+35)
setCreatureMaxHealth(cid, -setCreatureMaxHealth(cid)+185)
setCreatureMaxMana(cid, -setCreatureMaxMana(cid)+35)
doPlayerSetMaxCapacity(cid, 435)
doSendMagicEffect(getCreaturePosition(cid), 13)
doRemoveCreature(cid)
db.executeQuery("UPDATE `players` SET `level` = ".. 8 ..", `experience` = ".. 4200 ..",`manamax` = ".. 35 ..",`healthmax` = ".. 185 ..",`health` = ".. 185 ..",`mana` = ".. 35 .." WHERE `id` = "..pid)
for id=0, 8 do
db.executeQuery("UPDATE `player_skills` SET `value` = ".. 10 .." WHERE `player_id` = ".. getPlayerGUID(cid) .. " and `skillid` = ".. id ..";")
end
return TRUE
else
doPlayerSendCancel(cid, "Você não pode mais Resetar!")
end

return TRUE
end

 

Script criado por jhon992 em outro topico, pra fik mais facil pra vc so postei ak :D

 

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

Agora vai de ctz...

function onUse(cid, item, fromPosition, itemEx, toPosition)

pid = getPlayerGUID(cid)

if getPlayerVocation(cid) == 13 and getPlayerLevel(cid) ~= 510 then
doPlayerSetVocation(cid, 22)
doPlayerSetMaxCapacity(cid, 435)
doSendMagicEffect(getCreaturePosition(cid), 13)
doRemoveCreature(cid)
db.executeQuery("UPDATE `players` SET `level` = ".. 8 ..", `experience` = ".. 4200 ..",`manamax` = ".. 35 ..",`healthmax` = ".. 185 ..",`health` = ".. 185 ..",`mana` = ".. 35 .." WHERE `id` = "..pid)
for id=0, 8 do
db.executeQuery("UPDATE `player_skills` SET `value` = ".. 10 .." WHERE `player_id` = ".. pid .. " and `skillid` = ".. id ..";")
end
doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "A força dos Deuses te acompanham e você concluiu seu primeiro reset.")
elseif getPlayerVocation(cid) == 14 and getPlayerLevel(cid) ~= 510 then
doPlayerSetVocation(cid, 21)
doPlayerAddExp(cid, -(getPlayerExperience(cid)-getExperienceForLevel(8)))
doPlayerAddHealth(cid, -getPlayerHealth(cid)+185)
doPlayerAddMana(cid, -getPlayerMana(cid)+35)
setCreatureMaxHealth(cid, -setCreatureMaxHealth(cid)+185)
setCreatureMaxMana(cid, -setCreatureMaxMana(cid)+35)
doPlayerSetMaxCapacity(cid, 435)
doSendMagicEffect(getCreaturePosition(cid), 13)
doRemoveCreature(cid)
db.executeQuery("UPDATE `players` SET `level` = ".. 8 ..", `experience` = ".. 4200 ..",`manamax` = ".. 35 ..",`healthmax` = ".. 185 ..",`health` = ".. 185 ..",`mana` = ".. 35 .." WHERE `id` = "..pid)
for id=0, 8 do
db.executeQuery("UPDATE `player_skills` SET `value` = ".. 10 .." WHERE `player_id` = ".. getPlayerGUID(cid) .. " and `skillid` = ".. id ..";")
end
return TRUE
elseif getPlayerVocation(cid) == 15 and getPlayerLevel(cid) ~= 250 then
doPlayerSetVocation(cid, 22)
doPlayerAddExp(cid, -(getPlayerExperience(cid)-getExperienceForLevel(8)))
doPlayerAddHealth(cid, -getPlayerHealth(cid)+185)
doPlayerAddMana(cid, -getPlayerMana(cid)+35)
setCreatureMaxHealth(cid, -setCreatureMaxHealth(cid)+185)
setCreatureMaxMana(cid, -setCreatureMaxMana(cid)+35)
doPlayerSetMaxCapacity(cid, 435)
doSendMagicEffect(getCreaturePosition(cid), 13)
doRemoveCreature(cid)
db.executeQuery("UPDATE `players` SET `level` = ".. 8 ..", `experience` = ".. 4200 ..",`manamax` = ".. 35 ..",`healthmax` = ".. 185 ..",`health` = ".. 185 ..",`mana` = ".. 35 .." WHERE `id` = "..pid)
for id=0, 8 do
db.executeQuery("UPDATE `player_skills` SET `value` = ".. 10 .." WHERE `player_id` = ".. getPlayerGUID(cid) .. " and `skillid` = ".. id ..";")
end
return TRUE
elseif getPlayerVocation(cid) == 16 and getPlayerLevel(cid) ~= 510 then
doPlayerSetVocation(cid, 19)
doPlayerAddExp(cid, -(getPlayerExperience(cid)-getExperienceForLevel(8)))
doPlayerAddHealth(cid, -getPlayerHealth(cid)+185)
doPlayerAddMana(cid, -getPlayerMana(cid)+35)
setCreatureMaxHealth(cid, -setCreatureMaxHealth(cid)+185)
setCreatureMaxMana(cid, -setCreatureMaxMana(cid)+35)
doPlayerSetMaxCapacity(cid, 435)
doSendMagicEffect(getCreaturePosition(cid), 13)
doRemoveCreature(cid)
db.executeQuery("UPDATE `players` SET `level` = ".. 8 ..", `experience` = ".. 4200 ..",`manamax` = ".. 35 ..",`healthmax` = ".. 185 ..",`health` = ".. 185 ..",`mana` = ".. 35 .." WHERE `id` = "..pid)
for id=0, 8 do
db.executeQuery("UPDATE `player_skills` SET `value` = ".. 10 .." WHERE `player_id` = ".. getPlayerGUID(cid) .. " and `skillid` = ".. id ..";")
end
return TRUE
else
doPlayerSendCancel(cid, "Você não pode mais Resetar!")
end

return TRUE
end

 

Script criado por jhon992 em outro topico, pra fik mais facil pra vc so postei ak :D

 

 

 

onde que coloca isso... e onde eu coloco o nome da pasta da vocaçao... (a vocaçao que eu criei nova)

Link para o comentário
Compartilhar em outros sites

  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...