Ir para conteúdo

[Encerrado] [AJUDA] TIBIA.SPR


noob785

Posts Recomendados

Cara aonde você pegou isso?

 

[1] = { 25, 2, 66, 208},
[2] = { 50, 3, 91, 208},
[3] = { 75, 4, 18, 208},
[4] = { 100, 5, 31, 208},
[5] = { 125, 6, 92, 208},
[6] = { 150, 7, 40, 208},
[7] = { 175, 8, 305, 208},
[8] = { 200, 9, 320, 208},
[9] = { 225, 10, 179, 208},
[10] = { 250, 11, 394, 208},
[11] = { 275, 12, 397, 208},

 

Voce nao tinha me passado isso. Me passa o arquivo completo q ta isso fazendo o favor

Link para o comentário
Compartilhar em outros sites

Eu juro que te passei se vc olhar ali encima '-'

 

 

 

local config = {

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

[1] = { 25, 2, 66, 208},

[2] = { 50, 3, 91, 208},

[3] = { 75, 4, 18, 208},

[4] = { 100, 5, 31, 208},

[5] = { 125, 6, 92, 208},

[6] = { 150, 7, 40, 208},

[7] = { 175, 8, 305, 208},

[8] = { 200, 9, 320, 208},

[9] = { 225, 10, 179, 208},

[10] = { 250, 11, 394, 208},

[11] = { 275, 12, 397, 208},

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

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

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

[16] = { 100, 17, 306, 108},

[17] = { 125, 18, 7, 108},

[18] = { 150, 19, 94, 108},

[19] = { 175, 20, 59, 108},

[20] = { 200, 21, 8, 108},

[21] = { 225, 22, 178, 110},

[22] = { 250, 23, 95, 110},

[23] = { 275, 24, 54, 110},

[300] = { 25, 301, 80, 87},

[301] = { 50, 302, 190, 87},

[302] = { 75, 303, 83, 87},

[303] = { 100, 304, 191, 87},

[304] = { 150, 305, 192, 87},

[305] = { 175, 306, 193, 87},

[306] = { 225, 307, 392, 87},

[307] = { 250, 308, 330, 87},

[34] = { 25, 35, 194, 5},

[35] = { 50, 36, 175, 5},

[36] = { 75, 37, 169, 5},

[37] = { 100, 38, 173, 5},

[38] = { 150, 39, 172, 5},

[39] = { 175, 40, 171, 5},

[40] = { 225, 41, 174, 5},

[41] = { 250, 42, 170, 5},

[50] = { 25, 51, 67, 205},

[51] = { 50, 52, 72, 205},

[52] = { 75, 53, 158, 205},

[53] = { 100, 54, 65, 205},

[54] = { 125, 55, 329, 205},

[55] = { 150, 56, 188, 205},

[56] = { 175, 57, 62, 205},

[57] = { 200, 58, 189, 205},

[58] = { 225, 59, 335, 205},

[59] = { 250, 60, 57, 205},

[70] = { 25, 71, 102, 124},

[71] = { 50, 72, 103, 124},

[72] = { 75, 73, 105, 124},

[73] = { 100, 74, 107, 124},

[74] = { 150, 75, 108, 124},

[75] = { 175, 76, 314, 124},

[76] = { 225, 77, 315, 124},

[77] = { 250, 78, 333, 124},

[90] = { 25, 91, 331, 209},

[91] = { 50, 92, 69, 209},

[92] = { 75, 93, 70, 209},

[93] = { 100, 94, 199, 209},

[94] = { 150, 95, 196, 209},

[95] = { 175, 96, 197, 209},

[96] = { 225, 97, 198, 209},

[97] = { 250, 98, 332, 209},

[97] = { 250, 98, 332, 209},

[110] = { 25, 111, 88, 187},

[111] = { 75, 112, 341, 187},

[112] = { 100, 113, 343, 187},

[113] = { 150, 114, 342, 187},

[114] = { 200, 115, 344, 187},

[115] = { 250, 116, 345, 187},

[130] = { 25, 131, 296, 124},

[131] = { 75, 132, 297, 124},

[132] = { 150, 133, 298, 124},

[133] = { 200, 134, 299, 124},

[134] = { 250, 135, 300, 124},

[150] = { 25, 151, 384, 126},

[151] = { 75, 152, 385, 126},

[152] = { 150, 153, 386, 126},

[153] = { 200, 154, 396, 126},

[170] = { 25, 171, 97, 108},

[171] = { 50, 172, 285, 108},

[172] = { 75, 173, 282, 108},

[173] = { 100, 174, 98, 108},

[174] = { 125, 175, 284, 109},

[175] = { 150, 176, 99, 109},

[176] = { 200, 177, 283, 109},

[190] = { 25, 191, 373, 4},

[191] = { 75, 192, 374, 4},

[192] = { 125, 193, 375, 4},

[193] = { 150, 194, 376, 4},

[194] = { 200, 195, 318, 4},

[195] = { 250, 196, 377, 4},

[200] = { 25, 201, 11, 10},

[201] = { 50, 202, 287, 10},

[202] = { 75, 203, 12, 10},

[203] = { 125, 204, 10, 10},

[204] = { 150, 205, 289, 10},

[205] = { 175, 206, 288, 10},

[206] = { 200, 207, 13, 10},

[207] = { 250, 208, 14, 10},

[208] = { 350, 1, 124, 10},

}

function onSay(cid, words, param, channel)

local from,to = {x=1001, y=705, z=7},{x=1031, y=737, z=7} -- começo e final do mapa

local from2,to2 = {x=1011, y=705, z=6},{x=1031, y=738, z=6} -- começo e final do mapa

local from3,to3 = {x=1012, y=706, z=5},{x=1032, y=739, z=5} -- começo e final do mapa

local from4,to4 = {x=985, y=598, z=7},{x=1044, y=652, z=7} -- começo e final do mapa

local from5,to5 = {x=986, y=615, z=6},{x=1039, y=647, z=7} -- começo e final do mapa

local from6,to6 = {x=990, y=616, z=5},{x=1040, y=647, z=5} -- começo e final do mapa

if isInRange(getCreaturePosition(cid), from, to) or isInRange(getCreaturePosition(cid), from2, to2) or isInRange(getCreaturePosition(cid), from3, to3) or isInRange(getCreaturePosition(cid), from4, to4) or isInRange(getCreaturePosition(cid), from5, to5) or isInRange(getCreaturePosition(cid), from6, to6) then

doPlayerSendCancel(cid, "Você não pode se Transformar nesta área!") return true

end

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ê 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

 

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

Substitui esse que você me passou por esse aqui;

 

 

local config = {

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

[1] = { 25, 2, 66, 208},

[2] = { 50, 3, 91, 208},

[3] = { 75, 4, 18, 208},

[4] = { 100, 5, 31, 208},

[5] = { 125, 6, 92, 208},

[6] = { 150, 7, 40, 208},

[7] = { 175, 8, 305, 208},

[8] = { 200, 9, 320, 208},

[9] = { 225, 10, 179, 208},

[10] = { 250, 11, 394, 208},

[11] = { 275, 12, 397, 208},

[11] = { 350, 13, 124, 208},

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

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

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

[16] = { 100, 17, 306, 108},

[17] = { 125, 18, 7, 108},

[18] = { 150, 19, 94, 108},

[19] = { 175, 20, 59, 108},

[20] = { 200, 21, 8, 108},

[21] = { 225, 22, 178, 110},

[22] = { 250, 23, 95, 110},

[23] = { 275, 24, 54, 110},

[300] = { 25, 301, 80, 87},

[301] = { 50, 302, 190, 87},

[302] = { 75, 303, 83, 87},

[303] = { 100, 304, 191, 87},

[304] = { 150, 305, 192, 87},

[305] = { 175, 306, 193, 87},

[306] = { 225, 307, 392, 87},

[307] = { 250, 308, 330, 87},

[34] = { 25, 35, 194, 5},

[35] = { 50, 36, 175, 5},

[36] = { 75, 37, 169, 5},

[37] = { 100, 38, 173, 5},

[38] = { 150, 39, 172, 5},

[39] = { 175, 40, 171, 5},

[40] = { 225, 41, 174, 5},

[41] = { 250, 42, 170, 5},

[50] = { 25, 51, 67, 205},

[51] = { 50, 52, 72, 205},

[52] = { 75, 53, 158, 205},

[53] = { 100, 54, 65, 205},

[54] = { 125, 55, 329, 205},

[55] = { 150, 56, 188, 205},

[56] = { 175, 57, 62, 205},

[57] = { 200, 58, 189, 205},

[58] = { 225, 59, 335, 205},

[59] = { 250, 60, 57, 205},

[70] = { 25, 71, 102, 124},

[71] = { 50, 72, 103, 124},

[72] = { 75, 73, 105, 124},

[73] = { 100, 74, 107, 124},

[74] = { 150, 75, 108, 124},

[75] = { 175, 76, 314, 124},

[76] = { 225, 77, 315, 124},

[77] = { 250, 78, 333, 124},

[90] = { 25, 91, 331, 209},

[91] = { 50, 92, 69, 209},

[92] = { 75, 93, 70, 209},

[93] = { 100, 94, 199, 209},

[94] = { 150, 95, 196, 209},

[95] = { 175, 96, 197, 209},

[96] = { 225, 97, 198, 209},

[97] = { 250, 98, 332, 209},

[97] = { 250, 98, 332, 209},

[110] = { 25, 111, 88, 187},

[111] = { 75, 112, 341, 187},

[112] = { 100, 113, 343, 187},

[113] = { 150, 114, 342, 187},

[114] = { 200, 115, 344, 187},

[115] = { 250, 116, 345, 187},

[130] = { 25, 131, 296, 124},

[131] = { 75, 132, 297, 124},

[132] = { 150, 133, 298, 124},

[133] = { 200, 134, 299, 124},

[134] = { 250, 135, 300, 124},

[150] = { 25, 151, 384, 126},

[151] = { 75, 152, 385, 126},

[152] = { 150, 153, 386, 126},

[153] = { 200, 154, 396, 126},

[170] = { 25, 171, 97, 108},

[171] = { 50, 172, 285, 108},

[172] = { 75, 173, 282, 108},

[173] = { 100, 174, 98, 108},

[174] = { 125, 175, 284, 109},

[175] = { 150, 176, 99, 109},

[176] = { 200, 177, 283, 109},

[190] = { 25, 191, 373, 4},

[191] = { 75, 192, 374, 4},

[192] = { 125, 193, 375, 4},

[193] = { 150, 194, 376, 4},

[194] = { 200, 195, 318, 4},

[195] = { 250, 196, 377, 4},

[200] = { 25, 201, 11, 10},

[201] = { 50, 202, 287, 10},

[202] = { 75, 203, 12, 10},

[203] = { 125, 204, 10, 10},

[204] = { 150, 205, 289, 10},

[205] = { 175, 206, 288, 10},

[206] = { 200, 207, 13, 10},

[207] = { 250, 208, 14, 10},

}

