Ir para conteúdo

[Encerrado] TalkAction Transformar/Reverter [AJUDA URGENTE]


wesleybeek

Posts Recomendados

Olá Galera preciso Muito da Ajudas de Voces Fodões ^^

 

Tenho Esse Talkaction no Meu Server de Narutibia: 8.54 (Funciona Perfeitamente) Mas o problema é o Seguinte Queria que nesse Sistema teria Exhastion Slá (Por que tipo quando player fala Transformar ele Transforma mas ele Pode ficar Falando Varias vezes sem Exhastion como não é Spell eu nao sei Onde Mexe para Fazer esse Tipo de Coisa.

 

 

Transformar:

<talkaction words="transformar" event="script" value="transformar.lua"/>

 

local config = {
--[vocation id] = { level, nova voc, looktype, efeito}
[1] = { 1, 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, 663, 208},
[9] = { 225, 10, 179, 208},
[10] = { 250, 11, 559, 208},
[11] = { 275, 12, 560, 208},
[12] = { 300, 999, 659, 208},
[13] = { 1, 14, 93, 108},
[14] = { 50, 15, 6, 108},
[15] = { 75, 16, 5, 108},
[16] = { 100, 17, 540, 108},
[17] = { 125, 18, 94, 108},
[18] = { 150, 19, 59, 108},
[19] = { 175, 20, 8, 108},
[20] = { 200, 21, 660, 108},
[21] = { 225, 22, 95, 110},
[22] = { 250, 23, 587, 110},
[23] = { 275, 24, 623, 110},
[25] = { 1, 26, 80, 184},
[26] = { 50, 27, 190, 184},
[27] = { 75, 28, 83, 184},
[28] = { 100, 29, 191, 184},
[29] = { 150, 30, 192, 184},
[30] = { 175, 31, 109, 184},
[31] = { 225, 32, 81, 184},
[32] = { 250, 33, 671, 184},
[34] = { 1, 35, 194, 5},
[35] = { 50, 36, 175, 5},
[36] = { 75, 37, 661, 5},
[37] = { 100, 38, 622, 5},
[38] = { 150, 39, 550, 5},
[39] = { 175, 40, 662, 5},
[40] = { 225, 41, 174, 5},
[41] = { 250, 42, 597, 5},
[50] = { 1, 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] = { 1, 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, 561, 124},
[90] = { 1, 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, 668, 209},
[96] = { 225, 97, 517, 209},
[97] = { 250, 98, 516, 209},
[97] = { 250, 98, 516, 209},
[110] = { 1, 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] = { 1, 131, 296, 124},
[131] = { 75, 132, 297, 124},
[132] = { 150, 133, 299, 124},
[133] = { 200, 134, 553, 124},
[134] = { 250, 135, 554, 124},
[150] = { 1, 151, 384, 126},
[151] = { 75, 152, 385, 126},
[152] = { 150, 153, 386, 126},
[153] = { 200, 154, 700, 126},
[170] = { 1, 171, 97, 108},
[171] = { 50, 172, 285, 108},
[172] = { 75, 173, 98, 108},
[173] = { 100, 174, 99, 108},
[174] = { 125, 175, 629, 109},
[175] = { 150, 176, 555, 109},
[176] = { 200, 177, 211, 109},
[190] = { 1, 191, 373, 4},
[191] = { 75, 192, 374, 4},
[192] = { 125, 193, 375, 4},
[193] = { 150, 194, 376, 4},
[194] = { 200, 195, 268, 4},
[195] = { 250, 196, 395, 4},
[200] = { 1, 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, 13, 10},
[206] = { 200, 207, 14, 10},
[207] = { 250, 208, 203, 10},
[208] = { 300, 209, 595, 10},
[209] = { 350, 1000, 694, 10},
[210] = { 1, 211, 452, 108},
[211] = { 25, 212, 286, 108},
[212] = { 50, 213, 454, 108},
[213] = { 100, 214, 455, 108},
[214] = { 150, 215, 453, 108},
[215] = { 175, 216, 458, 108},
[216] = { 200, 217, 459, 193},
[217] = { 250, 218, 460, 193},
[222] = { 10, 223, 312, 190},
[223] = { 25, 224, 311, 190},
[224] = { 50, 225, 324, 190},
[225] = { 100, 226, 319, 190},
[226] = { 150, 227, 326, 190},
[227] = { 200, 228, 313, 190},
[228] = { 225, 229, 364, 190},
[230] = { 10, 231, 421, 57},
[231] = { 50, 232, 411, 57},
[232] = { 75, 233, 412, 57},
[233] = { 100, 234, 413, 57},
[234] = { 125, 235, 414, 57},
[235] = { 150, 236, 422, 57},
[236] = { 175, 237, 423, 57},
[237] = { 200, 238, 424, 57},
[238] = { 225, 239, 426, 57},
[239] = { 250, 240, 418, 57},
[240] = { 275, 241, 556, 57},
[241] = { 300, 242, 416, 57},
[242] = { 325, 243, 557, 57},
[243] = { 350, 244, 673, 57},
[250] = { 50, 251, 216, 211},
[251] = { 100, 252, 215, 211},
[252] = { 120, 253, 523, 211},
[253] = { 175, 254, 586, 211},
[254] = { 225, 255, 522, 211},
[255] = { 250, 256, 521, 211},
[256] = { 275, 257, 520, 211},
[257] = { 300, 258, 217, 211},
[258] = { 325, 259, 593, 211},
[260] = { 50, 261, 542, 188},
[261] = { 100, 262, 538, 188},
[262] = { 125, 263, 544, 188},
[263] = { 175, 264, 536, 188},
[264] = { 225, 265, 545, 188},
[265] = { 250, 266, 537, 188},
[270] = { 50, 271, 407, 179},
[271] = { 100, 272, 440, 179},
[272] = { 150, 273, 441, 179},
[273] = { 175, 274, 541, 179},
[274] = { 200, 275, 442, 179},
[275] = { 220, 276, 443, 179},
[276] = { 275, 277, 213, 179},
[277] = { 320, 278, 633, 179},
[280] = { 75, 281, 346, 193},
[281] = { 150, 282, 546, 193},
[282] = { 220, 283, 534, 193},
[283] = { 275, 284, 547, 193},
[284] = { 300, 285, 549, 193},
[290] = { 10, 291, 476, 108},
[291] = { 50, 292, 477, 108},
[292] = { 75, 293, 478, 108},
[293] = { 100, 294, 479, 108},
[294] = { 125, 295, 482, 108},
[295] = { 150, 296, 484, 108},
[296] = { 175, 297, 485, 193},
[297] = { 200, 298, 594, 193},
[298] = { 225, 299, 486, 193},
[299] = { 250, 300, 590, 193},
[300] = { 275, 301, 639, 193},
[301] = { 300, 302, 640, 193},
[310] = { 75, 311, 22, 122},
[311] = { 150, 312, 581, 122},
[312] = { 175, 313, 551, 122},
[313] = { 250, 314, 533, 122},
[314] = { 300, 315, 616, 122},
[320] = { 50, 321, 260, 122},
[321] = { 75, 322, 222, 122},
[322] = { 120, 323, 642, 122},
[323] = { 175, 324, 658, 122},
[324] = { 220, 325, 643, 122},
[325] = { 250, 326, 644, 122},
[326] = { 275, 327, 684, 122},
[327] = { 330, 328, 685, 122},
[330] = { 50, 321, 260, 122},
[331] = { 75, 322, 222, 122},
[332] = { 120, 323, 642, 122},
[333] = { 175, 324, 658, 122}
}
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

 

 

 

Reverter:

<talkaction words="reverter" event="script" value="reverter.lua"/>

 

local config = {
--[vocation id] = { level, nova voc, looktype, efeito}
[999] = { 300, 12, 560, 208},
[12] = { 275, 11, 559, 208},
[11] = { 250, 10, 179, 208},
[10] = { 225, 9, 663, 208},
[9] = { 200, 8, 305, 208},
[8] = { 175, 7, 40, 208},
[7] = { 150, 6, 92, 208},
[6] = { 125, 5, 31, 208},
[5] = { 100, 4, 18, 208},
[4] = { 75, 3, 91, 208},
[3] = { 50, 2, 66, 208},
[2] = { 25, 1, 71, 208},
[24] = { 275, 23, 587, 110},
[23] = { 250, 22, 660, 110},
[22] = { 225, 21, 8, 108},
[21] = { 200, 20, 59, 108},
[20] = { 175, 19, 94, 108},
[19] = { 150, 18, 540, 108},
[18] = { 125, 17, 306, 108},
[17] = { 100, 16, 5, 108},
[16] = { 75, 15, 6, 108},
[15] = { 50, 14, 93, 108},
[14] = { 50, 13, 2, 108},
[33] = { 250, 32, 392, 184},
[32] = { 225, 31, 193, 184},
[31] = { 175, 30, 192, 184},
[30] = { 150, 29, 191, 184},
[29] = { 100, 28, 83, 184},
[28] = { 75, 27, 190, 184},
[27] = { 50, 26, 80, 184},
[26] = { 25, 25, 30, 184},
[42] = { 250, 41, 174, 5},
[41] = { 250, 40, 662, 5},
[40] = { 250, 39, 550, 5},
[39] = { 250, 38, 622, 5},
[38] = { 250, 37, 661, 5},
[37] = { 250, 36, 175, 5},
[36] = { 250, 35, 194, 5},
[35] = { 250, 34, 195, 5},
[60] = { 250, 59, 335, 205},
[59] = { 225, 58, 189, 205},
[58] = { 200, 57, 62, 205},
[57] = { 175, 56, 188, 205},
[56] = { 150, 55, 329, 205},
[55] = { 125, 54, 65, 205},
[54] = { 100, 53, 158, 205},
[53] = { 75, 52, 72, 205},
[52] = { 50, 51, 67, 205},
[51] = { 25, 50, 53, 205},
[78] = { 250, 77, 315, 124},
[77] = { 225, 76, 314, 124},
[76] = { 175, 75, 108, 124},
[75] = { 150, 74, 107, 124},
[74] = { 100, 73, 105, 124},
[73] = { 75, 72, 103, 124},
[72] = { 50, 71, 102, 124},
[71] = { 25, 70, 101, 124},
[98] = { 250, 97, 517, 209},
[97] = { 225, 96, 668, 209},
[96] = { 175, 95, 196, 209},
[95] = { 150, 94, 199, 209},
[94] = { 100, 93, 70, 209},
[93] = { 75, 92, 69, 209},
[92] = { 50, 91, 331, 209},
[91] = { 25, 90, 50, 209},
[116] = { 25, 115, 344, 187},
[115] = { 75, 114, 342, 187},
[114] = { 100, 113, 343, 187},
[113] = { 150, 112, 341, 187},
[112] = { 200, 111, 88, 187},
[111] = { 250, 110, 340, 187},
[135] = { 25, 134, 553, 124},
[134] = { 25, 133, 298, 124},
[133] = { 75, 132, 297, 124},
[132] = { 150, 131, 296, 124},
[131] = { 200, 130, 295, 124},
[154] = { 200, 153, 386, 126},
[153] = { 150, 152, 385, 126},
[152] = { 75, 151, 384, 126},
[151] = { 25, 150, 383, 126},
[177] = { 200, 176, 555, 109},
[176] = { 150, 175, 629, 109},
[175] = { 125, 174, 99, 109},
[174] = { 100, 173, 98, 109},
[173] = { 75, 172, 285, 108},
[172] = { 50, 171, 97, 108},
[171] = { 25, 170, 96, 108},
[196] = { 225, 195, 268, 4},
[195] = { 225, 194, 376, 4},
[194] = { 175, 193, 375, 4},
[193] = { 125, 192, 374, 4},
[192] = { 125, 191, 373, 4},
[191] = { 25, 190, 372, 4},
[1000] = { 300, 209, 595, 10},
[209] = { 250, 208, 203, 10},
[208] = { 250, 207, 13, 10},
[207] = { 200, 206, 288, 10},
[206] = { 175, 205, 289, 10},
[205] = { 150, 204, 10, 10},
[204] = { 125, 203, 12, 10},
[203] = { 75, 202, 287, 10},
[202] = { 50, 201, 11, 10},
[201] = { 25, 200, 632, 10},
[218] = { 250, 217, 459, 193},
[217] = { 220, 216, 458, 193},
[216] = { 200, 215, 456, 108},
[215] = { 175, 214, 453, 108},
[214] = { 150, 213, 455, 108},
[213] = { 100, 212, 454, 108},
[212] = { 75, 211, 286, 108},
[211] = { 25, 210, 452, 108},
[244] = { 375, 243, 419, 57},
[243] = { 350, 242, 557, 57},
[242] = { 325, 241, 416, 57},
[241] = { 300, 240, 556, 57},
[240] = { 275, 239, 417, 57},
[239] = { 250, 238, 418, 57},
[238] = { 225, 237, 426, 57},
[237] = { 200, 236, 424, 57},
[236] = { 175, 235, 423, 57},
[235] = { 150, 234, 422, 57},
[234] = { 125, 233, 414, 57},
[233] = { 100, 232, 413, 57},
[232] = { 75, 231, 412, 57},
[231] = { 50, 230, 411, 57},
[229] = { 250, 228, 313, 190},
[228] = { 225, 227, 326, 190},
[227] = { 200, 226, 319, 190},
[226] = { 150, 225, 324, 190},
[225] = { 100, 224, 311, 190},
[224] = { 50, 223, 312, 190},
[223] = { 25, 222, 309, 190},
[259] = { 350, 258, 217, 211},
[258] = { 325, 257, 520, 211},
[257] = { 300, 256, 521, 211},
[256] = { 275, 255, 522, 211},
[255] = { 250, 254, 586, 211},
[254] = { 225, 253, 523, 211},
[253] = { 175, 252, 215, 211},
[252] = { 120, 251, 216, 211},
[251] = { 100, 250, 214, 211},
[266] = { 275, 265, 545, 188},
[265] = { 250, 264, 536, 188},
[264] = { 225, 263, 544, 188},
[263] = { 175, 262, 538, 188},
[262] = { 120, 261, 542, 188},
[261] = { 100, 260, 539, 188},
[278] = { 275, 277, 213, 179},
[277] = { 220, 276, 443, 179},
[276] = { 200, 275, 442, 179},
[275] = { 175, 274, 541, 179},
[274] = { 150, 273, 441, 179},
[273] = { 100, 272, 440, 179},
[272] = { 50, 271, 407, 179},
[271] = { 1, 270, 406, 179},
[285] = { 275, 284, 547, 193},
[284] = { 220, 283, 534, 193},
[283] = { 150, 282, 546, 193},
[282] = { 75, 281, 346, 193},
[281] = { 1, 280, 548, 193},
[302] = { 325, 301, 639, 193},
[301] = { 300, 300, 590, 193},
[300] = { 275, 299, 486, 193},
[299] = { 250, 298, 594, 193},
[298] = { 225, 297, 485, 193},
[297] = { 200, 296, 484, 108},
[296] = { 175, 295, 482, 108},
[295] = { 150, 294, 479, 108},
[294] = { 125, 293, 478, 108},
[293] = { 100, 292, 477, 108},
[292] = { 75, 291, 476, 108},
[291] = { 50, 290, 35, 108},
[315] = { 250, 314, 533, 122},
[314] = { 175, 313, 551, 122},
[313] = { 150, 312, 581, 122},
[312] = { 75, 311, 22, 122},
[311] = { 50, 310, 630, 122},
[327] = { 330, 326, 684, 122},
[326] = { 275, 325, 643, 122},
[325] = { 250, 324, 658, 122},
[324] = { 220, 323, 642, 122},
[323] = { 175, 322, 222, 122},
[322] = { 120, 321, 260, 122},
[321] = { 75, 320, 641, 122}
}
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 Reverter nesta área!") return true
end
doPlayerSay(cid, "Reverter")
local voc = config[getPlayerVocation(cid)]
if voc then
if getPlayerLevel(cid) >= voc[1] then
doPlayerSetVocation(cid, voc[2])
doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Você Reverteu!")
local outfit = {lookType = voc[3]}
doCreatureChangeOutfit(cid, outfit)
doSendMagicEffect(getCreaturePosition(cid), voc[4])
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Não da pra Reverter Tente Relogar.")
end
else
doPlayerSendCancel(cid, "Você não pode se Reverter!")
end
return true
end

 

 

Por Favor me Ajudem Preciso Muito disso para quer Server Melhor Mais.. RESP ++ (Pra quem ajudar, bom Acabou Hoje mas amanha respeito Garantido) Agradeço desde Já!


Bom Desculpa O Tópico Ficar "Muito Comprido" mas eu Não sei Fazer: Quote que tem escrito (Mostrar) quem puder me ajudar com isso Tambem, para os Tópicos ficar Mais Organizado.. Agradeceria!

Link para o comentário
Compartilhar em outros sites

tenta assim...nao testei...

 

 

local config = {

function onSay(cid, words, param)
if exhaustion.get(cid, 103) then
doPlayerSendCancel(cid, 'Slow down.')
return true
end
exhaustion.set(cid, 103, 1)

--[vocation id] = { level, nova voc, looktype, efeito}
[1] = { 1, 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, 663, 208},
[9] = { 225, 10, 179, 208},
[10] = { 250, 11, 559, 208},
[11] = { 275, 12, 560, 208},
[12] = { 300, 999, 659, 208},
[13] = { 1, 14, 93, 108},
[14] = { 50, 15, 6, 108},
[15] = { 75, 16, 5, 108},
[16] = { 100, 17, 540, 108},
[17] = { 125, 18, 94, 108},
[18] = { 150, 19, 59, 108},
[19] = { 175, 20, 8, 108},
[20] = { 200, 21, 660, 108},
[21] = { 225, 22, 95, 110},
[22] = { 250, 23, 587, 110},
[23] = { 275, 24, 623, 110},
[25] = { 1, 26, 80, 184},
[26] = { 50, 27, 190, 184},
[27] = { 75, 28, 83, 184},
[28] = { 100, 29, 191, 184},
[29] = { 150, 30, 192, 184},
[30] = { 175, 31, 109, 184},
[31] = { 225, 32, 81, 184},
[32] = { 250, 33, 671, 184},
[34] = { 1, 35, 194, 5},
[35] = { 50, 36, 175, 5},
[36] = { 75, 37, 661, 5},
[37] = { 100, 38, 622, 5},
[38] = { 150, 39, 550, 5},
[39] = { 175, 40, 662, 5},
[40] = { 225, 41, 174, 5},
[41] = { 250, 42, 597, 5},
[50] = { 1, 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] = { 1, 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, 561, 124},
[90] = { 1, 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, 668, 209},
[96] = { 225, 97, 517, 209},
[97] = { 250, 98, 516, 209},
[97] = { 250, 98, 516, 209},
[110] = { 1, 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] = { 1, 131, 296, 124},
[131] = { 75, 132, 297, 124},
[132] = { 150, 133, 299, 124},
[133] = { 200, 134, 553, 124},
[134] = { 250, 135, 554, 124},
[150] = { 1, 151, 384, 126},
[151] = { 75, 152, 385, 126},
[152] = { 150, 153, 386, 126},
[153] = { 200, 154, 700, 126},
[170] = { 1, 171, 97, 108},
[171] = { 50, 172, 285, 108},
[172] = { 75, 173, 98, 108},
[173] = { 100, 174, 99, 108},
[174] = { 125, 175, 629, 109},
[175] = { 150, 176, 555, 109},
[176] = { 200, 177, 211, 109},
[190] = { 1, 191, 373, 4},
[191] = { 75, 192, 374, 4},
[192] = { 125, 193, 375, 4},
[193] = { 150, 194, 376, 4},
[194] = { 200, 195, 268, 4},
[195] = { 250, 196, 395, 4},
[200] = { 1, 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, 13, 10},
[206] = { 200, 207, 14, 10},
[207] = { 250, 208, 203, 10},
[208] = { 300, 209, 595, 10},
[209] = { 350, 1000, 694, 10},
[210] = { 1, 211, 452, 108},
[211] = { 25, 212, 286, 108},
[212] = { 50, 213, 454, 108},
[213] = { 100, 214, 455, 108},
[214] = { 150, 215, 453, 108},
[215] = { 175, 216, 458, 108},
[216] = { 200, 217, 459, 193},
[217] = { 250, 218, 460, 193},
[222] = { 10, 223, 312, 190},
[223] = { 25, 224, 311, 190},
[224] = { 50, 225, 324, 190},
[225] = { 100, 226, 319, 190},
[226] = { 150, 227, 326, 190},
[227] = { 200, 228, 313, 190},
[228] = { 225, 229, 364, 190},
[230] = { 10, 231, 421, 57},
[231] = { 50, 232, 411, 57},
[232] = { 75, 233, 412, 57},
[233] = { 100, 234, 413, 57},
[234] = { 125, 235, 414, 57},
[235] = { 150, 236, 422, 57},
[236] = { 175, 237, 423, 57},
[237] = { 200, 238, 424, 57},
[238] = { 225, 239, 426, 57},
[239] = { 250, 240, 418, 57},
[240] = { 275, 241, 556, 57},
[241] = { 300, 242, 416, 57},
[242] = { 325, 243, 557, 57},
[243] = { 350, 244, 673, 57},
[250] = { 50, 251, 216, 211},
[251] = { 100, 252, 215, 211},
[252] = { 120, 253, 523, 211},
[253] = { 175, 254, 586, 211},
[254] = { 225, 255, 522, 211},
[255] = { 250, 256, 521, 211},
[256] = { 275, 257, 520, 211},
[257] = { 300, 258, 217, 211},
[258] = { 325, 259, 593, 211},
[260] = { 50, 261, 542, 188},
[261] = { 100, 262, 538, 188},
[262] = { 125, 263, 544, 188},
[263] = { 175, 264, 536, 188},
[264] = { 225, 265, 545, 188},
[265] = { 250, 266, 537, 188},
[270] = { 50, 271, 407, 179},
[271] = { 100, 272, 440, 179},
[272] = { 150, 273, 441, 179},
[273] = { 175, 274, 541, 179},
[274] = { 200, 275, 442, 179},
[275] = { 220, 276, 443, 179},
[276] = { 275, 277, 213, 179},
[277] = { 320, 278, 633, 179},
[280] = { 75, 281, 346, 193},
[281] = { 150, 282, 546, 193},
[282] = { 220, 283, 534, 193},
[283] = { 275, 284, 547, 193},
[284] = { 300, 285, 549, 193},
[290] = { 10, 291, 476, 108},
[291] = { 50, 292, 477, 108},
[292] = { 75, 293, 478, 108},
[293] = { 100, 294, 479, 108},
[294] = { 125, 295, 482, 108},
[295] = { 150, 296, 484, 108},
[296] = { 175, 297, 485, 193},
[297] = { 200, 298, 594, 193},
[298] = { 225, 299, 486, 193},
[299] = { 250, 300, 590, 193},
[300] = { 275, 301, 639, 193},
[301] = { 300, 302, 640, 193},
[310] = { 75, 311, 22, 122},
[311] = { 150, 312, 581, 122},
[312] = { 175, 313, 551, 122},
[313] = { 250, 314, 533, 122},
[314] = { 300, 315, 616, 122},
[320] = { 50, 321, 260, 122},
[321] = { 75, 322, 222, 122},
[322] = { 120, 323, 642, 122},
[323] = { 175, 324, 658, 122},
[324] = { 220, 325, 643, 122},
[325] = { 250, 326, 644, 122},
[326] = { 275, 327, 684, 122},
[327] = { 330, 328, 685, 122},
[330] = { 50, 321, 260, 122},
[331] = { 75, 322, 222, 122},
[332] = { 120, 323, 642, 122},
[333] = { 175, 324, 658, 122}
}
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

SE o do cara não funcionar, tente este:

 

local config = {

--[vocation id] = { level, nova voc, looktype, efeito}
[1] = { 1, 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, 663, 208},
[9] = { 225, 10, 179, 208},
[10] = { 250, 11, 559, 208},
[11] = { 275, 12, 560, 208},
[12] = { 300, 999, 659, 208},
[13] = { 1, 14, 93, 108},
[14] = { 50, 15, 6, 108},
[15] = { 75, 16, 5, 108},
[16] = { 100, 17, 540, 108},
[17] = { 125, 18, 94, 108},
[18] = { 150, 19, 59, 108},
[19] = { 175, 20, 8, 108},
[20] = { 200, 21, 660, 108},
[21] = { 225, 22, 95, 110},
[22] = { 250, 23, 587, 110},
[23] = { 275, 24, 623, 110},
[25] = { 1, 26, 80, 184},
[26] = { 50, 27, 190, 184},
[27] = { 75, 28, 83, 184},
[28] = { 100, 29, 191, 184},
[29] = { 150, 30, 192, 184},
[30] = { 175, 31, 109, 184},
[31] = { 225, 32, 81, 184},
[32] = { 250, 33, 671, 184},
[34] = { 1, 35, 194, 5},
[35] = { 50, 36, 175, 5},
[36] = { 75, 37, 661, 5},
[37] = { 100, 38, 622, 5},
[38] = { 150, 39, 550, 5},
[39] = { 175, 40, 662, 5},
[40] = { 225, 41, 174, 5},
[41] = { 250, 42, 597, 5},
[50] = { 1, 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] = { 1, 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, 561, 124},
[90] = { 1, 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, 668, 209},
[96] = { 225, 97, 517, 209},
[97] = { 250, 98, 516, 209},
[97] = { 250, 98, 516, 209},
[110] = { 1, 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] = { 1, 131, 296, 124},
[131] = { 75, 132, 297, 124},
[132] = { 150, 133, 299, 124},
[133] = { 200, 134, 553, 124},
[134] = { 250, 135, 554, 124},
[150] = { 1, 151, 384, 126},
[151] = { 75, 152, 385, 126},
[152] = { 150, 153, 386, 126},
[153] = { 200, 154, 700, 126},
[170] = { 1, 171, 97, 108},
[171] = { 50, 172, 285, 108},
[172] = { 75, 173, 98, 108},
[173] = { 100, 174, 99, 108},
[174] = { 125, 175, 629, 109},
[175] = { 150, 176, 555, 109},
[176] = { 200, 177, 211, 109},
[190] = { 1, 191, 373, 4},
[191] = { 75, 192, 374, 4},
[192] = { 125, 193, 375, 4},
[193] = { 150, 194, 376, 4},
[194] = { 200, 195, 268, 4},
[195] = { 250, 196, 395, 4},
[200] = { 1, 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, 13, 10},
[206] = { 200, 207, 14, 10},
[207] = { 250, 208, 203, 10},
[208] = { 300, 209, 595, 10},
[209] = { 350, 1000, 694, 10},
[210] = { 1, 211, 452, 108},
[211] = { 25, 212, 286, 108},
[212] = { 50, 213, 454, 108},
[213] = { 100, 214, 455, 108},
[214] = { 150, 215, 453, 108},
[215] = { 175, 216, 458, 108},
[216] = { 200, 217, 459, 193},
[217] = { 250, 218, 460, 193},
[222] = { 10, 223, 312, 190},
[223] = { 25, 224, 311, 190},
[224] = { 50, 225, 324, 190},
[225] = { 100, 226, 319, 190},
[226] = { 150, 227, 326, 190},
[227] = { 200, 228, 313, 190},
[228] = { 225, 229, 364, 190},
[230] = { 10, 231, 421, 57},
[231] = { 50, 232, 411, 57},
[232] = { 75, 233, 412, 57},
[233] = { 100, 234, 413, 57},
[234] = { 125, 235, 414, 57},
[235] = { 150, 236, 422, 57},
[236] = { 175, 237, 423, 57},
[237] = { 200, 238, 424, 57},
[238] = { 225, 239, 426, 57},
[239] = { 250, 240, 418, 57},
[240] = { 275, 241, 556, 57},
[241] = { 300, 242, 416, 57},
[242] = { 325, 243, 557, 57},
[243] = { 350, 244, 673, 57},
[250] = { 50, 251, 216, 211},
[251] = { 100, 252, 215, 211},
[252] = { 120, 253, 523, 211},
[253] = { 175, 254, 586, 211},
[254] = { 225, 255, 522, 211},
[255] = { 250, 256, 521, 211},
[256] = { 275, 257, 520, 211},
[257] = { 300, 258, 217, 211},
[258] = { 325, 259, 593, 211},
[260] = { 50, 261, 542, 188},
[261] = { 100, 262, 538, 188},
[262] = { 125, 263, 544, 188},
[263] = { 175, 264, 536, 188},
[264] = { 225, 265, 545, 188},
[265] = { 250, 266, 537, 188},
[270] = { 50, 271, 407, 179},
[271] = { 100, 272, 440, 179},
[272] = { 150, 273, 441, 179},
[273] = { 175, 274, 541, 179},
[274] = { 200, 275, 442, 179},
[275] = { 220, 276, 443, 179},
[276] = { 275, 277, 213, 179},
[277] = { 320, 278, 633, 179},
[280] = { 75, 281, 346, 193},
[281] = { 150, 282, 546, 193},
[282] = { 220, 283, 534, 193},
[283] = { 275, 284, 547, 193},
[284] = { 300, 285, 549, 193},
[290] = { 10, 291, 476, 108},
[291] = { 50, 292, 477, 108},
[292] = { 75, 293, 478, 108},
[293] = { 100, 294, 479, 108},
[294] = { 125, 295, 482, 108},
[295] = { 150, 296, 484, 108},
[296] = { 175, 297, 485, 193},
[297] = { 200, 298, 594, 193},
[298] = { 225, 299, 486, 193},
[299] = { 250, 300, 590, 193},
[300] = { 275, 301, 639, 193},
[301] = { 300, 302, 640, 193},
[310] = { 75, 311, 22, 122},
[311] = { 150, 312, 581, 122},
[312] = { 175, 313, 551, 122},
[313] = { 250, 314, 533, 122},
[314] = { 300, 315, 616, 122},
[320] = { 50, 321, 260, 122},
[321] = { 75, 322, 222, 122},
[322] = { 120, 323, 642, 122},
[323] = { 175, 324, 658, 122},
[324] = { 220, 325, 643, 122},
[325] = { 250, 326, 644, 122},
[326] = { 275, 327, 684, 122},
[327] = { 330, 328, 685, 122},
[330] = { 50, 321, 260, 122},
[331] = { 75, 322, 222, 122},
[332] = { 120, 323, 642, 122},
[333] = { 175, 324, 658, 122}
}
local tempo = 30 --Tempo do exhausted (em segundos)
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
if exhaustion.check(cid, 10268) then
doPlayerSendCancel(cid, "Espere "..exhaustion.get(cid, 10268).." para se transformar novamente.")
return true
end
doPlayerSay(cid, "transformar")
local voc = config[getPlayerVocation(cid)]
if voc then
if getPlayerLevel(cid) >= voc[1] then
doPlayerSetVocation(cid, voc[2])
exhaustion.set(cid, 10268, tempo)
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 zipter98
Link para o comentário
Compartilhar em outros sites

[ spoiler]

 

[ /spoiler]

 

 

Sim, bom sou muito Burro he.gif

Se puder Esplicar como faz e talz dou REP+ tbm plink.gifyes.gif

tenta assim...nao testei...

 

 

local config = {

function onSay(cid, words, param)

if exhaustion.get(cid, 103) then

doPlayerSendCancel(cid, 'Slow down.')

return true

end

exhaustion.set(cid, 103, 1)

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

[1] = { 1, 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, 663, 208},

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

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

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

[12] = { 300, 999, 659, 208},

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

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

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

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

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

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

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

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

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

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

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

[25] = { 1, 26, 80, 184},

[26] = { 50, 27, 190, 184},

[27] = { 75, 28, 83, 184},

[28] = { 100, 29, 191, 184},

[29] = { 150, 30, 192, 184},

[30] = { 175, 31, 109, 184},

[31] = { 225, 32, 81, 184},

[32] = { 250, 33, 671, 184},

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

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

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

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

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

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

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

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

[50] = { 1, 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] = { 1, 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, 561, 124},

[90] = { 1, 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, 668, 209},

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

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

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

[110] = { 1, 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] = { 1, 131, 296, 124},

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[200] = { 1, 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, 13, 10},

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

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

[208] = { 300, 209, 595, 10},

[209] = { 350, 1000, 694, 10},

[210] = { 1, 211, 452, 108},

[211] = { 25, 212, 286, 108},

[212] = { 50, 213, 454, 108},

[213] = { 100, 214, 455, 108},

[214] = { 150, 215, 453, 108},

[215] = { 175, 216, 458, 108},

[216] = { 200, 217, 459, 193},

[217] = { 250, 218, 460, 193},

[222] = { 10, 223, 312, 190},

[223] = { 25, 224, 311, 190},

[224] = { 50, 225, 324, 190},

[225] = { 100, 226, 319, 190},

[226] = { 150, 227, 326, 190},

[227] = { 200, 228, 313, 190},

[228] = { 225, 229, 364, 190},

[230] = { 10, 231, 421, 57},

[231] = { 50, 232, 411, 57},

[232] = { 75, 233, 412, 57},

[233] = { 100, 234, 413, 57},

[234] = { 125, 235, 414, 57},

[235] = { 150, 236, 422, 57},

[236] = { 175, 237, 423, 57},

[237] = { 200, 238, 424, 57},

[238] = { 225, 239, 426, 57},

[239] = { 250, 240, 418, 57},

[240] = { 275, 241, 556, 57},

[241] = { 300, 242, 416, 57},

[242] = { 325, 243, 557, 57},

[243] = { 350, 244, 673, 57},

[250] = { 50, 251, 216, 211},

[251] = { 100, 252, 215, 211},

[252] = { 120, 253, 523, 211},

[253] = { 175, 254, 586, 211},

[254] = { 225, 255, 522, 211},

[255] = { 250, 256, 521, 211},

[256] = { 275, 257, 520, 211},

[257] = { 300, 258, 217, 211},

[258] = { 325, 259, 593, 211},

[260] = { 50, 261, 542, 188},

[261] = { 100, 262, 538, 188},

[262] = { 125, 263, 544, 188},

[263] = { 175, 264, 536, 188},

[264] = { 225, 265, 545, 188},

[265] = { 250, 266, 537, 188},

[270] = { 50, 271, 407, 179},

[271] = { 100, 272, 440, 179},

[272] = { 150, 273, 441, 179},

[273] = { 175, 274, 541, 179},

[274] = { 200, 275, 442, 179},

[275] = { 220, 276, 443, 179},

[276] = { 275, 277, 213, 179},

[277] = { 320, 278, 633, 179},

[280] = { 75, 281, 346, 193},

[281] = { 150, 282, 546, 193},

[282] = { 220, 283, 534, 193},

[283] = { 275, 284, 547, 193},

[284] = { 300, 285, 549, 193},

[290] = { 10, 291, 476, 108},

[291] = { 50, 292, 477, 108},

[292] = { 75, 293, 478, 108},

[293] = { 100, 294, 479, 108},

[294] = { 125, 295, 482, 108},

[295] = { 150, 296, 484, 108},

[296] = { 175, 297, 485, 193},

[297] = { 200, 298, 594, 193},

[298] = { 225, 299, 486, 193},

[299] = { 250, 300, 590, 193},

[300] = { 275, 301, 639, 193},

[301] = { 300, 302, 640, 193},

[310] = { 75, 311, 22, 122},

[311] = { 150, 312, 581, 122},

[312] = { 175, 313, 551, 122},

[313] = { 250, 314, 533, 122},

[314] = { 300, 315, 616, 122},

[320] = { 50, 321, 260, 122},

[321] = { 75, 322, 222, 122},

[322] = { 120, 323, 642, 122},

[323] = { 175, 324, 658, 122},

[324] = { 220, 325, 643, 122},

[325] = { 250, 326, 644, 122},

[326] = { 275, 327, 684, 122},

[327] = { 330, 328, 685, 122},

[330] = { 50, 321, 260, 122},

[331] = { 75, 322, 222, 122},

[332] = { 120, 323, 642, 122},

[333] = { 175, 324, 658, 122}

}

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

 

 

 

Hey nao Funcionou, irei Testar do Zipter98!

Link para o comentário
Compartilhar em outros sites

local config = {
local tempo = 10 -- TEMPO DE EXHAUSTION
local storage = 5918
--[vocation id] = { level, nova voc, looktype, efeito}
[1] = { 1, 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, 663, 208},
[9] = { 225, 10, 179, 208},
[10] = { 250, 11, 559, 208},
[11] = { 275, 12, 560, 208},
[12] = { 300, 999, 659, 208},
[13] = { 1, 14, 93, 108},
[14] = { 50, 15, 6, 108},
[15] = { 75, 16, 5, 108},
[16] = { 100, 17, 540, 108},
[17] = { 125, 18, 94, 108},
[18] = { 150, 19, 59, 108},
[19] = { 175, 20, 8, 108},
[20] = { 200, 21, 660, 108},
[21] = { 225, 22, 95, 110},
[22] = { 250, 23, 587, 110},
[23] = { 275, 24, 623, 110},
[25] = { 1, 26, 80, 184},
[26] = { 50, 27, 190, 184},
[27] = { 75, 28, 83, 184},
[28] = { 100, 29, 191, 184},
[29] = { 150, 30, 192, 184},
[30] = { 175, 31, 109, 184},
[31] = { 225, 32, 81, 184},
[32] = { 250, 33, 671, 184},
[34] = { 1, 35, 194, 5},
[35] = { 50, 36, 175, 5},
[36] = { 75, 37, 661, 5},
[37] = { 100, 38, 622, 5},
[38] = { 150, 39, 550, 5},
[39] = { 175, 40, 662, 5},
[40] = { 225, 41, 174, 5},
[41] = { 250, 42, 597, 5},
[50] = { 1, 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] = { 1, 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, 561, 124},
[90] = { 1, 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, 668, 209},
[96] = { 225, 97, 517, 209},
[97] = { 250, 98, 516, 209},
[97] = { 250, 98, 516, 209},
[110] = { 1, 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] = { 1, 131, 296, 124},
[131] = { 75, 132, 297, 124},
[132] = { 150, 133, 299, 124},
[133] = { 200, 134, 553, 124},
[134] = { 250, 135, 554, 124},
[150] = { 1, 151, 384, 126},
[151] = { 75, 152, 385, 126},
[152] = { 150, 153, 386, 126},
[153] = { 200, 154, 700, 126},
[170] = { 1, 171, 97, 108},
[171] = { 50, 172, 285, 108},
[172] = { 75, 173, 98, 108},
[173] = { 100, 174, 99, 108},
[174] = { 125, 175, 629, 109},
[175] = { 150, 176, 555, 109},
[176] = { 200, 177, 211, 109},
[190] = { 1, 191, 373, 4},
[191] = { 75, 192, 374, 4},
[192] = { 125, 193, 375, 4},
[193] = { 150, 194, 376, 4},
[194] = { 200, 195, 268, 4},
[195] = { 250, 196, 395, 4},
[200] = { 1, 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, 13, 10},
[206] = { 200, 207, 14, 10},
[207] = { 250, 208, 203, 10},
[208] = { 300, 209, 595, 10},
[209] = { 350, 1000, 694, 10},
[210] = { 1, 211, 452, 108},
[211] = { 25, 212, 286, 108},
[212] = { 50, 213, 454, 108},
[213] = { 100, 214, 455, 108},
[214] = { 150, 215, 453, 108},
[215] = { 175, 216, 458, 108},
[216] = { 200, 217, 459, 193},
[217] = { 250, 218, 460, 193},
[222] = { 10, 223, 312, 190},
[223] = { 25, 224, 311, 190},
[224] = { 50, 225, 324, 190},
[225] = { 100, 226, 319, 190},
[226] = { 150, 227, 326, 190},
[227] = { 200, 228, 313, 190},
[228] = { 225, 229, 364, 190},
[230] = { 10, 231, 421, 57},
[231] = { 50, 232, 411, 57},
[232] = { 75, 233, 412, 57},
[233] = { 100, 234, 413, 57},
[234] = { 125, 235, 414, 57},
[235] = { 150, 236, 422, 57},
[236] = { 175, 237, 423, 57},
[237] = { 200, 238, 424, 57},
[238] = { 225, 239, 426, 57},
[239] = { 250, 240, 418, 57},
[240] = { 275, 241, 556, 57},
[241] = { 300, 242, 416, 57},
[242] = { 325, 243, 557, 57},
[243] = { 350, 244, 673, 57},
[250] = { 50, 251, 216, 211},
[251] = { 100, 252, 215, 211},
[252] = { 120, 253, 523, 211},
[253] = { 175, 254, 586, 211},
[254] = { 225, 255, 522, 211},
[255] = { 250, 256, 521, 211},
[256] = { 275, 257, 520, 211},
[257] = { 300, 258, 217, 211},
[258] = { 325, 259, 593, 211},
[260] = { 50, 261, 542, 188},
[261] = { 100, 262, 538, 188},
[262] = { 125, 263, 544, 188},
[263] = { 175, 264, 536, 188},
[264] = { 225, 265, 545, 188},
[265] = { 250, 266, 537, 188},
[270] = { 50, 271, 407, 179},
[271] = { 100, 272, 440, 179},
[272] = { 150, 273, 441, 179},
[273] = { 175, 274, 541, 179},
[274] = { 200, 275, 442, 179},
[275] = { 220, 276, 443, 179},
[276] = { 275, 277, 213, 179},
[277] = { 320, 278, 633, 179},
[280] = { 75, 281, 346, 193},
[281] = { 150, 282, 546, 193},
[282] = { 220, 283, 534, 193},
[283] = { 275, 284, 547, 193},
[284] = { 300, 285, 549, 193},
[290] = { 10, 291, 476, 108},
[291] = { 50, 292, 477, 108},
[292] = { 75, 293, 478, 108},
[293] = { 100, 294, 479, 108},
[294] = { 125, 295, 482, 108},
[295] = { 150, 296, 484, 108},
[296] = { 175, 297, 485, 193},
[297] = { 200, 298, 594, 193},
[298] = { 225, 299, 486, 193},
[299] = { 250, 300, 590, 193},
[300] = { 275, 301, 639, 193},
[301] = { 300, 302, 640, 193},
[310] = { 75, 311, 22, 122},
[311] = { 150, 312, 581, 122},
[312] = { 175, 313, 551, 122},
[313] = { 250, 314, 533, 122},
[314] = { 300, 315, 616, 122},
[320] = { 50, 321, 260, 122},
[321] = { 75, 322, 222, 122},
[322] = { 120, 323, 642, 122},
[323] = { 175, 324, 658, 122},
[324] = { 220, 325, 643, 122},
[325] = { 250, 326, 644, 122},
[326] = { 275, 327, 684, 122},
[327] = { 330, 328, 685, 122},
[330] = { 50, 321, 260, 122},
[331] = { 75, 322, 222, 122},
[332] = { 120, 323, 642, 122},
[333] = { 175, 324, 658, 122}
}
function onSay(cid, words, param, channel)
if exhaustion.check(cid, storage) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde " .. exhaustion.get(cid, storage) .. " segundos para usar o transformar 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
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
exhaustion.set(cid, storage, tempo)
return true
end

 

 

Testa .

Link para o comentário
Compartilhar em outros sites

 

local config = {
local tempo = 10 -- TEMPO DE EXHAUSTION
local storage = 5918
--[vocation id] = { level, nova voc, looktype, efeito}
[1] = { 1, 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, 663, 208},
[9] = { 225, 10, 179, 208},
[10] = { 250, 11, 559, 208},
[11] = { 275, 12, 560, 208},
[12] = { 300, 999, 659, 208},
[13] = { 1, 14, 93, 108},
[14] = { 50, 15, 6, 108},
[15] = { 75, 16, 5, 108},
[16] = { 100, 17, 540, 108},
[17] = { 125, 18, 94, 108},
[18] = { 150, 19, 59, 108},
[19] = { 175, 20, 8, 108},
[20] = { 200, 21, 660, 108},
[21] = { 225, 22, 95, 110},
[22] = { 250, 23, 587, 110},
[23] = { 275, 24, 623, 110},
[25] = { 1, 26, 80, 184},
[26] = { 50, 27, 190, 184},
[27] = { 75, 28, 83, 184},
[28] = { 100, 29, 191, 184},
[29] = { 150, 30, 192, 184},
[30] = { 175, 31, 109, 184},
[31] = { 225, 32, 81, 184},
[32] = { 250, 33, 671, 184},
[34] = { 1, 35, 194, 5},
[35] = { 50, 36, 175, 5},
[36] = { 75, 37, 661, 5},
[37] = { 100, 38, 622, 5},
[38] = { 150, 39, 550, 5},
[39] = { 175, 40, 662, 5},
[40] = { 225, 41, 174, 5},
[41] = { 250, 42, 597, 5},
[50] = { 1, 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] = { 1, 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, 561, 124},
[90] = { 1, 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, 668, 209},
[96] = { 225, 97, 517, 209},
[97] = { 250, 98, 516, 209},
[97] = { 250, 98, 516, 209},
[110] = { 1, 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] = { 1, 131, 296, 124},
[131] = { 75, 132, 297, 124},
[132] = { 150, 133, 299, 124},
[133] = { 200, 134, 553, 124},
[134] = { 250, 135, 554, 124},
[150] = { 1, 151, 384, 126},
[151] = { 75, 152, 385, 126},
[152] = { 150, 153, 386, 126},
[153] = { 200, 154, 700, 126},
[170] = { 1, 171, 97, 108},
[171] = { 50, 172, 285, 108},
[172] = { 75, 173, 98, 108},
[173] = { 100, 174, 99, 108},
[174] = { 125, 175, 629, 109},
[175] = { 150, 176, 555, 109},
[176] = { 200, 177, 211, 109},
[190] = { 1, 191, 373, 4},
[191] = { 75, 192, 374, 4},
[192] = { 125, 193, 375, 4},
[193] = { 150, 194, 376, 4},
[194] = { 200, 195, 268, 4},
[195] = { 250, 196, 395, 4},
[200] = { 1, 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, 13, 10},
[206] = { 200, 207, 14, 10},
[207] = { 250, 208, 203, 10},
[208] = { 300, 209, 595, 10},
[209] = { 350, 1000, 694, 10},
[210] = { 1, 211, 452, 108},
[211] = { 25, 212, 286, 108},
[212] = { 50, 213, 454, 108},
[213] = { 100, 214, 455, 108},
[214] = { 150, 215, 453, 108},
[215] = { 175, 216, 458, 108},
[216] = { 200, 217, 459, 193},
[217] = { 250, 218, 460, 193},
[222] = { 10, 223, 312, 190},
[223] = { 25, 224, 311, 190},
[224] = { 50, 225, 324, 190},
[225] = { 100, 226, 319, 190},
[226] = { 150, 227, 326, 190},
[227] = { 200, 228, 313, 190},
[228] = { 225, 229, 364, 190},
[230] = { 10, 231, 421, 57},
[231] = { 50, 232, 411, 57},
[232] = { 75, 233, 412, 57},
[233] = { 100, 234, 413, 57},
[234] = { 125, 235, 414, 57},
[235] = { 150, 236, 422, 57},
[236] = { 175, 237, 423, 57},
[237] = { 200, 238, 424, 57},
[238] = { 225, 239, 426, 57},
[239] = { 250, 240, 418, 57},
[240] = { 275, 241, 556, 57},
[241] = { 300, 242, 416, 57},
[242] = { 325, 243, 557, 57},
[243] = { 350, 244, 673, 57},
[250] = { 50, 251, 216, 211},
[251] = { 100, 252, 215, 211},
[252] = { 120, 253, 523, 211},
[253] = { 175, 254, 586, 211},
[254] = { 225, 255, 522, 211},
[255] = { 250, 256, 521, 211},
[256] = { 275, 257, 520, 211},
[257] = { 300, 258, 217, 211},
[258] = { 325, 259, 593, 211},
[260] = { 50, 261, 542, 188},
[261] = { 100, 262, 538, 188},
[262] = { 125, 263, 544, 188},
[263] = { 175, 264, 536, 188},
[264] = { 225, 265, 545, 188},
[265] = { 250, 266, 537, 188},
[270] = { 50, 271, 407, 179},
[271] = { 100, 272, 440, 179},
[272] = { 150, 273, 441, 179},
[273] = { 175, 274, 541, 179},
[274] = { 200, 275, 442, 179},
[275] = { 220, 276, 443, 179},
[276] = { 275, 277, 213, 179},
[277] = { 320, 278, 633, 179},
[280] = { 75, 281, 346, 193},
[281] = { 150, 282, 546, 193},
[282] = { 220, 283, 534, 193},
[283] = { 275, 284, 547, 193},
[284] = { 300, 285, 549, 193},
[290] = { 10, 291, 476, 108},
[291] = { 50, 292, 477, 108},
[292] = { 75, 293, 478, 108},
[293] = { 100, 294, 479, 108},
[294] = { 125, 295, 482, 108},
[295] = { 150, 296, 484, 108},
[296] = { 175, 297, 485, 193},
[297] = { 200, 298, 594, 193},
[298] = { 225, 299, 486, 193},
[299] = { 250, 300, 590, 193},
[300] = { 275, 301, 639, 193},
[301] = { 300, 302, 640, 193},
[310] = { 75, 311, 22, 122},
[311] = { 150, 312, 581, 122},
[312] = { 175, 313, 551, 122},
[313] = { 250, 314, 533, 122},
[314] = { 300, 315, 616, 122},
[320] = { 50, 321, 260, 122},
[321] = { 75, 322, 222, 122},
[322] = { 120, 323, 642, 122},
[323] = { 175, 324, 658, 122},
[324] = { 220, 325, 643, 122},
[325] = { 250, 326, 644, 122},
[326] = { 275, 327, 684, 122},
[327] = { 330, 328, 685, 122},
[330] = { 50, 321, 260, 122},
[331] = { 75, 322, 222, 122},
[332] = { 120, 323, 642, 122},
[333] = { 175, 324, 658, 122}
}
function onSay(cid, words, param, channel)
if exhaustion.check(cid, storage) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde " .. exhaustion.get(cid, storage) .. " segundos para usar o transformar 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
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
exhaustion.set(cid, storage, tempo)
return true
end

 

 

Testa .

 

 

 

DarkHeel o Transformar eu ja fiz, um lek me passo por PM.. Preciso do Reverter !!

 

Transformar:

 

 

local config = {

 

 

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

[1] = { 1, 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, 663, 208},

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

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

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

[12] = { 300, 999, 659, 208},

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

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

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

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

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

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

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

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

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

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

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

[25] = { 1, 26, 80, 184},

[26] = { 50, 27, 190, 184},

[27] = { 75, 28, 83, 184},

[28] = { 100, 29, 191, 184},

[29] = { 150, 30, 192, 184},

[30] = { 175, 31, 109, 184},

[31] = { 225, 32, 81, 184},

[32] = { 250, 33, 671, 184},

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

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

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

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

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

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

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

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

[50] = { 1, 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] = { 1, 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, 561, 124},

[90] = { 1, 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, 668, 209},

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

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

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

[110] = { 1, 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] = { 1, 131, 296, 124},

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[200] = { 1, 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, 13, 10},

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

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

[208] = { 300, 209, 595, 10},

[209] = { 350, 1000, 694, 10},

[210] = { 1, 211, 452, 108},

[211] = { 25, 212, 286, 108},

[212] = { 50, 213, 454, 108},

[213] = { 100, 214, 455, 108},

[214] = { 150, 215, 453, 108},

[215] = { 175, 216, 458, 108},

[216] = { 200, 217, 459, 193},

[217] = { 250, 218, 460, 193},

[222] = { 10, 223, 312, 190},

[223] = { 25, 224, 311, 190},

[224] = { 50, 225, 324, 190},

[225] = { 100, 226, 319, 190},

[226] = { 150, 227, 326, 190},

[227] = { 200, 228, 313, 190},

[228] = { 225, 229, 364, 190},

[230] = { 10, 231, 421, 57},

[231] = { 50, 232, 411, 57},

[232] = { 75, 233, 412, 57},

[233] = { 100, 234, 413, 57},

[234] = { 125, 235, 414, 57},

[235] = { 150, 236, 422, 57},

[236] = { 175, 237, 423, 57},

[237] = { 200, 238, 424, 57},

[238] = { 225, 239, 426, 57},

[239] = { 250, 240, 418, 57},

[240] = { 275, 241, 556, 57},

[241] = { 300, 242, 416, 57},

[242] = { 325, 243, 557, 57},

[243] = { 350, 244, 673, 57},

[250] = { 50, 251, 216, 211},

[251] = { 100, 252, 215, 211},

[252] = { 120, 253, 523, 211},

[253] = { 175, 254, 586, 211},

[254] = { 225, 255, 522, 211},

[255] = { 250, 256, 521, 211},

[256] = { 275, 257, 520, 211},

[257] = { 300, 258, 217, 211},

[258] = { 325, 259, 593, 211},

[260] = { 50, 261, 542, 188},

[261] = { 100, 262, 538, 188},

[262] = { 125, 263, 544, 188},

[263] = { 175, 264, 536, 188},

[264] = { 225, 265, 545, 188},

[265] = { 250, 266, 537, 188},

[270] = { 50, 271, 407, 179},

[271] = { 100, 272, 440, 179},

[272] = { 150, 273, 441, 179},

[273] = { 175, 274, 541, 179},

[274] = { 200, 275, 442, 179},

[275] = { 220, 276, 443, 179},

[276] = { 275, 277, 213, 179},

[277] = { 320, 278, 633, 179},

[280] = { 75, 281, 346, 193},

[281] = { 150, 282, 546, 193},

[282] = { 220, 283, 534, 193},

[283] = { 275, 284, 547, 193},

[284] = { 300, 285, 549, 193},

[290] = { 10, 291, 476, 108},

[291] = { 50, 292, 477, 108},

[292] = { 75, 293, 478, 108},

[293] = { 100, 294, 479, 108},

[294] = { 125, 295, 482, 108},

[295] = { 150, 296, 484, 108},

[296] = { 175, 297, 485, 193},

[297] = { 200, 298, 594, 193},

[298] = { 225, 299, 486, 193},

[299] = { 250, 300, 590, 193},

[300] = { 275, 301, 639, 193},

[301] = { 300, 302, 640, 193},

[310] = { 75, 311, 22, 122},

[311] = { 150, 312, 581, 122},

[312] = { 175, 313, 551, 122},

[313] = { 250, 314, 533, 122},

[314] = { 300, 315, 616, 122},

[320] = { 50, 321, 260, 122},

[321] = { 75, 322, 222, 122},

[322] = { 120, 323, 642, 122},

[323] = { 175, 324, 658, 122},

[324] = { 220, 325, 643, 122},

[325] = { 250, 326, 644, 122},

[326] = { 275, 327, 684, 122},

[327] = { 330, 328, 685, 122},

[330] = { 75, 331, 678, 131},

[331] = { 150, 332, 370, 131},

[332] = { 250, 333, 677, 131},

[333] = { 300, 334, 686, 131}

}

 

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

local tempo = 5 --Tempo do exhausted (em segundos)

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, 10268) then

