Sera que tem como alguem ajudar a configurar esse script?
ele estava todo bugado dai o "Beek" configuro ele pra mim mais não esta 100% quando você clica na quest Você reseta,
mais a life & mana não fica que nem de lvl 8 continua o mesmo que tava antes de resetar ! se alguem poder ajudar Levam eu REP+
servidor baiak
versao 8.6
link ofidicail aonde axei : http://www.xtibia.co...a-de-reset-xml/
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
end
mais tarde eu volto para dar o REP+
^^