function onSay(cid, words, param, channel)

local from,to = {x=1001, y=705, z=7},{x=1031, y=737, z=7} -- começo e final do mapa

local from2,to2 = {x=1011, y=705, z=6},{x=1031, y=738, z=6} -- começo e final do mapa

local from3,to3 = {x=1012, y=706, z=5},{x=1032, y=739, z=5} -- começo e final do mapa

local from4,to4 = {x=985, y=598, z=7},{x=1044, y=652, z=7} -- começo e final do mapa

local from5,to5 = {x=986, y=615, z=6},{x=1039, y=647, z=7} -- começo e final do mapa

local from6,to6 = {x=990, y=616, z=5},{x=1040, y=647, z=5} -- começo e final do mapa

if isInRange(getCreaturePosition(cid), from, to) or isInRange(getCreaturePosition(cid), from2, to2) or isInRange(getCreaturePosition(cid), from3, to3) or isInRange(getCreaturePosition(cid), from4, to4) or isInRange(getCreaturePosition(cid), from5, to5) or isInRange(getCreaturePosition(cid), from6, to6) then

doPlayerSendCancel(cid, "Você não pode se Transformar nesta área!") return true

end

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ê 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

Meu Amigo Logo No Naruto dele, 350 e deu transformar mais não ficou com a roupinha '-'

 

Sabe a pasta talkactions/scripts

 

o arquivo transformar . lua eu tenhu 3 vo te passa oq contém em cada um para voce ve se acha algo oq fazer

 

Primeiramente o Arquivo. Transformar

 

 

local config = {

--[vocation id] = { {lvl inicial, lvl maximo}, looktype, efeito}

[1] = { {lvl = {25, 49}, look = 66, eff = 208},

{lvl = {50, 74}, look = 91, eff = 208},

{lvl = {75, 99}, look = 18, eff = 208},

{lvl = {100, 124}, look = 31, eff = 208},

{lvl = {125, 149}, look = 92, eff = 208},

{lvl = {150, 174}, look = 40, eff = 208},

{lvl = {175, 199}, look = 305, eff = 208},

{lvl = {200, 224}, look = 320, eff = 208},

{lvl = {225, 249}, look = 179, eff = 208},

{lvl = {250, 274}, look = 394, eff = 208},

{lvl = {275, 999}, look = 397, eff = 208},

},

[10] = { {lvl = {25, 49}, look = 93, eff = 108},

{lvl = {50, 74}, look = 6, eff = 108},

{lvl = {75, 99}, look = 5, eff = 108},

{lvl = {100, 124}, look = 306, eff = 108},

{lvl = {125, 149}, look = 7, eff = 108},

{lvl = {150, 174}, look = 94, eff = 108},

{lvl = {175, 199}, look = 59, eff = 108},

{lvl = {200, 224}, look = 8, eff = 108},

{lvl = {225, 249}, look = 178, eff = 108},

{lvl = {250, 274}, look = 95, eff = 108},

{lvl = {275, 999}, look = 54, eff = 108},

},

[30] = { {lvl = {25, 49}, look = 80, eff = 87},

{lvl = {50, 74}, look = 190, eff = 87},

{lvl = {75, 99}, look = 83, eff = 87},

{lvl = {100, 149}, look = 191, eff = 87},

{lvl = {150, 174}, look = 192, eff = 87},

{lvl = {175, 224}, look = 193, eff = 87},

{lvl = {225, 249}, look = 392, eff = 87},

{lvl = {250, 999}, look = 330, eff = 87},

},

[40] = { {lvl = {25, 49}, look = 194, eff = 5},

{lvl = {50, 74}, look = 175, eff = 5},

{lvl = {75, 99}, look = 169, eff = 5},

{lvl = {100, 149}, look = 173, eff = 5},

{lvl = {150, 174}, look = 172, eff = 5},

{lvl = {175, 224}, look = 171, eff = 5},

{lvl = {225, 249}, look = 174, eff = 5},

{lvl = {250, 999}, look = 170, eff = 5},

},

[50] = { {lvl = {25, 49}, look = 67, eff = 205},

{lvl = {50, 99}, look = 72, eff = 205},

{lvl = {100, 124}, look = 65, eff = 205},

{lvl = {125, 149}, look = 329, eff = 205},

{lvl = {150, 174}, look = 188, eff = 205},

{lvl = {175, 199}, look = 62, eff = 205},

{lvl = {200, 224}, look = 189, eff = 205},

{lvl = {225, 249}, look = 335, eff = 205},

{lvl = {250, 999}, look = 57, eff = 205},

},

[60] = { {lvl = {25, 49}, look = 102, eff = 124},

{lvl = {50, 74}, look = 103, eff = 124},

{lvl = {75, 99}, look = 105, eff = 124},

{lvl = {100, 149}, look = 107, eff = 124},

{lvl = {150, 174}, look = 108, eff = 124},

{lvl = {175, 224}, look = 314, eff = 124},

{lvl = {225, 249}, look = 315, eff = 124},

{lvl = {250, 999}, look = 333, eff = 124},

},

[70] = { {lvl = {25, 49}, look = 331, eff = 87},

{lvl = {50, 74}, look = 69, eff = 87},

{lvl = {75, 99}, look = 70, eff = 87},

{lvl = {100, 149}, look = 199, eff = 87},

{lvl = {150, 174}, look = 196, eff = 87},

{lvl = {175, 224}, look = 197, eff = 87},

{lvl = {225, 249}, look = 198, eff = 87},

{lvl = {250, 999}, look = 332, eff = 87},

},

[80] = { {lvl = {25, 74}, look = 88, eff = 187},

{lvl = {75, 99}, look = 341, eff = 187},

{lvl = {100, 149}, look = 343, eff = 187},

{lvl = {150, 199}, look = 342, eff = 187},

{lvl = {200, 249}, look = 344, eff = 187},

{lvl = {250, 999}, look = 345, eff = 187},

},

[90] = { {lvl = {25, 74}, look = 296, eff = 124},

{lvl = {75, 149}, look = 297, eff = 124},

{lvl = {150, 199}, look = 298, eff = 124},

{lvl = {200, 249}, look = 299, eff = 124},

{lvl = {250, 999}, look = 300, eff = 124},

},

[100] = { {lvl = {25, 74}, look = 384, eff = 126},

{lvl = {75, 149}, look = 385, eff = 126},

{lvl = {150, 199}, look = 386, eff = 126},

{lvl = {200, 999}, look = 396, eff = 126},

},

[110] = { {lvl = {25, 49}, look = 97, eff = 108},

{lvl = {50, 74}, look = 285, eff = 108},

{lvl = {75, 99}, look = 282, eff = 108},

{lvl = {100, 149}, look = 98, eff = 108},

{lvl = {150, 174}, look = 284, eff = 108},

{lvl = {175, 199}, look = 99, eff = 108},

{lvl = {200, 999}, look = 283, eff = 108},

},

[120] = { {lvl = {25, 74}, look = 373, eff = 4},

{lvl = {75, 99}, look = 374, eff = 4},

{lvl = {100, 149}, look = 375, eff = 4},

{lvl = {150, 199}, look = 376, eff = 4},

{lvl = {200, 249}, look = 318, eff = 4},

{lvl = {250, 999}, look = 377, eff = 4},

},

[130] = { {lvl = {25, 49}, look = 11, eff = 10},

{lvl = {50, 74}, look = 287, eff = 10},

{lvl = {75, 99}, look = 12, eff = 10},

{lvl = {100, 149}, look = 10, eff = 10},

{lvl = {150, 174}, look = 289, eff = 10},

{lvl = {175, 224}, look = 288, eff = 10},

{lvl = {225, 249}, look = 13, eff = 10},

{lvl = {250, 999}, look = 14, eff = 10},

},

[140] = { {lvl = {25, 74}, look = 312, eff = 190},

{lvl = {75, 149}, look = 313, eff = 190},

{lvl = {150, 999}, look = 311, eff = 190},

},

}

