REUYIEUWYEEUIOWUEWIO, verdadee !! :DD
info
Grupo: Conde
Registrado: 30/06/11
Posts: 631
Reputação: +371
Char no Tibia: Warrior of Mort

Se o script funciona perfeitamente como talkaction, como action não sera o contrario:
data/actions/script, duplica um arquivo e nomeia para "resetquest" e cole o comando alterado pelo @Duuh...
function onUse(cid, item, fromPosition, itemEx, toPosition) if getPlayerVocation(cid) == 13 and getPlayerLevel(cid) ~= 510 then doPlayerSetVocation(cid, 22) doPlayerAddExp(cid, -(getPlayerExperience(cid)-getExperienceForLevel(8))) setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+185) setCreatureMaxMana(cid, getCreatureMaxMana(cid)+35) doPlayerSetMaxCapacity(cid, 435) doPlayerAddHealth(cid, -getPlayerHealth(cid)+185) doPlayerAddMana(cid, -getPlayerMana(cid)+35) doSendMagicEffect(getCreaturePosition(cid), 13) 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))) setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+185) setCreatureMaxMana(cid, getCreatureMaxMana(cid)+35) doPlayerSetMaxCapacity(cid, 435) doPlayerAddHealth(cid, -getPlayerHealth(cid)+185) doPlayerAddMana(cid, -getPlayerMana(cid)+35) doSendMagicEffect(getCreaturePosition(cid), 13) doSendAnimatedText(getPlayerPosition(cid), "Downgraded!", TEXTCOLOR_ORANGE) doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "A força dos Deuses te acompanham e você concluiu seu primeiro reset.") elseif getPlayerVocation(cid) == 15 and getPlayerLevel(cid) ~= 250 then doPlayerSetVocation(cid, 22) doPlayerAddExp(cid, -(getPlayerExperience(cid)-getExperienceForLevel(8))) setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+185) setCreatureMaxMana(cid, getCreatureMaxMana(cid)+35) doPlayerSetMaxCapacity(cid, 435) doPlayerAddHealth(cid, -getPlayerHealth(cid)+185) doPlayerAddMana(cid, -getPlayerMana(cid)+35) doSendMagicEffect(getCreaturePosition(cid), 13) doSendAnimatedText(getPlayerPosition(cid), "Downgraded!", TEXTCOLOR_ORANGE) doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "A força dos Deuses te acompanham e você concluiu seu primeiro reset.") elseif getPlayerVocation(cid) == 16 and getPlayerLevel(cid) ~= 510 then doPlayerSetVocation(cid, 19) doPlayerAddExp(cid, -(getPlayerExperience(cid)-getExperienceForLevel(8))) setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+185) setCreatureMaxMana(cid, getCreatureMaxMana(cid)+35) doPlayerSetMaxCapacity(cid, 435) doPlayerAddHealth(cid, -getPlayerHealth(cid)+185) doPlayerAddMana(cid, -getPlayerMana(cid)+35) doSendMagicEffect(getCreaturePosition(cid), 13) doSendAnimatedText(getPlayerPosition(cid), "Downgraded!", TEXTCOLOR_ORANGE) doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "A força dos Deuses te acompanham e você concluiu seu primeiro reset.") else doPlayerSendCancel(cid, "Você não pode mais Resetar!") end return TRUE end
Em actions.xml cole a tag:
<action actionid="2290" event="script" value="resetquest.lua"/>
Agora com seu mapa editor coloque o actionid=2290 no baú desejado!
Se o script funciona perfeitamente como talkaction, como action não sera o contrario:
data/actions/script, duplica um arquivo e nomeia para "resetquest" e cole o comando alterado pelo @Duuh...
function onUse(cid, item, fromPosition, itemEx, toPosition) if getPlayerVocation(cid) == 13 and getPlayerLevel(cid) ~= 510 then doPlayerSetVocation(cid, 22) doPlayerAddExp(cid, -(getPlayerExperience(cid)-getExperienceForLevel(8))) setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+185) setCreatureMaxMana(cid, getCreatureMaxMana(cid)+35) doPlayerSetMaxCapacity(cid, 435) doPlayerAddHealth(cid, -getPlayerHealth(cid)+185) doPlayerAddMana(cid, -getPlayerMana(cid)+35) doSendMagicEffect(getCreaturePosition(cid), 13) 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))) setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+185) setCreatureMaxMana(cid, getCreatureMaxMana(cid)+35) doPlayerSetMaxCapacity(cid, 435) doPlayerAddHealth(cid, -getPlayerHealth(cid)+185) doPlayerAddMana(cid, -getPlayerMana(cid)+35) doSendMagicEffect(getCreaturePosition(cid), 13) doSendAnimatedText(getPlayerPosition(cid), "Downgraded!", TEXTCOLOR_ORANGE) doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "A força dos Deuses te acompanham e você concluiu seu primeiro reset.") elseif getPlayerVocation(cid) == 15 and getPlayerLevel(cid) ~= 250 then doPlayerSetVocation(cid, 22) doPlayerAddExp(cid, -(getPlayerExperience(cid)-getExperienceForLevel(8))) setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+185) setCreatureMaxMana(cid, getCreatureMaxMana(cid)+35) doPlayerSetMaxCapacity(cid, 435) doPlayerAddHealth(cid, -getPlayerHealth(cid)+185) doPlayerAddMana(cid, -getPlayerMana(cid)+35) doSendMagicEffect(getCreaturePosition(cid), 13) doSendAnimatedText(getPlayerPosition(cid), "Downgraded!", TEXTCOLOR_ORANGE) doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "A força dos Deuses te acompanham e você concluiu seu primeiro reset.") elseif getPlayerVocation(cid) == 16 and getPlayerLevel(cid) ~= 510 then doPlayerSetVocation(cid, 19) doPlayerAddExp(cid, -(getPlayerExperience(cid)-getExperienceForLevel(8))) setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+185) setCreatureMaxMana(cid, getCreatureMaxMana(cid)+35) doPlayerSetMaxCapacity(cid, 435) doPlayerAddHealth(cid, -getPlayerHealth(cid)+185) doPlayerAddMana(cid, -getPlayerMana(cid)+35) doSendMagicEffect(getCreaturePosition(cid), 13) doSendAnimatedText(getPlayerPosition(cid), "Downgraded!", TEXTCOLOR_ORANGE) doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "A força dos Deuses te acompanham e você concluiu seu primeiro reset.") else doPlayerSendCancel(cid, "Você não pode mais Resetar!") end return TRUE end
Em actions.xml cole a tag:
<action actionid="2290" event="script" value="resetquest.lua"/>
Agora com seu mapa editor coloque o actionid=2290 no baú desejado!
esta resetando, mudando a vocação só não esta voltando a life & mana, como se fosse de level 8 ;/
e ainda aparece uma barrinha de life em cima do char maior doque a do normal KK ;/
info
Grupo: Conde
Registrado: 30/06/11
Posts: 631
Reputação: +371
Char no Tibia: Warrior of Mort

