WE
erro

Erro 'talkaction/script/reverter.lua'

Por wesleybeek, 17 de nov. de 2013 em Scripts

erro talkaction script
resolvido
script
7
1.3k
wesleybeekW
17 de novembro de 2013 às 21:24

Galera eu estava terminando as Minhas Vocaçoes Novas, e me Deparei com um Erro ao Lugar Server (Erro de talkaction)
Ja tentei arrumar fui na "linha 207, e na linha 1" mas não sei onde ta Erro.
Quem puder Ajudar e dizer onde o erro se Localiza Agradeço Muito
.


Erro (Imagem)

 

6jq7.png

 

 

 

Erro (Text)

 

[Error - LuaScriptInterFace::LoadFile] data/talkactions/scripts/reverter.lua:207: '}' expected (to close '{' at line 1) near '['
[Warning - Event::LoadScript] Cannot load script (data/talkactions/scripts/reverter.lua)
data/talkactions/scripts/reverter.lua:207: '{' expected (to close '{' at line 1) near '['

Desculpe - Aqui esta "Reverter.Lua"

local config = {
--[vocation id] = { level, nova voc, looktype, efeito}
[999] = { 300, 12, 560, 208},
[12] = { 275, 11, 559, 208},
[11] = { 250, 10, 409, 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},
[1001] = { 300, 24, 623, 110},
[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},
[62] = { 300, 61, 519, 205},
[61] = { 275, 60, 57, 205},
[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, 345, 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, 211, 109},
[176] = { 150, 175, 629, 109},
[175] = { 125, 174, 715, 109},
[174] = { 100, 173, 714, 109},
[173] = { 75, 172, 285, 108},
[172] = { 50, 171, 716, 108},
[171] = { 25, 170, 96, 108},
[197] = { 250, 196, 680, 4},
[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, 721, 10},
[203] = { 75, 202, 720, 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},
[318] = { 325, 317, 729, 122},
[317] = { 300, 316, 616, 122},
[316] = { 275, 315, 533, 122},
[315] = { 250, 314, 711, 122},
[314] = { 175, 313, 718, 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},
[335] = { 325, 334, 686, 131},
[334] = { 300, 333, 677, 131},
[333] = { 250, 332, 370, 131},
[332] = { 150, 331, 678, 131},
[331] = { 75, 330, 679, 131},
[344] = { 300, 343, 513, 26},
[343] = { 250, 342, 512, 26},
[342] = { 150, 341, 511, 26},
[341] = { 75, 340, 510, 26},
[355] = { 330, 354, 381, 122},
[354] = { 300, 353, 380, 122},
[353] = { 250, 352, 379, 122},
[352] = { 150, 351, 378, 122}
[351] = { 75, 350, 322, 122},
[367] = { 325, 366, 722, 180},
[366] = { 300, 365, 471, 180},
[365] = { 275, 364, 469, 180},
[364] = { 225, 363, 468, 180},
[363] = { 200, 362, 467, 180},
[362] = { 150, 361, 465, 180},
[361] = { 100, 360, 464, 180}
}
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 = 3 --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

REP++
Agradeço desde Já.

Editado Novembro 18 por wesleybeek

vinny160600V
18 de novembro de 2013 às 00:39

manda o arquivo.

gonorreiaswatG
18 de novembro de 2013 às 12:56

Teste assim:

 

 

local config = {
--[vocation id] = { level, nova voc, looktype, efeito}
[999] = { 300, 12, 560, 208},
[12] = { 275, 11, 559, 208},
[11] = { 250, 10, 409, 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},
[1001] = { 300, 24, 623, 110},
[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},
[62] = { 300, 61, 519, 205},
[61] = { 275, 60, 57, 205},
[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, 345, 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, 211, 109},
[176] = { 150, 175, 629, 109},
[175] = { 125, 174, 715, 109},
[174] = { 100, 173, 714, 109},
[173] = { 75, 172, 285, 108},
[172] = { 50, 171, 716, 108},
[171] = { 25, 170, 96, 108},
[197] = { 250, 196, 680, 4},
[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, 721, 10},
[203] = { 75, 202, 720, 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},
[318] = { 325, 317, 729, 122},
[317] = { 300, 316, 616, 122},
[316] = { 275, 315, 533, 122},
[315] = { 250, 314, 711, 122},
[314] = { 175, 313, 718, 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},
[335] = { 325, 334, 686, 131},
[334] = { 300, 333, 677, 131},
[333] = { 250, 332, 370, 131},
[332] = { 150, 331, 678, 131},
[331] = { 75, 330, 679, 131},
[344] = { 300, 343, 513, 26},
[343] = { 250, 342, 512, 26},
[342] = { 150, 341, 511, 26},
[341] = { 75, 340, 510, 26},
[355] = { 330, 354, 381, 122},
[354] = { 300, 353, 380, 122},
[353] = { 250, 352, 379, 122},
[352] = { 150, 351, 378, 122},
[351] = { 75, 350, 322, 122},
[367] = { 325, 366, 722, 180},
[366] = { 300, 365, 471, 180},
[365] = { 275, 364, 469, 180},
[364] = { 225, 363, 468, 180},
[363] = { 200, 362, 467, 180},
[362] = { 150, 361, 465, 180},
[361] = { 100, 360, 464, 180}
}
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 = 3         --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

 