function onSay(cid, words, param, channel)

local waittime = 10 -- Tempo de exhaustion

local storage = 5812

local from,to = {x=1001, y=705, z=7},{x=1031, y=737, z=7} -- começo e final do mapa

local from2,to2 = {x=1011, y=705, z=6},{x=1031, y=738, z=6} -- começo e final do mapa

local from3,to3 = {x=1012, y=706, z=5},{x=1032, y=739, z=5} -- começo e final do mapa

local from4,to4 = {x=985, y=598, z=7},{x=1044, y=652, z=7} -- começo e final do mapa

local from5,to5 = {x=986, y=615, z=6},{x=1039, y=647, z=7} -- começo e final do mapa

local from6,to6 = {x=990, y=616, z=5},{x=1040, y=647, z=5} -- começo e final do mapa

if isInRange(getCreaturePosition(cid), from, to) or isInRange(getCreaturePosition(cid), from2, to2) or isInRange(getCreaturePosition(cid), from3, to3) or isInRange(getCreaturePosition(cid), from4, to4) or isInRange(getCreaturePosition(cid), from5, to5) or isInRange(getCreaturePosition(cid), from6, to6) then

doPlayerSendCancel(cid, "Você não pode se Transformar nesta área!") return true

end

if exhaustion.check(cid, storage) then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "VOCE JA SE TRANSFORMOU, VOCE JA ESTA COM OUTFIT DA SUA ATUAL SAGA!")

return false

end

doPlayerSay(cid, "transformar")

local voc = config[getPlayerVocation(cid)]

if voc then

for i = 1, #voc do

if getPlayerLevel(cid) >= voc.lvl[1] and getPlayerLevel(cid) <= voc.lvl[2] then

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

exhaustion.set(cid, storage, waittime)

local outfit = {lookType = voc.look}

doCreatureChangeOutfit(cid, outfit)

doSendMagicEffect(getCreaturePosition(cid), voc.eff)

return true

end

end

doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Você precisa de level 25 para usar sua primeira transformação e passar para a proxima saga!")

else

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

end

return true

end

 

 

 

 

Agora o Arquivo Transformar1

 

 

 

local config = {

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

[1] = { 25, 66, 208},

[1] = { 50, 91, 208},

[1] = { 75, 18, 208},

[1] = { 100, 31, 208},

[1] = { 125, 92, 208},

[1] = { 150, 40, 208},

[1] = { 175, 305, 208},

[1] = { 200, 320, 208},

[1] = { 225, 179, 208},

[1] = { 250, 394, 208}

}

function onSay(cid, words, param, channel)

local from,to = {x=1001, y=705, z=7},{x=1031, y=737, z=7} -- começo e final do mapa

local from2,to2 = {x=1011, y=705, z=6},{x=1031, y=738, z=6} -- começo e final do mapa

local from3,to3 = {x=1012, y=706, z=5},{x=1032, y=739, z=5} -- começo e final do mapa

local from4,to4 = {x=985, y=598, z=7},{x=1044, y=652, z=7} -- começo e final do mapa

local from5,to5 = {x=986, y=615, z=6},{x=1039, y=647, z=7} -- começo e final do mapa

local from6,to6 = {x=990, y=616, z=5},{x=1040, y=647, z=5} -- começo e final do mapa

if isInRange(getCreaturePosition(cid), from, to) or isInRange(getCreaturePosition(cid), from2, to2) or isInRange(getCreaturePosition(cid), from3, to3) or isInRange(getCreaturePosition(cid), from4, to4) or isInRange(getCreaturePosition(cid), from5, to5) or isInRange(getCreaturePosition(cid), from6, to6) then

doPlayerSendCancel(cid, "Você não pode se Transformar nesta área!") return true

end

doPlayerSay(cid, "transformar")

local voc = config[getPlayerVocation(cid)]

if voc then

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

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

local outfit = {lookType = voc[2]}

doCreatureChangeOutfit(cid, outfit)

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

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

 

 

 

Agora o Arquivo Transformar 2

 

 

 

local config = {

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

[1] = { 25, 66, 208},

[1] = { 50, 91, 208},

[1] = { 75, 18, 208},

[1] = { 100, 31, 208},

[1] = { 125, 92, 208},

[1] = { 150, 40, 208},

[1] = { 175, 305, 208},

[1] = { 200, 320, 208},

[1] = { 225, 179, 208},

[1] = { 250, 394, 208},

[1] = { 275, 397, 208},

[10] = { 25, 93, 108},

[10] = { 50, 6, 108},

[10] = { 75, 5, 108},

[10] = { 100, 306, 108},

[10] = { 125, 7, 108},

[10] = { 150, 94, 108},

[10] = { 175, 59, 108},

[10] = { 200, 8, 108},

[10] = { 225, 178, 110},

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

[10] = { 275, 54, 110},

[30] = { 25, 80, 87},

[30] = { 50, 190, 87},

[30] = { 75, 83, 87},

[30] = { 100, 191, 87},

[30] = { 150, 192, 87},

[30] = { 175, 193, 87},

[30] = { 225, 392, 87},

[30] = { 250, 330, 87},

[40] = { 25, 194, 5},

[40] = { 50, 175, 5},

[40] = { 75, 169, 5},

[40] = { 100, 173, 5},

[40] = { 150, 172, 5},

[40] = { 175, 171, 5},

[40] = { 225, 174, 5},

[40] = { 250, 170, 5},

[50] = { 25, 67, 205},

[50] = { 50, 72, 205},

[50] = { 100, 65, 205},

[50] = { 125, 329, 205},

[50] = { 150, 188, 205},

[50] = { 175, 62, 205},

[50] = { 200, 189, 205},

[50] = { 225, 335, 205},

[50] = { 250, 57, 205},

[60] = { 25, 102, 124},

[60] = { 50, 103, 124},

[60] = { 75, 105, 124},

[60] = { 100, 107, 124},

[60] = { 150, 108, 124},

[60] = { 175, 314, 124},

[60] = { 225, 315, 124},

[60] = { 250, 333, 124},

[70] = { 25, 331, 209},

[70] = { 50, 69, 209},

[70] = { 75, 70, 209},

[70] = { 100, 199, 209},

[70] = { 150, 196, 209},

[70] = { 175, 197, 209},

[70] = { 225, 198, 209},

[70] = { 250, 332, 209},

[80] = { 25, 88, 187},

[80] = { 75, 341, 187},

[80] = { 100, 343, 187},

[80] = { 150, 342, 187},

[80] = { 200, 344, 187},

[80] = { 250, 345, 187},

[90] = { 25, 296, 124},

[90] = { 75, 297, 124},

[90] = { 150, 298, 124},

[90] = { 200, 299, 124},

[90] = { 250, 300, 124},

[100] = { 25, 384, 126},

[100] = { 75, 385, 126},

[100] = { 150, 386, 126},

[100] = { 200, 396, 126},

[110] = { 25, 97, 108},

[110] = { 50, 285, 108},

[110] = { 75, 282, 108},

[110] = { 100, 98, 108},

[110] = { 125, 284, 109},

[110] = { 150, 99, 109},

[110] = { 200, 283, 109},

[120] = { 25, 373, 4},

[120] = { 75, 374, 4},

[120] = { 125, 375, 4},

[120] = { 150, 376, 4},

[120] = { 200, 318, 4},

[120] = { 250, 377, 4},

[130] = { 25, 11, 10},

[130] = { 50, 287, 10},

[130] = { 75, 12, 10},

[130] = { 125, 10, 10},

[130] = { 150, 289, 10},

[130] = { 175, 288, 10},

[130] = { 200, 13, 10},

[130] = { 250, 14, 10}

}

function onSay(cid, words, param, channel)

local waittime = 2 -- Tempo de exhaustion

local storage = 5811

 

if exhaustion.check(cid, storage) then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde " .. exhaustion.get(cid, storage) .. " segundos para usar a spell novamente.")

return false

end

local from,to = {x=1001, y=705, z=7},{x=1031, y=737, z=7} -- começo e final do mapa

local from2,to2 = {x=1011, y=705, z=6},{x=1031, y=738, z=6} -- começo e final do mapa

local from3,to3 = {x=1012, y=706, z=5},{x=1032, y=739, z=5} -- começo e final do mapa

local from4,to4 = {x=985, y=598, z=7},{x=1044, y=652, z=7} -- começo e final do mapa

local from5,to5 = {x=986, y=615, z=6},{x=1039, y=647, z=7} -- começo e final do mapa

local from6,to6 = {x=990, y=616, z=5},{x=1040, y=647, z=5} -- começo e final do mapa

if isInRange(getCreaturePosition(cid), from, to) or isInRange(getCreaturePosition(cid), from2, to2) or isInRange(getCreaturePosition(cid), from3, to3) or isInRange(getCreaturePosition(cid), from4, to4) or isInRange(getCreaturePosition(cid), from5, to5) or isInRange(getCreaturePosition(cid), from6, to6) then

doPlayerSendCancel(cid, "Você não pode se Transformar nesta área!") return true

end

doPlayerSay(cid, "transformar")

local voc = config[getPlayerVocation(cid)]

if voc then

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

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

local outfit = {lookType = voc[2]}

doCreatureChangeOutfit(cid, outfit)

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

exhaustion.set(cid, storage, waittime)

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

 

 

 