tão por talk não tava funcionando...
dei uma modificada, testa aew:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerVocation(cid) == 13 and getPlayerLevel(cid) ~= 510 then
doPlayerSetVocation(cid, 22)
doPlayerAddExp(cid, -(getPlayerExperience(cid)-getExperienceForLevel(8)))
doPlayerAddHealth(cid, -getPlayerHealth(cid)+185)
doPlayerAddMana(cid, -getPlayerMana(cid)+35)
setCreatureMaxHealth(cid, 185)
setCreatureMaxMana(cid, 35)
doPlayerSetMaxCapacity(cid, 435)
doSendMagicEffect(getCreaturePosition(cid), 13)
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, 185)
setCreatureMaxMana(cid, 35)
doPlayerSetMaxCapacity(cid, 435)
doSendMagicEffect(getCreaturePosition(cid), 13)
doSendAnimatedText(getPlayerPosition(cid), "Downgraded!", TEXTCOLOR_ORANGE)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "A força dos Deuses te acompanham e você concluiu seu primeiro reset.")
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, 185)
setCreatureMaxMana(cid, 35)
doPlayerSetMaxCapacity(cid, 435)
doSendMagicEffect(getCreaturePosition(cid), 13)
doSendAnimatedText(getPlayerPosition(cid), "Downgraded!", TEXTCOLOR_ORANGE)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "A força dos Deuses te acompanham e você concluiu seu primeiro reset.")
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, 185)
setCreatureMaxMana(cid, 35)
doPlayerSetMaxCapacity(cid, 435)
doSendMagicEffect(getCreaturePosition(cid), 13)
doSendAnimatedText(getPlayerPosition(cid), "Downgraded!", TEXTCOLOR_ORANGE)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "A força dos Deuses te acompanham e você concluiu seu primeiro reset.")
else
doPlayerSendCancel(cid, "Você não pode mais Resetar!")
end
return TRUE
end
tão por talk não tava funcionando...
dei uma modificada, testa aew:
function onUse(cid, item, fromPosition, itemEx, toPosition) if getPlayerVocation(cid) == 13 and getPlayerLevel(cid) ~= 510 then doPlayerSetVocation(cid, 22) doPlayerAddExp(cid, -(getPlayerExperience(cid)-getExperienceForLevel(8))) doPlayerAddHealth(cid, -getPlayerHealth(cid)+185) doPlayerAddMana(cid, -getPlayerMana(cid)+35) setCreatureMaxHealth(cid, 185) setCreatureMaxMana(cid, 35) doPlayerSetMaxCapacity(cid, 435) doSendMagicEffect(getCreaturePosition(cid), 13) 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, 185) setCreatureMaxMana(cid, 35) doPlayerSetMaxCapacity(cid, 435) doSendMagicEffect(getCreaturePosition(cid), 13) doSendAnimatedText(getPlayerPosition(cid), "Downgraded!", TEXTCOLOR_ORANGE) doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "A força dos Deuses te acompanham e você concluiu seu primeiro reset.") 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, 185) setCreatureMaxMana(cid, 35) doPlayerSetMaxCapacity(cid, 435) doSendMagicEffect(getCreaturePosition(cid), 13) doSendAnimatedText(getPlayerPosition(cid), "Downgraded!", TEXTCOLOR_ORANGE) doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "A força dos Deuses te acompanham e você concluiu seu primeiro reset.") 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, 185) setCreatureMaxMana(cid, 35) doPlayerSetMaxCapacity(cid, 435) doSendMagicEffect(getCreaturePosition(cid), 13) doSendAnimatedText(getPlayerPosition(cid), "Downgraded!", TEXTCOLOR_ORANGE) doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "A força dos Deuses te acompanham e você concluiu seu primeiro reset.") else doPlayerSendCancel(cid, "Você não pode mais Resetar!") end return TRUE end
só troquei ali pra resetar lvl 17 pra nao demorar tanto, mais fica assim ;/ cresce um pedaço do lado da life em cima do char.
e a mana & life e skills, ficam o mesmo do level que reseta !!
Jhon992 se você preferir, pode apagar, tudo esses outros 3 resets de baixo 1 só ta bom.
exemplo : 16 ~ 19 , 15 ~ 22 , 14 ~ 21 deixa só o primeiro 13 ~ 22.
)
info
Grupo: Herói
Registrado: 20/05/10
Posts: 3.4k
Reputação: +1.5k
Gênero: Masculino

