Ir para conteúdo
  • 0

Script Reverter Para Vocations


IsaqueTeixeira

Pergunta

Gente estou precisando de um script para reverter, por que no meu serve tem um de transformar mais quando fico deslogando e logando fica trocando de vocation.

essa é a minha de transform.

 

local config = {

--[vocation id] = { level, nova voc, looktype, efeito}

[1] = { 0, 2, 9, 108},

[2] = { 25, 3, 11, 108},

[3] = { 50, 4, 287, 108},

[4] = { 75, 5, 12, 108},

[5] = { 100, 6, 289, 108},

[6] = { 125, 7, 10, 30},

[7] = { 150, 8, 13, 30},

[8] = { 175, 9, 289, 30},

[9] = { 200, 10, 288, 30},

[10] = { 250, 10, 14, 30},

[11] = { 0, 12, 2, 108},

[12] = { 25, 13, 93, 108},

[13] = { 50, 14, 6, 108},

[14] = { 75, 15, 5, 108},

[15] = { 100, 16, 7, 108},

[16] = { 125, 17, 94, 110},

[17] = { 150, 18, 59, 110},

[18] = { 175, 19, 8, 110},

[19] = { 200, 20, 178, 110},

[20] = { 250, 20, 95, 110},

[21] = { 0, 22, 53, 194},

[22] = { 25, 23, 67, 194},

[23] = { 50, 24, 72, 194},

[24] = { 75, 25, 273, 194},

[25] = { 100, 26, 62, 194},

[26] = { 125, 27, 189, 194},

[27] = { 150, 28, 65, 194},

[28] = { 175, 29, 188, 194},

[29] = { 200, 30, 58, 194},

[30] = { 250, 30, 187, 194},

[31] = { 0, 32, 30, 191},

[32] = { 25, 33, 60, 191},

[33] = { 50, 34, 78, 191},

[34] = { 75, 35, 82, 191},

[35] = { 100, 36, 80, 191},

[36] = { 125, 37, 190, 191},

[37] = { 150, 38, 83, 191},

[38] = { 175, 39, 191, 191},

[39] = { 200, 40, 192, 191},

[40] = { 250, 40, 193, 191},

[41] = { 0, 42, 71, 3},

[42] = { 25, 43, 66, 3},

[43] = { 50, 44, 91, 3},

[44] = { 75, 45, 18, 3},

[45] = { 100, 46, 31, 3},

[46] = { 125, 47, 92, 3},

[47] = { 150, 48, 40, 3},

[48] = { 175, 49, 49, 3},

[49] = { 200, 51, 31, 3},

[51] = { 250, 51, 394, 68},

[52] = { 0, 53, 96, 109},

[53] = { 25, 54, 97, 109},

[54] = { 50, 55, 282, 109},

[55] = { 75, 56, 98, 109},

[56] = { 100, 57, 99, 109},

[57] = { 125, 58, 283, 109},

[58] = { 150, 59, 284, 109},

[59] = { 175, 60, 285, 109},

[60] = { 200, 61, 285, 109},

[61] = { 250, 61, 100, 109},

[62] = { 0, 63, 102, 109},

[63] = { 25, 64, 101, 109},

[64] = { 50, 65, 103, 109},

[65] = { 75, 66, 105, 109},

[66] = { 100, 67, 107, 109},

[67] = { 125, 68, 108, 109},

[68] = { 150, 69, 314, 109},

[69] = { 175, 70, 347, 109},

[70] = { 200, 71, 315, 109},

[71] = { 250, 71, 315, 109},

[72] = { 0, 73, 195, 109},

[73] = { 25, 74, 175, 109},

[74] = { 50, 75, 173, 109},

[75] = { 75, 76, 174, 109},

[76] = { 100, 77, 169, 109},

[77] = { 125, 78, 169, 109},

[78] = { 150, 79, 172, 109},

[79] = { 175, 80, 194, 109},

[80] = { 200, 81, 194, 109},

[81] = { 250, 81, 170, 109},

[82] = { 0, 83, 50, 109},

[83] = { 25, 84, 69, 109},

[84] = { 50, 85, 70, 109},

[85] = { 75, 86, 36, 109},

[86] = { 100, 87, 84, 109},

[87] = { 125, 88, 196, 109},

[88] = { 150, 89, 197, 109},

[89] = { 175, 90, 198, 109},

[90] = { 200, 91, 199, 109},

[91] = { 250, 91, 200, 109},

[92] = { 0, 93, 24, 109},

[93] = { 25, 94, 295, 109},

[94] = { 50, 95, 295, 109},

[95] = { 75, 96, 296, 109},

[96] = { 100, 97, 296, 109},

[97] = { 125, 98, 297, 109},

[98] = { 150, 99, 297, 109},

[99] = { 175, 100, 298, 109},

[100] = { 200, 101, 298, 109},

[101] = { 250, 101, 299, 109},

[102] = { 1, 103, 214, 179},

[103] = { 25, 104, 214, 179},

[104] = { 50, 105, 216, 179},

[105] = { 100, 106, 215, 179},

[106] = { 150, 107, 215, 179},

[107] = { 175, 108, 218, 179},

[108] = { 200, 109, 218, 179},

[109] = { 250, 109, 217, 179},

[110] = { 1, 111, 378, 3},

[111] = { 25, 112, 378, 3},

[112] = { 50, 113, 379, 3},

[113] = { 100, 114, 380, 3},

[114] = { 150, 115, 380, 3},

[115] = { 175, 116, 381, 3},

[116] = { 200, 117, 381, 3},

[117] = { 250, 117, 382, 3},

[118] = { 1, 119, 383, 122},

[119] = { 25, 120, 383, 122},

[120] = { 50, 121, 384, 122},

[121] = { 100, 122, 384, 122},

[122] = { 150, 123, 385, 122},

[123] = { 175, 124, 385, 122},

[124] = { 200, 125, 386, 122},

[125] = { 250, 125, 396, 122},

[126] = { 1, 127, 259, 211},

[127] = { 25, 128, 149, 211},

[128] = { 50, 129, 149, 211},

[129] = { 100, 130, 16, 211},

[130] = { 150, 131, 323, 211},

[131] = { 175, 132, 323, 211},

[132] = { 200, 133, 159, 211},

[133] = { 250, 133, 159, 211},

[134] = { 1, 135, 309, 190},

[135] = { 25, 136, 309, 190},

[136] = { 50, 137, 312, 190},

[137] = { 100, 138, 312, 190},

[138] = { 150, 139, 311, 190},

[139] = { 175, 140, 311, 190},

[140] = { 200, 141, 310, 190},

[141] = { 250, 141, 313, 190},

[142] = { 1, 143, 340, 189},

[143] = { 25, 144, 341, 189},

[144] = { 50, 145, 342, 189},

[145] = { 75, 146, 342, 189},

[146] = { 100, 147, 343, 189},

[147] = { 125, 148, 343, 189},

[148] = { 150, 149, 344, 189},

[149] = { 175, 150, 344, 189},

[150] = { 200, 151, 345, 189},

[151] = { 250, 151, 345, 189},

[152] = { 1, 153, 372, 68},

[153] = { 25, 154, 373, 68},

[154] = { 50, 155, 374, 68},

[155] = { 100, 156, 375, 68},

[156] = { 125, 157, 376, 68},

[157] = { 150, 158, 376, 68},

[158] = { 175, 159, 318, 68},

[159] = { 200, 160, 377, 68},

[160] = { 250, 160, 395, 68},

}