e Agora por último uma cópia que esta com nome de transformarbk aki na pasta

 

 

 

local config = {

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

[1] = { 25, 2, 66, 208},

[2] = { 50, 3, 91, 208},

[3] = { 75, 4, 18, 208},

[4] = { 100, 5, 31, 208},

[5] = { 125, 6, 92, 208},

[6] = { 150, 7, 40, 208},

[7] = { 175, 8, 305, 208},

[8] = { 200, 9, 320, 208},

[9] = { 225, 10, 179, 208},

[10] = { 250, 11, 394, 208},

[11] = { 275, 12, 397, 208},

[11] = { 350, 13, 124, 208},

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

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

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

[16] = { 100, 17, 306, 108},

[17] = { 125, 18, 7, 108},

[18] = { 150, 19, 94, 108},

[19] = { 175, 20, 59, 108},

[20] = { 200, 21, 8, 108},

[21] = { 225, 22, 178, 110},

[22] = { 250, 23, 95, 110},

[23] = { 275, 24, 54, 110},

[300] = { 25, 301, 80, 87},

[301] = { 50, 302, 190, 87},

[302] = { 75, 303, 83, 87},

[303] = { 100, 304, 191, 87},

[304] = { 150, 305, 192, 87},

[305] = { 175, 306, 193, 87},

[306] = { 225, 307, 392, 87},

[307] = { 250, 308, 330, 87},

[34] = { 25, 35, 194, 5},

[35] = { 50, 36, 175, 5},

[36] = { 75, 37, 169, 5},

[37] = { 100, 38, 173, 5},

[38] = { 150, 39, 172, 5},

[39] = { 175, 40, 171, 5},

[40] = { 225, 41, 174, 5},

[41] = { 250, 42, 170, 5},

[50] = { 25, 51, 67, 205},

[51] = { 50, 52, 72, 205},

[52] = { 75, 53, 158, 205},

[53] = { 100, 54, 65, 205},

[54] = { 125, 55, 329, 205},

[55] = { 150, 56, 188, 205},

[56] = { 175, 57, 62, 205},

[57] = { 200, 58, 189, 205},

[58] = { 225, 59, 335, 205},

[59] = { 250, 60, 57, 205},

[70] = { 25, 71, 102, 124},

[71] = { 50, 72, 103, 124},

[72] = { 75, 73, 105, 124},

[73] = { 100, 74, 107, 124},

[74] = { 150, 75, 108, 124},

[75] = { 175, 76, 314, 124},

[76] = { 225, 77, 315, 124},

[77] = { 250, 78, 333, 124},

[90] = { 25, 91, 331, 209},

[91] = { 50, 92, 69, 209},

[92] = { 75, 93, 70, 209},

[93] = { 100, 94, 199, 209},

[94] = { 150, 95, 196, 209},

[95] = { 175, 96, 197, 209},

[96] = { 225, 97, 198, 209},

[97] = { 250, 98, 332, 209},

[97] = { 250, 98, 332, 209},

[110] = { 25, 111, 88, 187},

[111] = { 75, 112, 341, 187},

[112] = { 100, 113, 343, 187},

[113] = { 150, 114, 342, 187},

[114] = { 200, 115, 344, 187},

[115] = { 250, 116, 345, 187},

[130] = { 25, 131, 296, 124},

[131] = { 75, 132, 297, 124},

[132] = { 150, 133, 298, 124},

[133] = { 200, 134, 299, 124},

[134] = { 250, 135, 300, 124},

[150] = { 25, 151, 384, 126},

[151] = { 75, 152, 385, 126},

[152] = { 150, 153, 386, 126},

[153] = { 200, 154, 396, 126},

[170] = { 25, 171, 97, 108},

[171] = { 50, 172, 285, 108},

[172] = { 75, 173, 282, 108},

[173] = { 100, 174, 98, 108},

[174] = { 125, 175, 284, 109},

[175] = { 150, 176, 99, 109},

[176] = { 200, 177, 283, 109},

[190] = { 25, 191, 373, 4},

[191] = { 75, 192, 374, 4},

[192] = { 125, 193, 375, 4},

[193] = { 150, 194, 376, 4},

[194] = { 200, 195, 318, 4},

[195] = { 250, 196, 377, 4},

[200] = { 25, 201, 11, 10},

[201] = { 50, 202, 287, 10},

[202] = { 75, 203, 12, 10},

[203] = { 125, 204, 10, 10},

[204] = { 150, 205, 289, 10},

[205] = { 175, 206, 288, 10},

[206] = { 200, 207, 13, 10},

[207] = { 250, 208, 14, 10},

}

function onSay(cid, words, param, channel)

local from,to = {x=1001, y=705, z=7},{x=1031, y=737, z=7} -- começo e final do mapa

local from2,to2 = {x=1011, y=705, z=6},{x=1031, y=738, z=6} -- começo e final do mapa

local from3,to3 = {x=1012, y=706, z=5},{x=1032, y=739, z=5} -- começo e final do mapa

local from4,to4 = {x=985, y=598, z=7},{x=1044, y=652, z=7} -- começo e final do mapa

local from5,to5 = {x=986, y=615, z=6},{x=1039, y=647, z=7} -- começo e final do mapa

local from6,to6 = {x=990, y=616, z=5},{x=1040, y=647, z=5} -- começo e final do mapa

if isInRange(getCreaturePosition(cid), from, to) or isInRange(getCreaturePosition(cid), from2, to2) or isInRange(getCreaturePosition(cid), from3, to3) or isInRange(getCreaturePosition(cid), from4, to4) or isInRange(getCreaturePosition(cid), from5, to5) or isInRange(getCreaturePosition(cid), from6, to6) then

doPlayerSendCancel(cid, "Você não pode se Transformar nesta área!") return true

end

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ê 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

 

 

 

Eu não tinha visto aquele primeiro arquivo de todos la escrito transformar acho que ele é o certo verifique

para mim se puder e tente me ajudar a coloca a transformação por ele.

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

O primeiro:

 

 

local config = {

--[vocation id] = { {lvl inicial, lvl maximo}, looktype, efeito}

[1] = { {lvl = {25, 49}, look = 66, eff = 208},

{lvl = {50, 74}, look = 91, eff = 208},

{lvl = {75, 99}, look = 18, eff = 208},

{lvl = {100, 124}, look = 31, eff = 208},

{lvl = {125, 149}, look = 92, eff = 208},

{lvl = {150, 174}, look = 40, eff = 208},

{lvl = {175, 199}, look = 305, eff = 208},

{lvl = {200, 224}, look = 320, eff = 208},

{lvl = {225, 249}, look = 179, eff = 208},

{lvl = {250, 274}, look = 394, eff = 208},

{lvl = {275, 349}, look = 397, eff = 208},

{lvl = {350, 999}, look = 124, eff = 208},

},

[10] = { {lvl = {25, 49}, look = 93, eff = 108},

{lvl = {50, 74}, look = 6, eff = 108},

{lvl = {75, 99}, look = 5, eff = 108},

{lvl = {100, 124}, look = 306, eff = 108},

{lvl = {125, 149}, look = 7, eff = 108},

{lvl = {150, 174}, look = 94, eff = 108},

{lvl = {175, 199}, look = 59, eff = 108},

{lvl = {200, 224}, look = 8, eff = 108},

{lvl = {225, 249}, look = 178, eff = 108},

{lvl = {250, 274}, look = 95, eff = 108},

{lvl = {275, 999}, look = 54, eff = 108},

},

[30] = { {lvl = {25, 49}, look = 80, eff = 87},

{lvl = {50, 74}, look = 190, eff = 87},

{lvl = {75, 99}, look = 83, eff = 87},

{lvl = {100, 149}, look = 191, eff = 87},

{lvl = {150, 174}, look = 192, eff = 87},

{lvl = {175, 224}, look = 193, eff = 87},

{lvl = {225, 249}, look = 392, eff = 87},

{lvl = {250, 999}, look = 330, eff = 87},

},

[40] = { {lvl = {25, 49}, look = 194, eff = 5},

{lvl = {50, 74}, look = 175, eff = 5},

{lvl = {75, 99}, look = 169, eff = 5},

{lvl = {100, 149}, look = 173, eff = 5},

{lvl = {150, 174}, look = 172, eff = 5},

{lvl = {175, 224}, look = 171, eff = 5},

{lvl = {225, 249}, look = 174, eff = 5},

{lvl = {250, 999}, look = 170, eff = 5},

},

[50] = { {lvl = {25, 49}, look = 67, eff = 205},

{lvl = {50, 99}, look = 72, eff = 205},

{lvl = {100, 124}, look = 65, eff = 205},

{lvl = {125, 149}, look = 329, eff = 205},

{lvl = {150, 174}, look = 188, eff = 205},

{lvl = {175, 199}, look = 62, eff = 205},

{lvl = {200, 224}, look = 189, eff = 205},

{lvl = {225, 249}, look = 335, eff = 205},

{lvl = {250, 999}, look = 57, eff = 205},

},

[60] = { {lvl = {25, 49}, look = 102, eff = 124},

{lvl = {50, 74}, look = 103, eff = 124},

{lvl = {75, 99}, look = 105, eff = 124},

{lvl = {100, 149}, look = 107, eff = 124},

{lvl = {150, 174}, look = 108, eff = 124},

{lvl = {175, 224}, look = 314, eff = 124},

{lvl = {225, 249}, look = 315, eff = 124},

{lvl = {250, 999}, look = 333, eff = 124},

},

[70] = { {lvl = {25, 49}, look = 331, eff = 87},

{lvl = {50, 74}, look = 69, eff = 87},

{lvl = {75, 99}, look = 70, eff = 87},

{lvl = {100, 149}, look = 199, eff = 87},

{lvl = {150, 174}, look = 196, eff = 87},

{lvl = {175, 224}, look = 197, eff = 87},

{lvl = {225, 249}, look = 198, eff = 87},

{lvl = {250, 999}, look = 332, eff = 87},

},

[80] = { {lvl = {25, 74}, look = 88, eff = 187},

{lvl = {75, 99}, look = 341, eff = 187},

{lvl = {100, 149}, look = 343, eff = 187},

{lvl = {150, 199}, look = 342, eff = 187},

{lvl = {200, 249}, look = 344, eff = 187},

{lvl = {250, 999}, look = 345, eff = 187},

},

[90] = { {lvl = {25, 74}, look = 296, eff = 124},

{lvl = {75, 149}, look = 297, eff = 124},

{lvl = {150, 199}, look = 298, eff = 124},

{lvl = {200, 249}, look = 299, eff = 124},

{lvl = {250, 999}, look = 300, eff = 124},

},

[100] = { {lvl = {25, 74}, look = 384, eff = 126},

{lvl = {75, 149}, look = 385, eff = 126},

{lvl = {150, 199}, look = 386, eff = 126},

{lvl = {200, 999}, look = 396, eff = 126},

},

[110] = { {lvl = {25, 49}, look = 97, eff = 108},

{lvl = {50, 74}, look = 285, eff = 108},

{lvl = {75, 99}, look = 282, eff = 108},

{lvl = {100, 149}, look = 98, eff = 108},

{lvl = {150, 174}, look = 284, eff = 108},

{lvl = {175, 199}, look = 99, eff = 108},

{lvl = {200, 999}, look = 283, eff = 108},

},

[120] = { {lvl = {25, 74}, look = 373, eff = 4},

{lvl = {75, 99}, look = 374, eff = 4},

{lvl = {100, 149}, look = 375, eff = 4},

{lvl = {150, 199}, look = 376, eff = 4},

{lvl = {200, 249}, look = 318, eff = 4},

{lvl = {250, 999}, look = 377, eff = 4},

},

[130] = { {lvl = {25, 49}, look = 11, eff = 10},

{lvl = {50, 74}, look = 287, eff = 10},

{lvl = {75, 99}, look = 12, eff = 10},

{lvl = {100, 149}, look = 10, eff = 10},

{lvl = {150, 174}, look = 289, eff = 10},

{lvl = {175, 224}, look = 288, eff = 10},

{lvl = {225, 249}, look = 13, eff = 10},

{lvl = {250, 999}, look = 14, eff = 10},

},

[140] = { {lvl = {25, 74}, look = 312, eff = 190},

{lvl = {75, 149}, look = 313, eff = 190},

{lvl = {150, 999}, look = 311, eff = 190},

},

}