tem que colocar para kickar o player quando ele abre o bau
info
Grupo: Conde
Registrado: 30/06/11
Posts: 631
Reputação: +371
Char no Tibia: Warrior of Mort

function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerVocation(cid) == 13 and getPlayerLevel(cid) ~= 510 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)
for id=0, 8 do
db.executeQuery("UPDATE `player_skills` SET `value` = ".. 10 .." WHERE `player_id` = ".. getPlayerGUID(cid) .. " 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)
for id=0, 8 do
db.executeQuery("UPDATE `player_skills` SET `value` = ".. 10 .." WHERE `player_id` = ".. getPlayerGUID(cid) .. " and `skillid` = ".. id ..";")
end
doSendAnimatedText(getPlayerPosition(cid), "Downgraded!", TEXTCOLOR_ORANGE)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "A força dos Deuses te acompanham e você concluiu seu primeiro reset.")
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)
for id=0, 8 do
db.executeQuery("UPDATE `player_skills` SET `value` = ".. 10 .." WHERE `player_id` = ".. getPlayerGUID(cid) .. " and `skillid` = ".. id ..";")
end
doSendAnimatedText(getPlayerPosition(cid), "Downgraded!", TEXTCOLOR_ORANGE)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "A força dos Deuses te acompanham e você concluiu seu primeiro reset.")
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)
for id=0, 8 do
db.executeQuery("UPDATE `player_skills` SET `value` = ".. 10 .." WHERE `player_id` = ".. getPlayerGUID(cid) .. " and `skillid` = ".. id ..";")
end
doSendAnimatedText(getPlayerPosition(cid), "Downgraded!", TEXTCOLOR_ORANGE)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "A força dos Deuses te acompanham e você concluiu seu primeiro reset.")
else
doPlayerSendCancel(cid, "Você não pode mais Resetar!")
end
return TRUE
end
function onUse(cid, item, fromPosition, itemEx, toPosition) if getPlayerVocation(cid) == 13 and getPlayerLevel(cid) ~= 510 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) for id=0, 8 do db.executeQuery("UPDATE `player_skills` SET `value` = ".. 10 .." WHERE `player_id` = ".. getPlayerGUID(cid) .. " 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) for id=0, 8 do db.executeQuery("UPDATE `player_skills` SET `value` = ".. 10 .." WHERE `player_id` = ".. getPlayerGUID(cid) .. " and `skillid` = ".. id ..";") end doSendAnimatedText(getPlayerPosition(cid), "Downgraded!", TEXTCOLOR_ORANGE) doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "A força dos Deuses te acompanham e você concluiu seu primeiro reset.") 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) for id=0, 8 do db.executeQuery("UPDATE `player_skills` SET `value` = ".. 10 .." WHERE `player_id` = ".. getPlayerGUID(cid) .. " and `skillid` = ".. id ..";") end doSendAnimatedText(getPlayerPosition(cid), "Downgraded!", TEXTCOLOR_ORANGE) doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "A força dos Deuses te acompanham e você concluiu seu primeiro reset.") 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) for id=0, 8 do db.executeQuery("UPDATE `player_skills` SET `value` = ".. 10 .." WHERE `player_id` = ".. getPlayerGUID(cid) .. " and `skillid` = ".. id ..";") end doSendAnimatedText(getPlayerPosition(cid), "Downgraded!", TEXTCOLOR_ORANGE) doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "A força dos Deuses te acompanham e você concluiu seu primeiro reset.") else doPlayerSendCancel(cid, "Você não pode mais Resetar!") end return TRUE end
ficou a mesma coisa, só que quando eu reseto agora, minha life fica no preto , dai relogo , e nasce aquela barra gigande de life verde em cima do meu char ;/
info
Grupo: Conde
Registrado: 30/06/11
Posts: 631
Reputação: +371
Char no Tibia: Warrior of Mort

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
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
manoooo namoral você é um genio valeu pego certin, aqui ta dando erro pra dar REP+ ta dizendo que ja dei hoje. quando sair esse erro. tedo seu REP+ e pro DuuhCarvalho tambem !, FUNCIONANDO PERFEITAMENTE. Não sei como faz pros adm fexar o topico se alguem souber ai pode avisar algum deles? fala que ja conseguiram arrumar o script pra mim ! e a duvida foi senada ! orbigado
)
info
Grupo: Conde
Registrado: 18/01/12
Posts: 988
Reputação: +327
Gênero: Masculino
Char no Tibia: Xerife Woody

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
Eu amo esse cara rsrs'
Sempre ajudando, Ele é o melhor (y'
Editado Março 7 por DuuhCarvalho
info
Grupo: Campones
Registrado: 04/01/12
Posts: 36
Reputação: 0
Char no Tibia: Sasuke

Ei nao fecha ainda nao eu kero saber como eu faço pra fazer vocaçoes vip sem aparecer no account manager e ke nao bug a vocaçao. eu fiz magias editadas eu to precisando muito plis




info
Grupo: Conde
Registrado: 18/01/12
Posts: 988
Reputação: +327
Gênero: Masculino
Char no Tibia: Xerife Woody
#Brigado
e a mina da foto é mt gostosa rsrs'
Mais que quiser usar o que postei em talkactions blls hehe