function onSay(cid, words, param, channel)

doPlayerSay(cid, "transformar")

local voc = config[getPlayerVocation(cid)]

if voc then

if getPlayerLevel(cid) >= voc[1] then

doPlayerSetVocation(cid, voc[2])

doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Você se Transformou!")

local outfit = {lookType = voc[3]}

doCreatureChangeOutfit(cid, outfit)

doSendMagicEffect(getCreaturePosition(cid), voc[4])

else

doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Você precisa estar no level " .. voc[1] .. " para transformar.")

end

else

doPlayerSendCancel(cid, "Você não pode se Transformar!")

end

return true

end

 

Link para o comentário
Compartilhar em outros sites

6 respostass a esta questão

Posts Recomendados

  • 0

vamos pegar o exemplo do meu script digamos que eu esteja na vocação 10 certo? qaundo aperto ctrl+q (ou seja deslogar) o char volta ou pra voc anterior 09, ou pra outra voc aleatória.

 

Edit, porisso eu queria um script de reverter pra ver se esse problema some.

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

  • 0

local config = {
--[vocation id] = { level, nova voc, looktype, efeito}
[1] = { 0, 2, 9, 108},
[2] = { 25, 3, 11, 108},
[3] = { 50, 4, 287, 108},
[4] = { 75, 5, 12, 108},
[5] = { 100, 6, 289, 108},
[6] = { 125, 7, 10, 30},
[7] = { 150, 8, 13, 30},
[8] = { 175, 9, 289, 30},
[9] = { 200, 10, 288, 30},
[10] = { 250, 10, 14, 30},
[11] = { 0, 12, 2, 108},
[12] = { 25, 13, 93, 108},
[13] = { 50, 14, 6, 108},
[14] = { 75, 15, 5, 108},
[15] = { 100, 16, 7, 108},
[16] = { 125, 17, 94, 110},
[17] = { 150, 18, 59, 110},
[18] = { 175, 19, 8, 110},
[19] = { 200, 20, 178, 110},
[20] = { 250, 20, 95, 110},
[21] = { 0, 22, 53, 194},
[22] = { 25, 23, 67, 194},
[23] = { 50, 24, 72, 194},
[24] = { 75, 25, 273, 194},
[25] = { 100, 26, 62, 194},
[26] = { 125, 27, 189, 194},
[27] = { 150, 28, 65, 194},
[28] = { 175, 29, 188, 194},
[29] = { 200, 30, 58, 194},
[30] = { 250, 30, 187, 194},
[31] = { 0, 32, 30, 191},
[32] = { 25, 33, 60, 191},
[33] = { 50, 34, 78, 191},
[34] = { 75, 35, 82, 191},
[35] = { 100, 36, 80, 191},
[36] = { 125, 37, 190, 191},
[37] = { 150, 38, 83, 191},
[38] = { 175, 39, 191, 191},
[39] = { 200, 40, 192, 191},
[40] = { 250, 40, 193, 191},
[41] = { 0, 42, 71, 3},
[42] = { 25, 43, 66, 3},
[43] = { 50, 44, 91, 3},
[44] = { 75, 45, 18, 3},
[45] = { 100, 46, 31, 3},
[46] = { 125, 47, 92, 3},
[47] = { 150, 48, 40, 3},
[48] = { 175, 49, 49, 3},
[49] = { 200, 51, 31, 3},
[51] = { 250, 51, 394, 68},
[52] = { 0, 53, 96, 109},
[53] = { 25, 54, 97, 109},
[54] = { 50, 55, 282, 109},
[55] = { 75, 56, 98, 109},
[56] = { 100, 57, 99, 109},
[57] = { 125, 58, 283, 109},
[58] = { 150, 59, 284, 109},
[59] = { 175, 60, 285, 109},
[60] = { 200, 61, 285, 109},
[61] = { 250, 61, 100, 109},
[62] = { 0, 63, 102, 109},
[63] = { 25, 64, 101, 109},
[64] = { 50, 65, 103, 109},
[65] = { 75, 66, 105, 109},
[66] = { 100, 67, 107, 109},
[67] = { 125, 68, 108, 109},
[68] = { 150, 69, 314, 109},
[69] = { 175, 70, 347, 109},
[70] = { 200, 71, 315, 109},
[71] = { 250, 71, 315, 109},
[72] = { 0, 73, 195, 109},
[73] = { 25, 74, 175, 109},
[74] = { 50, 75, 173, 109},
[75] = { 75, 76, 174, 109},
[76] = { 100, 77, 169, 109},
[77] = { 125, 78, 169, 109},
[78] = { 150, 79, 172, 109},
[79] = { 175, 80, 194, 109},
[80] = { 200, 81, 194, 109},
[81] = { 250, 81, 170, 109},
[82] = { 0, 83, 50, 109},
[83] = { 25, 84, 69, 109},
[84] = { 50, 85, 70, 109},
[85] = { 75, 86, 36, 109},
[86] = { 100, 87, 84, 109},
[87] = { 125, 88, 196, 109},
[88] = { 150, 89, 197, 109},
[89] = { 175, 90, 198, 109},
[90] = { 200, 91, 199, 109},
[91] = { 250, 91, 200, 109},
[92] = { 0, 93, 24, 109},
[93] = { 25, 94, 295, 109},
[94] = { 50, 95, 295, 109},
[95] = { 75, 96, 296, 109},
[96] = { 100, 97, 296, 109},
[97] = { 125, 98, 297, 109},
[98] = { 150, 99, 297, 109},
[99] = { 175, 100, 298, 109},
[100] = { 200, 101, 298, 109},
[101] = { 250, 101, 299, 109},
[102] = { 1, 103, 214, 179},
[103] = { 25, 104, 214, 179},
[104] = { 50, 105, 216, 179},
[105] = { 100, 106, 215, 179},
[106] = { 150, 107, 215, 179},
[107] = { 175, 108, 218, 179},
[108] = { 200, 109, 218, 179},
[109] = { 250, 109, 217, 179},
[110] = { 1, 111, 378, 3},
[111] = { 25, 112, 378, 3},
[112] = { 50, 113, 379, 3},
[113] = { 100, 114, 380, 3},
[114] = { 150, 115, 380, 3},
[115] = { 175, 116, 381, 3},
[116] = { 200, 117, 381, 3},
[117] = { 250, 117, 382, 3},
[118] = { 1, 119, 383, 122},
[119] = { 25, 120, 383, 122},
[120] = { 50, 121, 384, 122},
[121] = { 100, 122, 384, 122},
[122] = { 150, 123, 385, 122},
[123] = { 175, 124, 385, 122},
[124] = { 200, 125, 386, 122},
[125] = { 250, 125, 396, 122},
[126] = { 1, 127, 259, 211},
[127] = { 25, 128, 149, 211},
[128] = { 50, 129, 149, 211},
[129] = { 100, 130, 16, 211},
[130] = { 150, 131, 323, 211},
[131] = { 175, 132, 323, 211},
[132] = { 200, 133, 159, 211},
[133] = { 250, 133, 159, 211},
[134] = { 1, 135, 309, 190},
[135] = { 25, 136, 309, 190},
[136] = { 50, 137, 312, 190},
[137] = { 100, 138, 312, 190},
[138] = { 150, 139, 311, 190},
[139] = { 175, 140, 311, 190},
[140] = { 200, 141, 310, 190},
[141] = { 250, 141, 313, 190},
[142] = { 1, 143, 340, 189},
[143] = { 25, 144, 341, 189},
[144] = { 50, 145, 342, 189},
[145] = { 75, 146, 342, 189},
[146] = { 100, 147, 343, 189},
[147] = { 125, 148, 343, 189},
[148] = { 150, 149, 344, 189},
[149] = { 175, 150, 344, 189},
[150] = { 200, 151, 345, 189},
[151] = { 250, 151, 345, 189},
[152] = { 1, 153, 372, 68},
[153] = { 25, 154, 373, 68},
[154] = { 50, 155, 374, 68},
[155] = { 100, 156, 375, 68},
[156] = { 125, 157, 376, 68},
[157] = { 150, 158, 376, 68},
[158] = { 175, 159, 318, 68},
[159] = { 200, 160, 377, 68},
[160] = { 250, 160, 395, 68},
}
function onSay(cid, words, param, channel)
local voc = config[getPlayerVocation(cid)]
if not voc then
doPlayerSendCancel(cid, "Você não pode se Transformar!") return true
elseif getPlayerLevel(cid) < voc[1] then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Você precisa estar no level " .. voc[1] .. " ou mais para transformar.") return true
end
doPlayerSetVocation(cid, voc[2])
setPlayerStorageValue(cid, 888753, voc[2])
doPlayerSay(cid, "transformar")
doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Você se Transformou!")
doCreatureChangeOutfit(cid, {lookType = voc[3]})
doSendMagicEffect(getCreaturePosition(cid), voc[4])
return true
end

 

em data/creaturescript/script/login.lua adc isso antes do último return true

 

if getPlayerStorageValue(cid, 888753) ~= -1 then
doPlayerSetVocation(cid, getPlayerStorageValue(cid, 888753))
end

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

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...