function onSay(cid, words, param, channel)

local waittime = 10 -- Tempo de exhaustion

local storage = 5812

local from,to = {x=1001, y=705, z=7},{x=1031, y=737, z=7} -- começo e final do mapa

local from2,to2 = {x=1011, y=705, z=6},{x=1031, y=738, z=6} -- começo e final do mapa

local from3,to3 = {x=1012, y=706, z=5},{x=1032, y=739, z=5} -- começo e final do mapa

local from4,to4 = {x=985, y=598, z=7},{x=1044, y=652, z=7} -- começo e final do mapa

local from5,to5 = {x=986, y=615, z=6},{x=1039, y=647, z=7} -- começo e final do mapa

local from6,to6 = {x=990, y=616, z=5},{x=1040, y=647, z=5} -- começo e final do mapa

if isInRange(getCreaturePosition(cid), from, to) or isInRange(getCreaturePosition(cid), from2, to2) or isInRange(getCreaturePosition(cid), from3, to3) or isInRange(getCreaturePosition(cid), from4, to4) or isInRange(getCreaturePosition(cid), from5, to5) or isInRange(getCreaturePosition(cid), from6, to6) then

doPlayerSendCancel(cid, "Você não pode se Transformar nesta área!") return true

end

if exhaustion.check(cid, storage) then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "VOCE JA SE TRANSFORMOU, VOCE JA ESTA COM OUTFIT DA SUA ATUAL SAGA!")

return false

end

doPlayerSay(cid, "transformar")

local voc = config[getPlayerVocation(cid)]

if voc then

for i = 1, #voc do

if getPlayerLevel(cid) >= voc.lvl[1] and getPlayerLevel(cid) <= voc.lvl[2] then

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

exhaustion.set(cid, storage, waittime)

local outfit = {lookType = voc.look}

doCreatureChangeOutfit(cid, outfit)

doSendMagicEffect(getCreaturePosition(cid), voc.eff)

return true

end

end

doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Você precisa de level 25 para usar sua primeira transformação e passar para a proxima saga!")

else

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

end

return true

end

 

 

 

 

O segundo :

 

 

~local config = {

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

[1] = { 25, 66, 208},

[1] = { 50, 91, 208},

[1] = { 75, 18, 208},

[1] = { 100, 31, 208},

[1] = { 125, 92, 208},

[1] = { 150, 40, 208},

[1] = { 175, 305, 208},

[1] = { 200, 320, 208},

[1] = { 225, 179, 208},

[1] = { 250, 394, 208},

[1] = { 350, 124, 208}

}

function onSay(cid, words, param, channel)

local from,to = {x=1001, y=705, z=7},{x=1031, y=737, z=7} -- começo e final do mapa

local from2,to2 = {x=1011, y=705, z=6},{x=1031, y=738, z=6} -- começo e final do mapa

local from3,to3 = {x=1012, y=706, z=5},{x=1032, y=739, z=5} -- começo e final do mapa

local from4,to4 = {x=985, y=598, z=7},{x=1044, y=652, z=7} -- começo e final do mapa

local from5,to5 = {x=986, y=615, z=6},{x=1039, y=647, z=7} -- começo e final do mapa

local from6,to6 = {x=990, y=616, z=5},{x=1040, y=647, z=5} -- começo e final do mapa

if isInRange(getCreaturePosition(cid), from, to) or isInRange(getCreaturePosition(cid), from2, to2) or isInRange(getCreaturePosition(cid), from3, to3) or isInRange(getCreaturePosition(cid), from4, to4) or isInRange(getCreaturePosition(cid), from5, to5) or isInRange(getCreaturePosition(cid), from6, to6) then

doPlayerSendCancel(cid, "Você não pode se Transformar nesta área!") return true

end

doPlayerSay(cid, "transformar")

local voc = config[getPlayerVocation(cid)]

if voc then

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

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

local outfit = {lookType = voc[2]}

doCreatureChangeOutfit(cid, outfit)

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

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

 

 

 

O terceiro:

 

 

local config = {

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

[1] = { 25, 66, 208},

[1] = { 50, 91, 208},

[1] = { 75, 18, 208},

[1] = { 100, 31, 208},

[1] = { 125, 92, 208},

[1] = { 150, 40, 208},

[1] = { 175, 305, 208},

[1] = { 200, 320, 208},

[1] = { 225, 179, 208},

[1] = { 250, 394, 208},

[1] = { 275, 397, 208},

[1] = { 350, 124, 208},

[10] = { 25, 93, 108},

[10] = { 50, 6, 108},

[10] = { 75, 5, 108},

[10] = { 100, 306, 108},

[10] = { 125, 7, 108},

[10] = { 150, 94, 108},

[10] = { 175, 59, 108},

[10] = { 200, 8, 108},

[10] = { 225, 178, 110},

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

[10] = { 275, 54, 110},

[30] = { 25, 80, 87},

[30] = { 50, 190, 87},

[30] = { 75, 83, 87},

[30] = { 100, 191, 87},

[30] = { 150, 192, 87},

[30] = { 175, 193, 87},

[30] = { 225, 392, 87},

[30] = { 250, 330, 87},

[40] = { 25, 194, 5},

[40] = { 50, 175, 5},

[40] = { 75, 169, 5},

[40] = { 100, 173, 5},

[40] = { 150, 172, 5},

[40] = { 175, 171, 5},

[40] = { 225, 174, 5},

[40] = { 250, 170, 5},

[50] = { 25, 67, 205},

[50] = { 50, 72, 205},

[50] = { 100, 65, 205},

[50] = { 125, 329, 205},

[50] = { 150, 188, 205},

[50] = { 175, 62, 205},

[50] = { 200, 189, 205},

[50] = { 225, 335, 205},

[50] = { 250, 57, 205},

[60] = { 25, 102, 124},

[60] = { 50, 103, 124},

[60] = { 75, 105, 124},

[60] = { 100, 107, 124},

[60] = { 150, 108, 124},

[60] = { 175, 314, 124},

[60] = { 225, 315, 124},

[60] = { 250, 333, 124},

[70] = { 25, 331, 209},

[70] = { 50, 69, 209},

[70] = { 75, 70, 209},

[70] = { 100, 199, 209},

[70] = { 150, 196, 209},

[70] = { 175, 197, 209},

[70] = { 225, 198, 209},

[70] = { 250, 332, 209},

[80] = { 25, 88, 187},

[80] = { 75, 341, 187},

[80] = { 100, 343, 187},

[80] = { 150, 342, 187},

[80] = { 200, 344, 187},

[80] = { 250, 345, 187},

[90] = { 25, 296, 124},

[90] = { 75, 297, 124},

[90] = { 150, 298, 124},

[90] = { 200, 299, 124},

[90] = { 250, 300, 124},

[100] = { 25, 384, 126},

[100] = { 75, 385, 126},

[100] = { 150, 386, 126},

[100] = { 200, 396, 126},

[110] = { 25, 97, 108},

[110] = { 50, 285, 108},

[110] = { 75, 282, 108},

[110] = { 100, 98, 108},

[110] = { 125, 284, 109},

[110] = { 150, 99, 109},

[110] = { 200, 283, 109},

[120] = { 25, 373, 4},

[120] = { 75, 374, 4},

[120] = { 125, 375, 4},

[120] = { 150, 376, 4},

[120] = { 200, 318, 4},

[120] = { 250, 377, 4},

[130] = { 25, 11, 10},

[130] = { 50, 287, 10},

[130] = { 75, 12, 10},

[130] = { 125, 10, 10},

[130] = { 150, 289, 10},

[130] = { 175, 288, 10},

[130] = { 200, 13, 10},

[130] = { 250, 14, 10}

}