Tinha um errinho bobo.

 

Boa sorte.

wesleybeekW
18 de novembro de 2013 às 13:15

Teste assim:

 

 

local config = {
--[vocation id] = { level, nova voc, looktype, efeito}
[999] = { 300, 12, 560, 208},
[12] = { 275, 11, 559, 208},
[11] = { 250, 10, 409, 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},
[1001] = { 300, 24, 623, 110},
[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},
[62] = { 300, 61, 519, 205},
[61] = { 275, 60, 57, 205},
[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, 345, 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, 211, 109},
[176] = { 150, 175, 629, 109},
[175] = { 125, 174, 715, 109},
[174] = { 100, 173, 714, 109},
[173] = { 75, 172, 285, 108},
[172] = { 50, 171, 716, 108},
[171] = { 25, 170, 96, 108},
[197] = { 250, 196, 680, 4},
[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, 721, 10},
[203] = { 75, 202, 720, 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},
[318] = { 325, 317, 729, 122},
[317] = { 300, 316, 616, 122},
[316] = { 275, 315, 533, 122},
[315] = { 250, 314, 711, 122},
[314] = { 175, 313, 718, 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},
[335] = { 325, 334, 686, 131},
[334] = { 300, 333, 677, 131},
[333] = { 250, 332, 370, 131},
[332] = { 150, 331, 678, 131},
[331] = { 75, 330, 679, 131},
[344] = { 300, 343, 513, 26},
[343] = { 250, 342, 512, 26},
[342] = { 150, 341, 511, 26},
[341] = { 75, 340, 510, 26},
[355] = { 330, 354, 381, 122},
[354] = { 300, 353, 380, 122},
[353] = { 250, 352, 379, 122},
[352] = { 150, 351, 378, 122},
[351] = { 75, 350, 322, 122},
[367] = { 325, 366, 722, 180},
[366] = { 300, 365, 471, 180},
[365] = { 275, 364, 469, 180},
[364] = { 225, 363, 468, 180},
[363] = { 200, 362, 467, 180},
[362] = { 150, 361, 465, 180},
[361] = { 100, 360, 464, 180}
}
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 = 3         --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

 

Tinha um errinho bobo.

 

Boa sorte.

 

TANCKS, era um errinho Bobo kk mas eu nao conseguia arrumar huh.png

Voce é bom com Scripts Parabéns, REP++

gonorreiaswatG
18 de novembro de 2013 às 14:36

Não conseguiu, mas irá conseguir no futuro.

 

Pois era 1 única vírgula que estava faltando na linha de configuração do [352] indo para [351], como pode ver abaixo:

[353] = { 250, 352, 379, 122},
[352] = { 150, 351, 378, 122}
[351] = { 75, 350, 322, 122},

Pois a vírgula que determina que o script ainda continua sendo configurado, e com a falta desta da como finalizado.

Por este motivo estava dando erro no Launcher.

 

Que bom que era só isso e que funcionou.

 

Boa sorte.

Editado Novembro 18 por Adriano Swatt

wesleybeekW
18 de novembro de 2013 às 14:45

Não conseguiu, mas irá conseguir no futuro.

 

Pois era 1 única vírgula que estava faltando na linha de configuração do [352] indo para [351], como pode ver abaixo:

[353] = { 250, 352, 379, 122},
[352] = { 150, 351, 378, 122}
[351] = { 75, 350, 322, 122},

Pois a vírgula que determina que o script ainda continua sendo configurado, e com a falta desta da como finalizado.

Por este motivo estava dando erro no Launcher.

 

Que bom que era só isso e que funcionou.

 

Boa sorte.

 

Vlw.. kk Eram dois Erro pq eu botei Virgula em outro tbm mdr.gifhappy.png

VictorWEBMasterV
18 de novembro de 2013 às 22:11

Duvida sanada, topico movido!


Tópico movido para a seção de dúvidas e pedidos resolvidos.