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










info
Grupo: Artesão
Registrado: 15/11/12
Posts: 124
Reputação: +7
Char no Tibia: Xtibia Soul
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:
Reverter:
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!