function onSay(cid, words, param, channel)

local waittime = 2 -- Tempo de exhaustion

local storage = 5811

 

if exhaustion.check(cid, storage) then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde " .. exhaustion.get(cid, storage) .. " segundos para usar a spell novamente.")

return false

end

local from,to = {x=1001, y=705, z=7},{x=1031, y=737, z=7} -- começo e final do mapa

local from2,to2 = {x=1011, y=705, z=6},{x=1031, y=738, z=6} -- começo e final do mapa

local from3,to3 = {x=1012, y=706, z=5},{x=1032, y=739, z=5} -- começo e final do mapa

local from4,to4 = {x=985, y=598, z=7},{x=1044, y=652, z=7} -- começo e final do mapa

local from5,to5 = {x=986, y=615, z=6},{x=1039, y=647, z=7} -- começo e final do mapa

local from6,to6 = {x=990, y=616, z=5},{x=1040, y=647, z=5} -- começo e final do mapa

if isInRange(getCreaturePosition(cid), from, to) or isInRange(getCreaturePosition(cid), from2, to2) or isInRange(getCreaturePosition(cid), from3, to3) or isInRange(getCreaturePosition(cid), from4, to4) or isInRange(getCreaturePosition(cid), from5, to5) or isInRange(getCreaturePosition(cid), from6, to6) then

doPlayerSendCancel(cid, "Você não pode se Transformar nesta área!") return true

end

doPlayerSay(cid, "transformar")

local voc = config[getPlayerVocation(cid)]

if voc then

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

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

local outfit = {lookType = voc[2]}

doCreatureChangeOutfit(cid, outfit)

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

exhaustion.set(cid, storage, waittime)

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

 

 

 

E o ultimo

 

local config = {

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

[1] = { 25, 2, 66, 208},

[2] = { 50, 3, 91, 208},

[3] = { 75, 4, 18, 208},

[4] = { 100, 5, 31, 208},

[5] = { 125, 6, 92, 208},

[6] = { 150, 7, 40, 208},

[7] = { 175, 8, 305, 208},

[8] = { 200, 9, 320, 208},

[9] = { 225, 10, 179, 208},

[10] = { 250, 11, 394, 208},

[11] = { 275, 12, 397, 208},

[11] = { 350, 13, 124, 208},

[11] = { 350, 13, 124, 208},

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

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

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

[16] = { 100, 17, 306, 108},

[17] = { 125, 18, 7, 108},

[18] = { 150, 19, 94, 108},

[19] = { 175, 20, 59, 108},

[20] = { 200, 21, 8, 108},

[21] = { 225, 22, 178, 110},

[22] = { 250, 23, 95, 110},

[23] = { 275, 24, 54, 110},

[300] = { 25, 301, 80, 87},

[301] = { 50, 302, 190, 87},

[302] = { 75, 303, 83, 87},

[303] = { 100, 304, 191, 87},

[304] = { 150, 305, 192, 87},

[305] = { 175, 306, 193, 87},

[306] = { 225, 307, 392, 87},

[307] = { 250, 308, 330, 87},

[34] = { 25, 35, 194, 5},

[35] = { 50, 36, 175, 5},

[36] = { 75, 37, 169, 5},

[37] = { 100, 38, 173, 5},

[38] = { 150, 39, 172, 5},

[39] = { 175, 40, 171, 5},

[40] = { 225, 41, 174, 5},

[41] = { 250, 42, 170, 5},

[50] = { 25, 51, 67, 205},

[51] = { 50, 52, 72, 205},

[52] = { 75, 53, 158, 205},

[53] = { 100, 54, 65, 205},

[54] = { 125, 55, 329, 205},

[55] = { 150, 56, 188, 205},

[56] = { 175, 57, 62, 205},

[57] = { 200, 58, 189, 205},

[58] = { 225, 59, 335, 205},

[59] = { 250, 60, 57, 205},

[70] = { 25, 71, 102, 124},

[71] = { 50, 72, 103, 124},

[72] = { 75, 73, 105, 124},

[73] = { 100, 74, 107, 124},

[74] = { 150, 75, 108, 124},

[75] = { 175, 76, 314, 124},

[76] = { 225, 77, 315, 124},

[77] = { 250, 78, 333, 124},

[90] = { 25, 91, 331, 209},

[91] = { 50, 92, 69, 209},

[92] = { 75, 93, 70, 209},

[93] = { 100, 94, 199, 209},

[94] = { 150, 95, 196, 209},

[95] = { 175, 96, 197, 209},

[96] = { 225, 97, 198, 209},

[97] = { 250, 98, 332, 209},

[97] = { 250, 98, 332, 209},

[110] = { 25, 111, 88, 187},

[111] = { 75, 112, 341, 187},

[112] = { 100, 113, 343, 187},

[113] = { 150, 114, 342, 187},

[114] = { 200, 115, 344, 187},

[115] = { 250, 116, 345, 187},

[130] = { 25, 131, 296, 124},

[131] = { 75, 132, 297, 124},

[132] = { 150, 133, 298, 124},

[133] = { 200, 134, 299, 124},

[134] = { 250, 135, 300, 124},

[150] = { 25, 151, 384, 126},

[151] = { 75, 152, 385, 126},

[152] = { 150, 153, 386, 126},

[153] = { 200, 154, 396, 126},

[170] = { 25, 171, 97, 108},

[171] = { 50, 172, 285, 108},

[172] = { 75, 173, 282, 108},

[173] = { 100, 174, 98, 108},

[174] = { 125, 175, 284, 109},

[175] = { 150, 176, 99, 109},

[176] = { 200, 177, 283, 109},

[190] = { 25, 191, 373, 4},

[191] = { 75, 192, 374, 4},

[192] = { 125, 193, 375, 4},

[193] = { 150, 194, 376, 4},

[194] = { 200, 195, 318, 4},

[195] = { 250, 196, 377, 4},

[200] = { 25, 201, 11, 10},

[201] = { 50, 202, 287, 10},

[202] = { 75, 203, 12, 10},

[203] = { 125, 204, 10, 10},

[204] = { 150, 205, 289, 10},

[205] = { 175, 206, 288, 10},

[206] = { 200, 207, 13, 10},

[207] = { 250, 208, 14, 10},

}

function onSay(cid, words, param, channel)

local from,to = {x=1001, y=705, z=7},{x=1031, y=737, z=7} -- começo e final do mapa

local from2,to2 = {x=1011, y=705, z=6},{x=1031, y=738, z=6} -- começo e final do mapa

local from3,to3 = {x=1012, y=706, z=5},{x=1032, y=739, z=5} -- começo e final do mapa

local from4,to4 = {x=985, y=598, z=7},{x=1044, y=652, z=7} -- começo e final do mapa

local from5,to5 = {x=986, y=615, z=6},{x=1039, y=647, z=7} -- começo e final do mapa

local from6,to6 = {x=990, y=616, z=5},{x=1040, y=647, z=5} -- começo e final do mapa

if isInRange(getCreaturePosition(cid), from, to) or isInRange(getCreaturePosition(cid), from2, to2) or isInRange(getCreaturePosition(cid), from3, to3) or isInRange(getCreaturePosition(cid), from4, to4) or isInRange(getCreaturePosition(cid), from5, to5) or isInRange(getCreaturePosition(cid), from6, to6) then

doPlayerSendCancel(cid, "Você não pode se Transformar nesta área!") return true

end

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ê 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

[30]looktype rock lee = 111 roupa<

[130] lookytype kakashi = 203 roupa<

[40] looktype sakura = 241 roupa<

[110] looktype itachi = esse aqui ta faltando a do 250 e a do 350 a do 250 é a 211 e a do 350 é o num 359

[100] looktype tenten = 304 roupa<

 

 

[140] lookytype kankuro = 364 roupa<

[120] lookytype killer bee = 395 roupa<

[10]looktype sasuke = 37 roupa<

[70]looktype kiba = 36 roupa<

[50]looktype gaara = 307 roupa<

 

Roksas Isto aqui é o que eu quero te pedir se voce pode adicionar para mim essas transformações

na pasta transformar que eu vo te manda essa aqui são as looktype

e os numero que esta entre parenteses são pra mostrar qual é qual onde tem que colocar.

 

 

 

 