doPlayerSendCancel(cid, "Espere "..exhaustion.get(cid, 10268).." para se transformar novamente.")

return true

end

doPlayerSay(cid, "transformar")

local voc = config[getPlayerVocation(cid)]

if voc then

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

doPlayerSetVocation(cid, voc[2])

exhaustion.set(cid, 10268, tempo)

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

 

 

 

Reverter (Não tem Edição Ainda):

 

 

local config = {

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

[999] = { 300, 12, 560, 208},

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

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

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

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

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

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

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

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

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

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

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

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

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

[22] = { 225, 21, 8, 108},

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

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

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

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

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

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

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

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

[33] = { 250, 32, 392, 184},

[32] = { 225, 31, 193, 184},

[31] = { 175, 30, 192, 184},

[30] = { 150, 29, 191, 184},

[29] = { 100, 28, 83, 184},

[28] = { 75, 27, 190, 184},

[27] = { 50, 26, 80, 184},

[26] = { 25, 25, 30, 184},

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

[41] = { 250, 40, 662, 5},

[40] = { 250, 39, 550, 5},

[39] = { 250, 38, 622, 5},

[38] = { 250, 37, 661, 5},

[37] = { 250, 36, 175, 5},

[36] = { 250, 35, 194, 5},

[35] = { 250, 34, 195, 5},

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[116] = { 25, 115, 344, 187},

[115] = { 75, 114, 342, 187},

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

[113] = { 150, 112, 341, 187},

[112] = { 200, 111, 88, 187},

[111] = { 250, 110, 340, 187},

[135] = { 25, 134, 553, 124},

[134] = { 25, 133, 298, 124},

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

[132] = { 150, 131, 296, 124},

[131] = { 200, 130, 295, 124},

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

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

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

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

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

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

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

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

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

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

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

[196] = { 225, 195, 268, 4},

[195] = { 225, 194, 376, 4},

[194] = { 175, 193, 375, 4},

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

[192] = { 125, 191, 373, 4},

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

[1000] = { 300, 209, 595, 10},

[209] = { 250, 208, 203, 10},

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

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

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

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

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

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

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

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

[218] = { 250, 217, 459, 193},

[217] = { 220, 216, 458, 193},

[216] = { 200, 215, 456, 108},

[215] = { 175, 214, 453, 108},

[214] = { 150, 213, 455, 108},

[213] = { 100, 212, 454, 108},

[212] = { 75, 211, 286, 108},

[211] = { 25, 210, 452, 108},

[244] = { 375, 243, 419, 57},

[243] = { 350, 242, 557, 57},

[242] = { 325, 241, 416, 57},

[241] = { 300, 240, 556, 57},

[240] = { 275, 239, 417, 57},

[239] = { 250, 238, 418, 57},

[238] = { 225, 237, 426, 57},

[237] = { 200, 236, 424, 57},

[236] = { 175, 235, 423, 57},

[235] = { 150, 234, 422, 57},

[234] = { 125, 233, 414, 57},

[233] = { 100, 232, 413, 57},

[232] = { 75, 231, 412, 57},

[231] = { 50, 230, 411, 57},

[229] = { 250, 228, 313, 190},

[228] = { 225, 227, 326, 190},

[227] = { 200, 226, 319, 190},

[226] = { 150, 225, 324, 190},

[225] = { 100, 224, 311, 190},

[224] = { 50, 223, 312, 190},

[223] = { 25, 222, 309, 190},

[259] = { 350, 258, 217, 211},

[258] = { 325, 257, 520, 211},

[257] = { 300, 256, 521, 211},

[256] = { 275, 255, 522, 211},

[255] = { 250, 254, 586, 211},

[254] = { 225, 253, 523, 211},

[253] = { 175, 252, 215, 211},

[252] = { 120, 251, 216, 211},

[251] = { 100, 250, 214, 211},

[266] = { 275, 265, 545, 188},

[265] = { 250, 264, 536, 188},

[264] = { 225, 263, 544, 188},

[263] = { 175, 262, 538, 188},

[262] = { 120, 261, 542, 188},

[261] = { 100, 260, 539, 188},

[278] = { 275, 277, 213, 179},

[277] = { 220, 276, 443, 179},

[276] = { 200, 275, 442, 179},

[275] = { 175, 274, 541, 179},

[274] = { 150, 273, 441, 179},

[273] = { 100, 272, 440, 179},

[272] = { 50, 271, 407, 179},

[271] = { 1, 270, 406, 179},

[285] = { 275, 284, 547, 193},

[284] = { 220, 283, 534, 193},

[283] = { 150, 282, 546, 193},

[282] = { 75, 281, 346, 193},

[281] = { 1, 280, 548, 193},

[302] = { 325, 301, 639, 193},

[301] = { 300, 300, 590, 193},

[300] = { 275, 299, 486, 193},

[299] = { 250, 298, 594, 193},

[298] = { 225, 297, 485, 193},

[297] = { 200, 296, 484, 108},

[296] = { 175, 295, 482, 108},

[295] = { 150, 294, 479, 108},

[294] = { 125, 293, 478, 108},

[293] = { 100, 292, 477, 108},

[292] = { 75, 291, 476, 108},

[291] = { 50, 290, 35, 108},

[315] = { 250, 314, 533, 122},

[314] = { 175, 313, 551, 122},

[313] = { 150, 312, 581, 122},

[312] = { 75, 311, 22, 122},

[311] = { 50, 310, 630, 122},

[327] = { 330, 326, 684, 122},

[326] = { 275, 325, 643, 122},

[325] = { 250, 324, 658, 122},

[324] = { 220, 323, 642, 122},

[323] = { 175, 322, 222, 122},

[322] = { 120, 321, 260, 122},

[321] = { 75, 320, 641, 122},

[334] = { 300, 333, 677, 131},

[333] = { 250, 332, 370, 131},

[332] = { 150, 331, 678, 131},

[331] = { 75, 330, 679, 131}

}

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 Reverter nesta área!") return true