local config = {

--[vocation id] = { {lvl inicial, lvl maximo}, looktype, efeito}

[1] = { {lvl = {25, 49}, look = 66, eff = 208},

{lvl = {50, 74}, look = 91, eff = 208},

{lvl = {75, 99}, look = 18, eff = 208},

{lvl = {100, 124}, look = 31, eff = 208},

{lvl = {125, 149}, look = 92, eff = 208},

{lvl = {150, 174}, look = 40, eff = 208},

{lvl = {175, 199}, look = 305, eff = 208},

{lvl = {200, 224}, look = 320, eff = 208},

{lvl = {225, 249}, look = 179, eff = 208},

{lvl = {250, 274}, look = 394, eff = 208},

{lvl = {275, 349}, look = 397, eff = 208},

{lvl = {350, 999}, look = 124, eff = 208},

},

[10] = { {lvl = {25, 49}, look = 93, eff = 108},

{lvl = {50, 74}, look = 6, eff = 108},

{lvl = {75, 99}, look = 5, eff = 108},

{lvl = {100, 124}, look = 306, eff = 108},

{lvl = {125, 149}, look = 7, eff = 108},

{lvl = {150, 174}, look = 94, eff = 108},

{lvl = {175, 199}, look = 59, eff = 108},

{lvl = {200, 224}, look = 8, eff = 108},

{lvl = {225, 249}, look = 178, eff = 108},

{lvl = {250, 274}, look = 95, eff = 108},

{lvl = {275, 999}, look = 54, eff = 108},

},

[30] = { {lvl = {25, 49}, look = 80, eff = 87},

{lvl = {50, 74}, look = 190, eff = 87},

{lvl = {75, 99}, look = 83, eff = 87},

{lvl = {100, 149}, look = 191, eff = 87},

{lvl = {150, 174}, look = 192, eff = 87},

{lvl = {175, 224}, look = 193, eff = 87},

{lvl = {225, 249}, look = 392, eff = 87},

{lvl = {250, 999}, look = 330, eff = 87},

},

[40] = { {lvl = {25, 49}, look = 194, eff = 5},

{lvl = {50, 74}, look = 175, eff = 5},

{lvl = {75, 99}, look = 169, eff = 5},

{lvl = {100, 149}, look = 173, eff = 5},

{lvl = {150, 174}, look = 172, eff = 5},

{lvl = {175, 224}, look = 171, eff = 5},

{lvl = {225, 249}, look = 174, eff = 5},

{lvl = {250, 999}, look = 170, eff = 5},

},

[50] = { {lvl = {25, 49}, look = 67, eff = 205},

{lvl = {50, 99}, look = 72, eff = 205},

{lvl = {100, 124}, look = 65, eff = 205},

{lvl = {125, 149}, look = 329, eff = 205},

{lvl = {150, 174}, look = 188, eff = 205},

{lvl = {175, 199}, look = 62, eff = 205},

{lvl = {200, 224}, look = 189, eff = 205},

{lvl = {225, 249}, look = 335, eff = 205},

{lvl = {250, 999}, look = 57, eff = 205},

},

[60] = { {lvl = {25, 49}, look = 102, eff = 124},

{lvl = {50, 74}, look = 103, eff = 124},

{lvl = {75, 99}, look = 105, eff = 124},

{lvl = {100, 149}, look = 107, eff = 124},

{lvl = {150, 174}, look = 108, eff = 124},

{lvl = {175, 224}, look = 314, eff = 124},

{lvl = {225, 249}, look = 315, eff = 124},

{lvl = {250, 999}, look = 333, eff = 124},

},

[70] = { {lvl = {25, 49}, look = 331, eff = 87},

{lvl = {50, 74}, look = 69, eff = 87},

{lvl = {75, 99}, look = 70, eff = 87},

{lvl = {100, 149}, look = 199, eff = 87},

{lvl = {150, 174}, look = 196, eff = 87},

{lvl = {175, 224}, look = 197, eff = 87},

{lvl = {225, 249}, look = 198, eff = 87},

{lvl = {250, 999}, look = 332, eff = 87},

},

[80] = { {lvl = {25, 74}, look = 88, eff = 187},

{lvl = {75, 99}, look = 341, eff = 187},

{lvl = {100, 149}, look = 343, eff = 187},

{lvl = {150, 199}, look = 342, eff = 187},

{lvl = {200, 249}, look = 344, eff = 187},

{lvl = {250, 999}, look = 345, eff = 187},

},

[90] = { {lvl = {25, 74}, look = 296, eff = 124},

{lvl = {75, 149}, look = 297, eff = 124},

{lvl = {150, 199}, look = 298, eff = 124},

{lvl = {200, 249}, look = 299, eff = 124},

{lvl = {250, 999}, look = 300, eff = 124},

},

[100] = { {lvl = {25, 74}, look = 384, eff = 126},

{lvl = {75, 149}, look = 385, eff = 126},

{lvl = {150, 199}, look = 386, eff = 126},

{lvl = {200, 999}, look = 396, eff = 126},

},

[110] = { {lvl = {25, 49}, look = 97, eff = 108},

{lvl = {50, 74}, look = 285, eff = 108},

{lvl = {75, 99}, look = 282, eff = 108},

{lvl = {100, 149}, look = 98, eff = 108},

{lvl = {150, 174}, look = 284, eff = 108},

{lvl = {175, 199}, look = 99, eff = 108},

{lvl = {200, 999}, look = 283, eff = 108},

},

[120] = { {lvl = {25, 74}, look = 373, eff = 4},

{lvl = {75, 99}, look = 374, eff = 4},

{lvl = {100, 149}, look = 375, eff = 4},

{lvl = {150, 199}, look = 376, eff = 4},

{lvl = {200, 249}, look = 318, eff = 4},

{lvl = {250, 999}, look = 377, eff = 4},

},

[130] = { {lvl = {25, 49}, look = 11, eff = 10},

{lvl = {50, 74}, look = 287, eff = 10},

{lvl = {75, 99}, look = 12, eff = 10},

{lvl = {100, 149}, look = 10, eff = 10},

{lvl = {150, 174}, look = 289, eff = 10},

{lvl = {175, 224}, look = 288, eff = 10},

{lvl = {225, 249}, look = 13, eff = 10},

{lvl = {250, 999}, look = 14, eff = 10},

},

[140] = { {lvl = {25, 74}, look = 312, eff = 190},

{lvl = {75, 149}, look = 313, eff = 190},

{lvl = {150, 999}, look = 311, eff = 190},

},

}

function onSay(cid, words, param, channel)

local waittime = 10 -- Tempo de exhaustion

local storage = 5812

local from,to = {x=1001, y=705, z=7},{x=1031, y=737, z=7} -- começo e final do mapa

local from2,to2 = {x=1011, y=705, z=6},{x=1031, y=738, z=6} -- começo e final do mapa

local from3,to3 = {x=1012, y=706, z=5},{x=1032, y=739, z=5} -- começo e final do mapa

local from4,to4 = {x=985, y=598, z=7},{x=1044, y=652, z=7} -- começo e final do mapa

local from5,to5 = {x=986, y=615, z=6},{x=1039, y=647, z=7} -- começo e final do mapa

local from6,to6 = {x=990, y=616, z=5},{x=1040, y=647, z=5} -- começo e final do mapa

if isInRange(getCreaturePosition(cid), from, to) or isInRange(getCreaturePosition(cid), from2, to2) or isInRange(getCreaturePosition(cid), from3, to3) or isInRange(getCreaturePosition(cid), from4, to4) or isInRange(getCreaturePosition(cid), from5, to5) or isInRange(getCreaturePosition(cid), from6, to6) then

doPlayerSendCancel(cid, "Você não pode se Transformar nesta área!") return true

end

if exhaustion.check(cid, storage) then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "VOCE JA SE TRANSFORMOU, VOCE JA ESTA COM OUTFIT DA SUA ATUAL SAGA!")

return false

end

doPlayerSay(cid, "transformar")

local voc = config[getPlayerVocation(cid)]

if voc then

for i = 1, #voc do

if getPlayerLevel(cid) >= voc.lvl[1] and getPlayerLevel(cid) <= voc.lvl[2] then

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

exhaustion.set(cid, storage, waittime)

local outfit = {lookType = voc.look}

doCreatureChangeOutfit(cid, outfit)

doSendMagicEffect(getCreaturePosition(cid), voc.eff)

return true

end

end

doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Você precisa de level 25 para usar sua primeira transformação e passar para a proxima saga!")

else

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

end

return true

end

 

 

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

sim são de leveis 350 apenas a 211 do itachi que é de 250 que ta faltando no servidor

ai depois voce coloca a outra dele que é a 359 q eu deixei.

 

Se você precisar fazer algumas outras mudanças nas outras pastas de transform também é so pedir, por enquanto

só mandei a transform

tem a transform 1, a transform2, e a copia q é a transformbk

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

Espero que funcione! Poste resultados.

 

 

local config = {

--[vocation id] = { {lvl inicial, lvl maximo}, looktype, efeito}

[1] = { {lvl = {25, 49}, look = 66, eff = 208},

{lvl = {50, 74}, look = 91, eff = 208},

{lvl = {75, 99}, look = 18, eff = 208},

{lvl = {100, 124}, look = 31, eff = 208},

{lvl = {125, 149}, look = 92, eff = 208},

{lvl = {150, 174}, look = 40, eff = 208},

{lvl = {175, 199}, look = 305, eff = 208},

{lvl = {200, 224}, look = 320, eff = 208},

{lvl = {225, 249}, look = 179, eff = 208},

{lvl = {250, 274}, look = 394, eff = 208},

{lvl = {275, 349}, look = 397, eff = 208},

{lvl = {350, 999}, look = 124, eff = 208},

},

[10] = { {lvl = {25, 49}, look = 93, eff = 108},

{lvl = {50, 74}, look = 6, eff = 108},

{lvl = {75, 99}, look = 5, eff = 108},

{lvl = {100, 124}, look = 306, eff = 108},

{lvl = {125, 149}, look = 7, eff = 108},

{lvl = {150, 174}, look = 94, eff = 108},

{lvl = {175, 199}, look = 59, eff = 108},

{lvl = {200, 224}, look = 8, eff = 108},

{lvl = {225, 249}, look = 178, eff = 108},

{lvl = {250, 274}, look = 95, eff = 108},

{lvl = {275, 349}, look = 54, eff = 108},

{lvl = {350, 999}, look = 37, eff = 108},

},

[30] = { {lvl = {25, 49}, look = 80, eff = 87},

{lvl = {50, 74}, look = 190, eff = 87},

{lvl = {75, 99}, look = 83, eff = 87},

{lvl = {100, 149}, look = 191, eff = 87},

{lvl = {150, 174}, look = 192, eff = 87},

{lvl = {175, 224}, look = 193, eff = 87},

{lvl = {225, 249}, look = 392, eff = 87},

{lvl = {250, 349}, look = 330, eff = 87},

{lvl = {350, 999}, look = 111, eff = 87},

},

[40] = { {lvl = {25, 49}, look = 194, eff = 5},

{lvl = {50, 74}, look = 175, eff = 5},

{lvl = {75, 99}, look = 169, eff = 5},

{lvl = {100, 149}, look = 173, eff = 5},

{lvl = {150, 174}, look = 172, eff = 5},

{lvl = {175, 224}, look = 171, eff = 5},

{lvl = {225, 249}, look = 174, eff = 5},

{lvl = {250, 349}, look = 170, eff = 5},

{lvl = {350, 999}, look = 241, eff = 5},

},

[50] = { {lvl = {25, 49}, look = 67, eff = 205},

{lvl = {50, 99}, look = 72, eff = 205},

{lvl = {100, 124}, look = 65, eff = 205},

{lvl = {125, 149}, look = 329, eff = 205},

{lvl = {150, 174}, look = 188, eff = 205},

{lvl = {175, 199}, look = 62, eff = 205},

{lvl = {200, 224}, look = 189, eff = 205},

{lvl = {225, 249}, look = 335, eff = 205},

{lvl = {250, 349}, look = 57, eff = 205},

{lvl = {350, 999}, look = 307, eff = 205},

},

[60] = { {lvl = {25, 49}, look = 102, eff = 124},

{lvl = {50, 74}, look = 103, eff = 124},

{lvl = {75, 99}, look = 105, eff = 124},

{lvl = {100, 149}, look = 107, eff = 124},

{lvl = {150, 174}, look = 108, eff = 124},

{lvl = {175, 224}, look = 314, eff = 124},

{lvl = {225, 249}, look = 315, eff = 124},

{lvl = {250, 999}, look = 333, eff = 124},

},

[70] = { {lvl = {25, 49}, look = 331, eff = 87},

{lvl = {50, 74}, look = 69, eff = 87},

{lvl = {75, 99}, look = 70, eff = 87},

{lvl = {100, 149}, look = 199, eff = 87},

{lvl = {150, 174}, look = 196, eff = 87},

{lvl = {175, 224}, look = 197, eff = 87},

{lvl = {225, 249}, look = 198, eff = 87},

{lvl = {250, 349}, look = 332, eff = 87},

{lvl = {350, 999}, look = 36, eff = 87},

},

[80] = { {lvl = {25, 74}, look = 88, eff = 187},

{lvl = {75, 99}, look = 341, eff = 187},

{lvl = {100, 149}, look = 343, eff = 187},

{lvl = {150, 199}, look = 342, eff = 187},

{lvl = {200, 249}, look = 344, eff = 187},

{lvl = {250, 999}, look = 345, eff = 187},

},

[90] = { {lvl = {25, 74}, look = 296, eff = 124},

{lvl = {75, 149}, look = 297, eff = 124},

{lvl = {150, 199}, look = 298, eff = 124},

{lvl = {200, 249}, look = 299, eff = 124},

{lvl = {250, 999}, look = 300, eff = 124},

},

[100] = { {lvl = {25, 74}, look = 384, eff = 126},

{lvl = {75, 149}, look = 385, eff = 126},

{lvl = {150, 199}, look = 386, eff = 126},

{lvl = {200, 349}, look = 396, eff = 126},

{lvl = {350, 999}, look = 304, eff = 126},

},

[110] = { {lvl = {25, 49}, look = 97, eff = 108},

{lvl = {50, 74}, look = 285, eff = 108},

{lvl = {75, 99}, look = 282, eff = 108},

{lvl = {100, 149}, look = 98, eff = 108},

{lvl = {150, 174}, look = 284, eff = 108},

{lvl = {175, 199}, look = 99, eff = 108},

{lvl = {200, 249}, look = 283, eff = 108},

{lvl = {250, 349}, look = 211, eff = 108},

{lvl = {350, 999}, look = 359, eff = 108},

},

[120] = { {lvl = {25, 74}, look = 373, eff = 4},

{lvl = {75, 99}, look = 374, eff = 4},

{lvl = {100, 149}, look = 375, eff = 4},

{lvl = {150, 199}, look = 376, eff = 4},

{lvl = {200, 249}, look = 318, eff = 4},

{lvl = {250, 349}, look = 377, eff = 4},

{lvl = {350, 999}, look = 395, eff = 4},

},

[130] = { {lvl = {25, 49}, look = 11, eff = 10},

{lvl = {50, 74}, look = 287, eff = 10},

{lvl = {75, 99}, look = 12, eff = 10},

{lvl = {100, 149}, look = 10, eff = 10},

{lvl = {150, 174}, look = 289, eff = 10},

{lvl = {175, 224}, look = 288, eff = 10},

{lvl = {225, 249}, look = 13, eff = 10},

{lvl = {250, 349}, look = 14, eff = 10},

{lvl = {350, 999}, look = 203, eff = 10},

},

[140] = { {lvl = {25, 74}, look = 312, eff = 190},

{lvl = {75, 149}, look = 313, eff = 190},

{lvl = {150, 349}, look = 311, eff = 190},

{lvl = {350, 999}, look = 364, eff = 190},

},

}

function onSay(cid, words, param, channel)

local waittime = 10 -- Tempo de exhaustion

local storage = 5812

local from,to = {x=1001, y=705, z=7},{x=1031, y=737, z=7} -- começo e final do mapa

local from2,to2 = {x=1011, y=705, z=6},{x=1031, y=738, z=6} -- começo e final do mapa

local from3,to3 = {x=1012, y=706, z=5},{x=1032, y=739, z=5} -- começo e final do mapa

local from4,to4 = {x=985, y=598, z=7},{x=1044, y=652, z=7} -- começo e final do mapa

local from5,to5 = {x=986, y=615, z=6},{x=1039, y=647, z=7} -- começo e final do mapa

local from6,to6 = {x=990, y=616, z=5},{x=1040, y=647, z=5} -- começo e final do mapa

if isInRange(getCreaturePosition(cid), from, to) or isInRange(getCreaturePosition(cid), from2, to2) or isInRange(getCreaturePosition(cid), from3, to3) or isInRange(getCreaturePosition(cid), from4, to4) or isInRange(getCreaturePosition(cid), from5, to5) or isInRange(getCreaturePosition(cid), from6, to6) then

doPlayerSendCancel(cid, "Você não pode se Transformar nesta área!") return true

end

if exhaustion.check(cid, storage) then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "VOCE JA SE TRANSFORMOU, VOCE JA ESTA COM OUTFIT DA SUA ATUAL SAGA!")

return false

end

doPlayerSay(cid, "transformar")

local voc = config[getPlayerVocation(cid)]

if voc then

for i = 1, #voc do

if getPlayerLevel(cid) >= voc.lvl[1] and getPlayerLevel(cid) <= voc.lvl[2] then

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

exhaustion.set(cid, storage, waittime)

local outfit = {lookType = voc.look}

doCreatureChangeOutfit(cid, outfit)

doSendMagicEffect(getCreaturePosition(cid), voc.eff)

return true

end

end

doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Você precisa de level 25 para usar sua primeira transformação e passar para a proxima saga!")

else

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

end

return true

end

 

Link para o comentário
Compartilhar em outros sites

não precisa editar os outros arquivos de transform.lua?

 

nossa velho tu é muito bom nisso tá tudo certinho ja pqp

 

tu é zika cara ^^ ta certinho as transform brigado ai msm mano faltou algumas mais eu ainda tenhu q arrumar

Link para o comentário
Compartilhar em outros sites

  • 5 years later...
A questão neste tópico de suporte foi encerrada por falta de respostas. Este tópico está fechado e foi movido para Suporte - Tópicos Sem Resposta.

+ Caso a dúvida não tenha sido resolvida você poderá criar outro tópico solicitando ajuda.
* Lembre-se que é permitido dar UP no tópico a cada 24 horas para assim o destacar e manter movimentado.
Link para o comentário
Compartilhar em outros sites

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