end

doPlayerSay(cid, "Reverter")

local voc = config[getPlayerVocation(cid)]

if voc then

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

doPlayerSetVocation(cid, voc[2])

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

local outfit = {lookType = voc[3]}

doCreatureChangeOutfit(cid, outfit)

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

else

doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Não da pra Reverter Tente Relogar.")

end

else

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

end

return true

end

 

 

Se Me Ajudar com Reverter ja dou

 

REP++

Se puder dar uma Força ou um pequeno Empurrão nesse Tópico (meu tambem) rç !

 

 

Link para o comentário
Compartilhar em outros sites

Reverter:

 

local config = {

--[vocation id] = { level, nova voc, looktype, efeito}
[999] = { 300, 12, 560, 208},
[12] = { 275, 11, 559, 208},
[11] = { 250, 10, 179, 208},
[10] = { 225, 9, 663, 208},
[9] = { 200, 8, 305, 208},
[8] = { 175, 7, 40, 208},
[7] = { 150, 6, 92, 208},
[6] = { 125, 5, 31, 208},
[5] = { 100, 4, 18, 208},
[4] = { 75, 3, 91, 208},
[3] = { 50, 2, 66, 208},
[2] = { 25, 1, 71, 208},
[24] = { 275, 23, 587, 110},
[23] = { 250, 22, 660, 110},
[22] = { 225, 21, 8, 108},
[21] = { 200, 20, 59, 108},
[20] = { 175, 19, 94, 108},
[19] = { 150, 18, 540, 108},
[18] = { 125, 17, 306, 108},
[17] = { 100, 16, 5, 108},
[16] = { 75, 15, 6, 108},
[15] = { 50, 14, 93, 108},
[14] = { 50, 13, 2, 108},
[33] = { 250, 32, 392, 184},
[32] = { 225, 31, 193, 184},
[31] = { 175, 30, 192, 184},
[30] = { 150, 29, 191, 184},
[29] = { 100, 28, 83, 184},
[28] = { 75, 27, 190, 184},
[27] = { 50, 26, 80, 184},
[26] = { 25, 25, 30, 184},
[42] = { 250, 41, 174, 5},
[41] = { 250, 40, 662, 5},
[40] = { 250, 39, 550, 5},
[39] = { 250, 38, 622, 5},
[38] = { 250, 37, 661, 5},
[37] = { 250, 36, 175, 5},
[36] = { 250, 35, 194, 5},
[35] = { 250, 34, 195, 5},
[60] = { 250, 59, 335, 205},
[59] = { 225, 58, 189, 205},
[58] = { 200, 57, 62, 205},
[57] = { 175, 56, 188, 205},
[56] = { 150, 55, 329, 205},
[55] = { 125, 54, 65, 205},
[54] = { 100, 53, 158, 205},
[53] = { 75, 52, 72, 205},
[52] = { 50, 51, 67, 205},
[51] = { 25, 50, 53, 205},
[78] = { 250, 77, 315, 124},
[77] = { 225, 76, 314, 124},
[76] = { 175, 75, 108, 124},
[75] = { 150, 74, 107, 124},
[74] = { 100, 73, 105, 124},
[73] = { 75, 72, 103, 124},
[72] = { 50, 71, 102, 124},
[71] = { 25, 70, 101, 124},
[98] = { 250, 97, 517, 209},
[97] = { 225, 96, 668, 209},
[96] = { 175, 95, 196, 209},
[95] = { 150, 94, 199, 209},
[94] = { 100, 93, 70, 209},
[93] = { 75, 92, 69, 209},
[92] = { 50, 91, 331, 209},
[91] = { 25, 90, 50, 209},
[116] = { 25, 115, 344, 187},
[115] = { 75, 114, 342, 187},
[114] = { 100, 113, 343, 187},
[113] = { 150, 112, 341, 187},
[112] = { 200, 111, 88, 187},
[111] = { 250, 110, 340, 187},
[135] = { 25, 134, 553, 124},
[134] = { 25, 133, 298, 124},
[133] = { 75, 132, 297, 124},
[132] = { 150, 131, 296, 124},
[131] = { 200, 130, 295, 124},
[154] = { 200, 153, 386, 126},
[153] = { 150, 152, 385, 126},
[152] = { 75, 151, 384, 126},
[151] = { 25, 150, 383, 126},
[177] = { 200, 176, 555, 109},
[176] = { 150, 175, 629, 109},
[175] = { 125, 174, 99, 109},
[174] = { 100, 173, 98, 109},
[173] = { 75, 172, 285, 108},
[172] = { 50, 171, 97, 108},
[171] = { 25, 170, 96, 108},
[196] = { 225, 195, 268, 4},
[195] = { 225, 194, 376, 4},
[194] = { 175, 193, 375, 4},
[193] = { 125, 192, 374, 4},
[192] = { 125, 191, 373, 4},
[191] = { 25, 190, 372, 4},
[1000] = { 300, 209, 595, 10},
[209] = { 250, 208, 203, 10},
[208] = { 250, 207, 13, 10},
[207] = { 200, 206, 288, 10},
[206] = { 175, 205, 289, 10},
[205] = { 150, 204, 10, 10},
[204] = { 125, 203, 12, 10},
[203] = { 75, 202, 287, 10},
[202] = { 50, 201, 11, 10},
[201] = { 25, 200, 632, 10},
[218] = { 250, 217, 459, 193},
[217] = { 220, 216, 458, 193},
[216] = { 200, 215, 456, 108},
[215] = { 175, 214, 453, 108},
[214] = { 150, 213, 455, 108},
[213] = { 100, 212, 454, 108},
[212] = { 75, 211, 286, 108},
[211] = { 25, 210, 452, 108},
[244] = { 375, 243, 419, 57},
[243] = { 350, 242, 557, 57},
[242] = { 325, 241, 416, 57},
[241] = { 300, 240, 556, 57},
[240] = { 275, 239, 417, 57},
[239] = { 250, 238, 418, 57},
[238] = { 225, 237, 426, 57},
[237] = { 200, 236, 424, 57},
[236] = { 175, 235, 423, 57},
[235] = { 150, 234, 422, 57},
[234] = { 125, 233, 414, 57},
[233] = { 100, 232, 413, 57},
[232] = { 75, 231, 412, 57},
[231] = { 50, 230, 411, 57},
[229] = { 250, 228, 313, 190},
[228] = { 225, 227, 326, 190},
[227] = { 200, 226, 319, 190},
[226] = { 150, 225, 324, 190},
[225] = { 100, 224, 311, 190},
[224] = { 50, 223, 312, 190},
[223] = { 25, 222, 309, 190},
[259] = { 350, 258, 217, 211},
[258] = { 325, 257, 520, 211},
[257] = { 300, 256, 521, 211},
[256] = { 275, 255, 522, 211},
[255] = { 250, 254, 586, 211},
[254] = { 225, 253, 523, 211},
[253] = { 175, 252, 215, 211},
[252] = { 120, 251, 216, 211},
[251] = { 100, 250, 214, 211},
[266] = { 275, 265, 545, 188},
[265] = { 250, 264, 536, 188},
[264] = { 225, 263, 544, 188},
[263] = { 175, 262, 538, 188},
[262] = { 120, 261, 542, 188},
[261] = { 100, 260, 539, 188},
[278] = { 275, 277, 213, 179},
[277] = { 220, 276, 443, 179},
[276] = { 200, 275, 442, 179},
[275] = { 175, 274, 541, 179},
[274] = { 150, 273, 441, 179},
[273] = { 100, 272, 440, 179},
[272] = { 50, 271, 407, 179},
[271] = { 1, 270, 406, 179},
[285] = { 275, 284, 547, 193},
[284] = { 220, 283, 534, 193},
[283] = { 150, 282, 546, 193},
[282] = { 75, 281, 346, 193},
[281] = { 1, 280, 548, 193},
[302] = { 325, 301, 639, 193},
[301] = { 300, 300, 590, 193},
[300] = { 275, 299, 486, 193},
[299] = { 250, 298, 594, 193},
[298] = { 225, 297, 485, 193},
[297] = { 200, 296, 484, 108},
[296] = { 175, 295, 482, 108},
[295] = { 150, 294, 479, 108},
[294] = { 125, 293, 478, 108},
[293] = { 100, 292, 477, 108},
[292] = { 75, 291, 476, 108},
[291] = { 50, 290, 35, 108},
[315] = { 250, 314, 533, 122},
[314] = { 175, 313, 551, 122},
[313] = { 150, 312, 581, 122},
[312] = { 75, 311, 22, 122},
[311] = { 50, 310, 630, 122},
[327] = { 330, 326, 684, 122},
[326] = { 275, 325, 643, 122},
[325] = { 250, 324, 658, 122},
[324] = { 220, 323, 642, 122},
[323] = { 175, 322, 222, 122},
[322] = { 120, 321, 260, 122},
[321] = { 75, 320, 641, 122},
[334] = { 300, 333, 677, 131},
[333] = { 250, 332, 370, 131},
[332] = { 150, 331, 678, 131},
[331] = { 75, 330, 679, 131}
}
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
local tempo = 30 --Exausted em segundos.
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 Reverter nesta área!") return true
end
if getPlayerStorageValue(cid, 10251) > os.time () then
doPlayerSendCancel(cid, "Aguarde "..getPlayerStorageValue(cid, 10251) - os.time ().." para reverter novamente.")
return true
end
doPlayerSay(cid, "Reverter")
local voc = config[getPlayerVocation(cid)]
if voc then
if getPlayerLevel(cid) >= voc[1] then
doPlayerSetVocation(cid, voc[2])
doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Você Reverteu!")
setPlayerStorageValue(cid, 10251, os.time () + tempo)
local outfit = {lookType = voc[3]}
doCreatureChangeOutfit(cid, outfit)
doSendMagicEffect(getCreaturePosition(cid), voc[4])
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Não da pra Reverter Tente Relogar.")
end
else
doPlayerSendCancel(cid, "Você não pode se Reverter!")
end
return true
end

Link para o comentário
Compartilhar em outros sites

  • 4 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...