Ir para conteúdo
  • Cadastre-se

(Resolvido)[AJUDA] nao consigo arrumar esses erros


Ir para solução Resolvido por Eremin,

Posts Recomendados

Bom gente eu estou com os seguintes erros

e eu nao consigo arrumar alguem poderia da uma ajuda?

[23/03/2015 18:17:20] [Error - LuaScriptInterface::loadFile] data/actions/scripts/VIP/futebol.lua:125: unexpected symbol near '='
[23/03/2015 18:17:20] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/VIP/futebol.lua)
[23/03/2015 18:17:20] data/actions/scripts/VIP/futebol.lua:125: unexpected symbol near '='
[23/03/2015 18:17:20] [Error - LuaScriptInterface::loadFile] data/talkactions/scripts/transformar.lua:24: '}' expected near '13'
[23/03/2015 18:17:20] [Warning - Event::loadScript] Cannot load script (data/talkactions/scripts/transformar.lua)
[23/03/2015 18:17:20] data/talkactions/scripts/transformar.lua:24: '}' expected near '13'
[23/03/2015 18:17:20] [Error - LuaScriptInterface::loadFile] data/talkactions/scripts/reverter.lua:24: '}' expected near '13'
[23/03/2015 18:17:20] [Warning - Event::loadScript] Cannot load script (data/talkactions/scripts/reverter.lua)
[23/03/2015 18:17:20] data/talkactions/scripts/reverter.lua:24: '}' expected near '13'
[23/03/2015 18:17:21] [Warning - Event::loadScript] Event onThink not found (data/globalevents/scripts/torneio.lua)
Editado por SiriusBlacks004 (veja o histórico de edições)
Link para o post
Compartilhar em outros sites

Posta aqui os seguintes arquivos data/actions/scripts/VIP/futebol.lua//data/talkactions/scripts/reverter.lua//data/talkactions/scripts/transformar.lua

Link para o post
Compartilhar em outros sites

Transformar

 

local config = {

--[vocation id] = { level, nova voc, looktype, efeito}
----------- Naruto  Uzumaki -----------
[1] = { 50, 2, 91, 13},
[2] = { 100, 3, 92, 13},
[3] = { 125, 4, 31, 13},
[4] = { 150, 5, 40, 13},
[5] = { 200, 6, 49, 13},
[6] = { 250, 7, 25, 13},
[7] = { 300, 8, 302, 13},
[8] = { 600, 9, 54, 13},
----------- Sasuke Uchiha -----------
[11] = { 50, 12, 2, 13},
[12] = { 100, 13, 5, 13},
[13] = { 125, 14, 6, 13},
[14] = { 150, 15, 7, 13},
[15] = { 200, 16, 8, 13},
[16] = { 250, 17, 376, 13},
[17] = { 300, 18, 379, 13},
[18] = { 600, 19, 504, 13},
----------- Sakura Haruno -----------
[21] = { 50, 22, 169, 13},
[22] = { 100, 23, 170, 13},
[23] = { 125, 24, 171 13},
[24] = { 150, 25, 172, 13},
[25] = { 200, 26, 173, 13},
[26] = { 250, 27, 174, 13},
[27] = { 300, 28, 174, 13},
[28] = { 600, 29, 175, 13},
----------- Kakashi Hatake -----------
[31] = { 50, 32, 9, 13},
[32] = { 100, 33, 10, 13},
[33] = { 125, 34, 11, 13},
[34] = { 150, 35, 12, 13},
[35] = { 200, 36, 13, 13},
[33] = { 250, 37, 14, 13},
[37] = { 300, 38, 271, 13},
[38] = { 600, 39, 272, 13},
----------- Gaara do Deserto -----------
[41] = { 50, 42, 71, 13},
[42] = { 100, 43, 66, 13},
[43] = { 125, 44, 91, 13},
[44] = { 150, 45, 18, 13},
[45] = { 200, 46, 31, 13},
[46] = { 250, 47, 92, 13},
[47] = { 300, 48, 40, 13},
[48] = { 600, 49, 49, 13},
----------- Kankuro do Deserto -----------
[51] = { 50, 52, 600, 13},
[52] = { 100, 53, 601, 13},
[53] = { 125, 54, 602, 13},
[54] = { 150, 20, 603, 13},
[20] = { 200, 56, 622, 13},
[56] = { 250, 57, 623, 13},
[57] = { 300, 58, 624, 13},
[58] = { 600, 59, 548, 13},
----------- Temari do Deserto -----------
[61] = { 50, 62, 578, 13},
[62] = { 100, 63, 579, 13},
[63] = { 125, 64, 580, 13},
[64] = { 150, 65, 581, 13},
[65] = { 200, 66, 582, 13},
[66] = { 250, 67, 583, 13},
[67] = { 300, 68, 584, 13},
[68] = { 600, 69, 585, 13},
----------- Shikamaru Nara -----------
[71] = { 50, 72, 424, 13},
[72] = { 100, 73, 425, 13},
[73] = { 125, 74, 426, 13},
[74] = { 150, 75, 427, 13},
[75] = { 200, 76, 428, 13},
[76] = { 250, 77, 429, 13},
[77] = { 300, 78, 430, 13},
[78] = { 600, 79, 431, 13},
----------- Chouji Akimichi -----------
[81] = { 50, 82, 71, 13},
[82] = { 100, 83, 66, 13},
[83] = { 125, 84, 91, 13},
[84] = { 150, 85, 18, 13},
[85] = { 200, 86, 31, 13},
[86] = { 250, 87, 92, 13},
[87] = { 300, 88, 40, 13},
[88] = { 600, 89, 49, 13},
----------- Ino Yamanaka -----------
[91] = { 50, 92, 626, 13},
[92] = { 100, 93, 628, 13},
[93] = { 125, 94, 627, 13},
[94] = { 150, 95, 629, 13},
[95] = { 200, 96, 630, 13},
[96] = { 250, 97, 632, 13},
[97] = { 300, 98, 633, 13},
[98] = { 600, 99, 631, 13},
----------- Hinata Hyuuga -----------
[101] = { 50, 102, 4, 13},
[102] = { 100, 103, 66, 13},
[103] = { 125, 104, 91, 13},
[104] = { 150, 105, 18, 13},
[105] = { 200, 106, 31, 13},
[106] = { 250, 107, 92, 13},
[107] = { 300, 108, 40, 13},
[108] = { 600, 109, 49, 13},
----------- Shino Aburame -----------
[111] = { 50, 112, 416, 13},
[112] = { 100, 113, 417, 13},
[113] = { 125, 114, 418, 13},
[114] = { 150, 115, 421, 13},
[115] = { 200, 116, 422, 13},
[116] = { 250, 117, 418, 13},
[117] = { 300, 118, 418, 13},
[118] = { 600, 119, 419, 13},
----------- Kiba Inuzuka -----------
[121] = { 50, 122, 71, 13},
[122] = { 100, 123, 66, 13},
[123] = { 125, 124, 91, 13},
[124] = { 150, 125, 18, 13},
[125] = { 200, 126, 31, 13},
[126] = { 250, 127, 92, 13},
[127] = { 300, 128, 40, 13},
[128] = { 600, 129, 49, 13},
----------- Neji Hyuuga -----------
[131] = { 50, 132, 101, 13},
[132] = { 100, 133, 102, 13},
[133] = { 125, 134, 103, 13},
[134] = { 150, 135, 104, 13},
[135] = { 200, 136, 105, 13},
[136] = { 250, 137, 107, 13},
[137] = { 300, 138, 105, 13},
[138] = { 600, 139, 107, 13},
----------- Tenten Mitsashi -----------
[141] = { 50, 142, 308, 13},
[142] = { 100, 143, 309, 13},
[143] = { 125, 144, 310, 13},
[144] = { 150, 145, 311, 13},
[145] = { 200, 146, 312, 13},
[146] = { 250, 147, 313, 13},
[147] = { 300, 148, 315, 13},
[148] = { 600, 149, 316, 13},
----------- Rock Lee -----------
[151] = { 50, 152, 746, 13},
[152] = { 100, 153, 190, 13},
[153] = { 125, 154, 191, 13},
[154] = { 150, 120, 192, 13},
[120] = { 200, 156, 612, 13},
[156] = { 250, 157, 747, 13},
[157] = { 300, 158, 748, 13},
[158] = { 600, 159, 749, 13},
----------- Jiraya -----------
[161] = { 50, 162, 816, 13},
[162] = { 100, 163, 817, 13},
[163] = { 125, 164, 818, 13},
[164] = { 150, 165, 820, 13},
[165] = { 200, 166, 822, 13},
[166] = { 250, 167, 824, 13},
[167] = { 300, 168, 825, 13},
[168] = { 600, 169, 829, 13},
----------- Orochimaru -----------
[171] = { 50, 172, 573, 13},
[172] = { 100, 173, 574, 13},
[173] = { 125, 174, 575, 13},
[174] = { 150, 175, 576, 13},
[175] = { 200, 176, 577, 13},
[176] = { 250, 177, 576, 13},
[177] = { 300, 178, 577, 13},
[178] = { 600, 179, 576, 13},
----------- Tsunade -----------
[181] = { 50, 182, 586, 13},
[182] = { 100, 183, 587, 13},
[183] = { 125, 184, 589, 13},
[184] = { 150, 185, 590, 13},
[185] = { 200, 186, 591, 13},
[186] = { 250, 187, 592, 13},
[187] = { 300, 188, 593, 13},
[188] = { 600, 189, 594, 13},
----------- Anbu -----------
[191] = { 50, 192, 71, 13},
[192] = { 100, 193, 66, 13},
[193] = { 125, 194, 91, 13},
[194] = { 150, 195, 18, 13},
[195] = { 200, 196, 31, 13},
[196] = { 250, 197, 92, 13},
[197] = { 300, 198, 40, 13},
[198] = { 600, 199, 49, 13},
----------- Deidara -----------
[201] = { 50, 202, 774, 13},
[202] = { 100, 203, 775, 13},
[203] = { 125, 204, 776, 13},
[204] = { 150, 205, 777, 13},
[205] = { 200, 206, 778, 13},
[206] = { 250, 207, 779, 13},
[207] = { 300, 208, 783, 13},
[208] = { 600, 209, 785, 13},
----------- Itachi Uchiha -----------
[211] = { 50, 212, 71, 13},
[212] = { 100, 213, 66, 13},
[213] = { 125, 214, 91, 13},
[214] = { 150, 215, 18, 13},
[215] = { 200, 216, 31, 13},
[216] = { 250, 217, 92, 13},
[217] = { 300, 218, 40, 13},
[218] = { 600, 219, 49, 13},
----------- Kisame Hoshigake -----------
[221] = { 50, 222, 687, 13},
[222] = { 100, 223, 688, 13},
[223] = { 125, 224, 689, 13},
[224] = { 150, 225, 690, 13},
[225] = { 200, 226, 690, 13},
[226] = { 250, 227, 691, 13},
[227] = { 300, 228, 691, 13},
[228] = { 600, 229, 692, 13},
----------- Hidan -----------
[231] = { 50, 232, 566, 13},
[232] = { 100, 233, 567, 13},
[233] = { 125, 234, 567, 13},
[234] = { 150, 235, 568, 13},
[235] = { 200, 236, 568, 13},
[236] = { 250, 237, 569, 13},
[237] = { 300, 238, 569, 13},
[238] = { 600, 239, 570, 13},
----------- Kakuzu -----------
[241] = { 50, 242, 642, 13},
[242] = { 100, 243, 643, 13},
[243] = { 125, 244, 643, 13},
[244] = { 150, 245, 682, 13},
[245] = { 200, 246, 684, 13},
[246] = { 250, 247, 685, 13},
[247] = { 300, 248, 652, 13},
[248] = { 600, 249, 764, 13},
----------- Killer Bee -----------
[251] = { 50, 252, 52, 13},
[252] = { 100, 253, 53, 13},
[253] = { 125, 254, 20, 13},
[254] = { 150, 220, 56, 13},
[220] = { 200, 256, 62, 13},
[256] = { 250, 257, 64, 13},
[257] = { 300, 258, 66, 13},
[258] = { 600, 259, 45, 13},
----------- Guren -----------
[261] = { 50, 262, 71, 13},
[262] = { 100, 263, 66, 13},
[263] = { 125, 264, 91, 13},
[264] = { 150, 265, 18, 13},
[265] = { 200, 266, 31, 13},
[266] = { 250, 267, 92, 13},
[267] = { 300, 268, 40, 13},
[268] = { 600, 269, 49, 13},
----------- Uchiha Madara -----------
[271] = { 50, 272, 479, 13},
[272] = { 100, 273, 480, 13},
[273] = { 125, 274, 481, 13},
[274] = { 150, 275, 482, 13},
[275] = { 200, 276, 483, 13},
[276] = { 250, 277, 484, 13},
[277] = { 300, 278, 485, 13},
[278] = { 600, 279, 486, 13},
----------- Hashirama Senju -----------
[281] = { 50, 282, 751, 13},
[282] = { 100, 283, 752, 13},
[283] = { 125, 284, 754, 13},
[284] = { 150, 285, 755, 13},
[285] = { 200, 286, 757, 13},
[286] = { 250, 287, 759, 13},
[287] = { 300, 288, 760, 13},
[288] = { 600, 289, 761, 13},
----------- Tobirama Senju -----------
[291] = { 50, 292, 788, 13},
[292] = { 100, 293, 790, 13},
[293] = { 125, 294, 791, 13},
[294] = { 150, 295, 792, 13},
[295] = { 200, 296, 793, 13},
[296] = { 250, 297, 789, 13},
[297] = { 300, 298, 794, 13},
[298] = { 600, 299, 795, 13},
----------- Uchiha Obito -----------
[301] = { 50, 302, 402, 13},
[302] = { 100, 303, 403, 13},
[303] = { 125, 304, 404, 13},
[304] = { 150, 305, 405, 13},
[305] = { 200, 306, 413, 13},
[306] = { 250, 307, 92, 13},
[307] = { 300, 308, 40, 13},
[308] = { 600, 309, 49, 13},
----------- Minato Namikaze -----------
[311] = { 50, 312, 71, 13},
[312] = { 100, 313, 66, 13},
[313] = { 125, 314, 91, 13},
[314] = { 150, 315, 18, 13},
[315] = { 200, 316, 31, 13},
[316] = { 250, 317, 92, 13},
[317] = { 300, 318, 40, 13},
[318] = { 600, 319, 49, 13},
----------- Kushina Uzumaki -----------
[321] = { 50, 322, 71, 13},
[322] = { 100, 323, 66, 13},
[323] = { 125, 324, 91, 13},
[324] = { 150, 325, 18, 13},
[325] = { 200, 326, 31, 13},
[326] = { 250, 327, 92, 13},
[327] = { 300, 328, 40, 13},
[328] = { 600, 329, 49, 13},
----------- Kabuto -----------
[331] = { 50, 332, 805, 13},
[332] = { 100, 333, 806, 13},
[333] = { 125, 334, 807, 13},
[334] = { 150, 335, 809, 13},
[335] = { 200, 336, 811, 13},
[336] = { 250, 337, 813, 13},
[337] = { 300, 338, 812, 13},
[338] = { 600, 339, 814, 13},
----------- Naruto Rikudou -----------
[341] = { 50, 342, 71, 13},
[342] = { 100, 343, 66, 13},
[343] = { 125, 344, 91, 13},
[344] = { 150, 345, 18, 13},
[345] = { 200, 346, 31, 13},
[346] = { 250, 347, 92, 13},
[347] = { 300, 348, 40, 13},
[348] = { 600, 349, 49, 13},
----------- Sasuke Rikudou -----------
[351] = { 50, 352, 71, 13},
[352] = { 100, 353, 66, 13},
[353] = { 125, 354, 91, 13},
[354] = { 150, 320, 18, 13},
[320] = { 200, 356, 31, 13},
[356] = { 250, 357, 92, 13},
[357] = { 300, 358, 40, 13},
[358] = { 600, 359, 49, 13},
----------- Raikage -----------
[361] = { 50, 362, 71, 13},
[362] = { 100, 363, 66, 13},
[363] = { 125, 364, 91, 13},
[364] = { 150, 365, 18, 13},
[365] = { 200, 366, 31, 13},
[366] = { 250, 367, 92, 13},
[367] = { 300, 368, 40, 13},
[368] = { 600, 369, 49, 13},
----------- Kaguya -----------
[371] = { 50, 372, 875, 13},
[372] = { 100, 373, 875, 13},
[373] = { 125, 374, 875, 13},
[374] = { 150, 375, 875, 13},
[375] = { 200, 376, 875, 13},
[376] = { 250, 377, 875, 13},
[377] = { 300, 378, 875, 13},
[378] = { 600, 379, 875, 13},
----------- Rikudou Sennin -----------
[381] = { 50, 382, 363, 13},
[382] = { 100, 383, 365, 13},
[383] = { 125, 384, 363, 13},
[384] = { 150, 385, 365, 13},
[385] = { 200, 386, 363, 13},
[386] = { 250, 387, 365, 13},
[387] = { 300, 388, 363, 13},
[388] = { 600, 389, 365, 13},
----------- Nagato -----------
[391] = { 50, 392, 854, 13},
[392] = { 100, 393, 857, 13},
[393] = { 125, 394, 859, 13},
[394] = { 150, 395, 860, 13},
[395] = { 200, 396, 861, 13},
[396] = { 250, 397, 862, 13},
[397] = { 300, 398, 863, 13},
[398] = { 600, 399, 864, 13},
----------- Naruto Mecha -----------
[401] = { 50, 402, 71, 13},
[402] = { 100, 403, 66, 13},
[403] = { 125, 404, 91, 13},
[404] = { 150, 405, 18, 13},
[405] = { 200, 406, 31, 13},
[406] = { 250, 407, 92, 13},
[407] = { 300, 408, 40, 13},
[408] = { 600, 409, 49, 13},
----------- Mizukage -----------
[411] = { 50, 412, 71, 13},
[412] = { 100, 413, 66, 13},
[413] = { 125, 414, 91, 13},
[414] = { 150, 415, 18, 13},
[415] = { 200, 416, 31, 13},
[416] = { 250, 417, 92, 13},
[417] = { 300, 418, 40, 13},
[418] = { 600, 419, 49, 13},
----------- Danzou -----------
[421] = { 50, 422, 71, 13},
[422] = { 100, 423, 66, 13},
[423] = { 125, 424, 91, 13},
[424] = { 150, 425, 18, 13},
[425] = { 200, 426, 31, 13},
[426] = { 250, 427, 92, 13},
[427] = { 300, 428, 40, 13},
[428] = { 600, 429, 49, 13},
----------- Uchiha Shisui -----------
[431] = { 50, 432, 71, 13},
[432] = { 100, 433, 66, 13},
[433] = { 125, 434, 91, 13},
[434] = { 150, 435, 18, 13},
[435] = { 200, 436, 31, 13},
[436] = { 250, 437, 92, 13},
[437] = { 300, 438, 40, 13},
[438] = { 600, 439, 49, 13},
----------- Naruto Menma -----------
[441] = { 50, 442, 71, 13},
[442] = { 100, 443, 66, 13},
[443] = { 125, 444, 91, 13},
[444] = { 150, 445, 18, 13},
[445] = { 200, 446, 31, 13},
[446] = { 250, 447, 92, 13},
[447] = { 300, 448, 40, 13},
[448] = { 600, 449, 49, 13},
----------- Konan -----------
[451] = { 50, 452, 840, 13},
[452] = { 100, 453, 841, 13},
[453] = { 125, 454, 842, 13},
[454] = { 150, 455, 843, 13},
[455] = { 200, 456, 844, 13},
[456] = { 250, 457, 845, 13},
[457] = { 300, 458, 847, 13},
[458] = { 600, 459, 849, 13},
}
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, "Voce nao pode se Transformar nesta area!") return true
end
local voc = config[getPlayerVocation(cid)]
if voc then
if getPlayerLevel(cid) >= voc[1] then
doPlayerSetVocation(cid, voc[2])
local outfit = {lookType = voc[3]}
doCreatureChangeOutfit(cid, outfit)
doSendMagicEffect(getCreaturePosition(cid), voc[4])
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Voce precisa estar no level " .. voc[1] .. " para transformar.")
end
else
doPlayerSendCancel(cid, "Voce nao pode se Transformar!")
end
return true
end

 
Reverter
 

local config = {

--[vocation id] = { level, nova voc, looktype, efeito}
----------- Naruto  Uzumaki -----------
[1] = { 50, 2, 91, 13},
[2] = { 100, 3, 92, 13},
[3] = { 125, 4, 31, 13},
[4] = { 150, 5, 40, 13},
[5] = { 200, 6, 49, 13},
[6] = { 250, 7, 25, 13},
[7] = { 300, 8, 302, 13},
[8] = { 600, 9, 54, 13},
----------- Sasuke Uchiha -----------
[11] = { 50, 12, 2, 13},
[12] = { 100, 13, 5, 13},
[13] = { 125, 14, 6, 13},
[14] = { 150, 15, 7, 13},
[15] = { 200, 16, 8, 13},
[16] = { 250, 17, 376, 13},
[17] = { 300, 18, 379, 13},
[18] = { 600, 19, 504, 13},
----------- Sakura Haruno -----------
[21] = { 50, 22, 169, 13},
[22] = { 100, 23, 170, 13},
[23] = { 125, 24, 171 13},
[24] = { 150, 25, 172, 13},
[25] = { 200, 26, 173, 13},
[26] = { 250, 27, 174, 13},
[27] = { 300, 28, 174, 13},
[28] = { 600, 29, 175, 13},
----------- Kakashi Hatake -----------
[31] = { 50, 32, 9, 13},
[32] = { 100, 33, 10, 13},
[33] = { 125, 34, 11, 13},
[34] = { 150, 35, 12, 13},
[35] = { 200, 36, 13, 13},
[33] = { 250, 37, 14, 13},
[37] = { 300, 38, 271, 13},
[38] = { 600, 39, 272, 13},
----------- Gaara do Deserto -----------
[41] = { 50, 42, 71, 13},
[42] = { 100, 43, 66, 13},
[43] = { 125, 44, 91, 13},
[44] = { 150, 45, 18, 13},
[45] = { 200, 46, 31, 13},
[46] = { 250, 47, 92, 13},
[47] = { 300, 48, 40, 13},
[48] = { 600, 49, 49, 13},
----------- Kankuro do Deserto -----------
[51] = { 50, 52, 600, 13},
[52] = { 100, 53, 601, 13},
[53] = { 125, 54, 602, 13},
[54] = { 150, 20, 603, 13},
[20] = { 200, 56, 622, 13},
[56] = { 250, 57, 623, 13},
[57] = { 300, 58, 624, 13},
[58] = { 600, 59, 548, 13},
----------- Temari do Deserto -----------
[61] = { 50, 62, 578, 13},
[62] = { 100, 63, 579, 13},
[63] = { 125, 64, 580, 13},
[64] = { 150, 65, 581, 13},
[65] = { 200, 66, 582, 13},
[66] = { 250, 67, 583, 13},
[67] = { 300, 68, 584, 13},
[68] = { 600, 69, 585, 13},
----------- Shikamaru Nara -----------
[71] = { 50, 72, 424, 13},
[72] = { 100, 73, 425, 13},
[73] = { 125, 74, 426, 13},
[74] = { 150, 75, 427, 13},
[75] = { 200, 76, 428, 13},
[76] = { 250, 77, 429, 13},
[77] = { 300, 78, 430, 13},
[78] = { 600, 79, 431, 13},
----------- Chouji Akimichi -----------
[81] = { 50, 82, 71, 13},
[82] = { 100, 83, 66, 13},
[83] = { 125, 84, 91, 13},
[84] = { 150, 85, 18, 13},
[85] = { 200, 86, 31, 13},
[86] = { 250, 87, 92, 13},
[87] = { 300, 88, 40, 13},
[88] = { 600, 89, 49, 13},
----------- Ino Yamanaka -----------
[91] = { 50, 92, 626, 13},
[92] = { 100, 93, 628, 13},
[93] = { 125, 94, 627, 13},
[94] = { 150, 95, 629, 13},
[95] = { 200, 96, 630, 13},
[96] = { 250, 97, 632, 13},
[97] = { 300, 98, 633, 13},
[98] = { 600, 99, 631, 13},
----------- Hinata Hyuuga -----------
[101] = { 50, 102, 4, 13},
[102] = { 100, 103, 66, 13},
[103] = { 125, 104, 91, 13},
[104] = { 150, 105, 18, 13},
[105] = { 200, 106, 31, 13},
[106] = { 250, 107, 92, 13},
[107] = { 300, 108, 40, 13},
[108] = { 600, 109, 49, 13},
----------- Shino Aburame -----------
[111] = { 50, 112, 416, 13},
[112] = { 100, 113, 417, 13},
[113] = { 125, 114, 418, 13},
[114] = { 150, 115, 421, 13},
[115] = { 200, 116, 422, 13},
[116] = { 250, 117, 418, 13},
[117] = { 300, 118, 418, 13},
[118] = { 600, 119, 419, 13},
----------- Kiba Inuzuka -----------
[121] = { 50, 122, 71, 13},
[122] = { 100, 123, 66, 13},
[123] = { 125, 124, 91, 13},
[124] = { 150, 125, 18, 13},
[125] = { 200, 126, 31, 13},
[126] = { 250, 127, 92, 13},
[127] = { 300, 128, 40, 13},
[128] = { 600, 129, 49, 13},
----------- Neji Hyuuga -----------
[131] = { 50, 132, 101, 13},
[132] = { 100, 133, 102, 13},
[133] = { 125, 134, 103, 13},
[134] = { 150, 135, 104, 13},
[135] = { 200, 136, 105, 13},
[136] = { 250, 137, 107, 13},
[137] = { 300, 138, 105, 13},
[138] = { 600, 139, 107, 13},
----------- Tenten Mitsashi -----------
[141] = { 50, 142, 308, 13},
[142] = { 100, 143, 309, 13},
[143] = { 125, 144, 310, 13},
[144] = { 150, 145, 311, 13},
[145] = { 200, 146, 312, 13},
[146] = { 250, 147, 313, 13},
[147] = { 300, 148, 315, 13},
[148] = { 600, 149, 316, 13},
----------- Rock Lee -----------
[151] = { 50, 152, 746, 13},
[152] = { 100, 153, 190, 13},
[153] = { 125, 154, 191, 13},
[154] = { 150, 120, 192, 13},
[120] = { 200, 156, 612, 13},
[156] = { 250, 157, 747, 13},
[157] = { 300, 158, 748, 13},
[158] = { 600, 159, 749, 13},
----------- Jiraya -----------
[161] = { 50, 162, 816, 13},
[162] = { 100, 163, 817, 13},
[163] = { 125, 164, 818, 13},
[164] = { 150, 165, 820, 13},
[165] = { 200, 166, 822, 13},
[166] = { 250, 167, 824, 13},
[167] = { 300, 168, 825, 13},
[168] = { 600, 169, 829, 13},
----------- Orochimaru -----------
[171] = { 50, 172, 573, 13},
[172] = { 100, 173, 574, 13},
[173] = { 125, 174, 575, 13},
[174] = { 150, 175, 576, 13},
[175] = { 200, 176, 577, 13},
[176] = { 250, 177, 576, 13},
[177] = { 300, 178, 577, 13},
[178] = { 600, 179, 576, 13},
----------- Tsunade -----------
[181] = { 50, 182, 586, 13},
[182] = { 100, 183, 587, 13},
[183] = { 125, 184, 589, 13},
[184] = { 150, 185, 590, 13},
[185] = { 200, 186, 591, 13},
[186] = { 250, 187, 592, 13},
[187] = { 300, 188, 593, 13},
[188] = { 600, 189, 594, 13},
----------- Anbu -----------
[191] = { 50, 192, 71, 13},
[192] = { 100, 193, 66, 13},
[193] = { 125, 194, 91, 13},
[194] = { 150, 195, 18, 13},
[195] = { 200, 196, 31, 13},
[196] = { 250, 197, 92, 13},
[197] = { 300, 198, 40, 13},
[198] = { 600, 199, 49, 13},
----------- Deidara -----------
[201] = { 50, 202, 774, 13},
[202] = { 100, 203, 775, 13},
[203] = { 125, 204, 776, 13},
[204] = { 150, 205, 777, 13},
[205] = { 200, 206, 778, 13},
[206] = { 250, 207, 779, 13},
[207] = { 300, 208, 783, 13},
[208] = { 600, 209, 785, 13},
----------- Itachi Uchiha -----------
[211] = { 50, 212, 71, 13},
[212] = { 100, 213, 66, 13},
[213] = { 125, 214, 91, 13},
[214] = { 150, 215, 18, 13},
[215] = { 200, 216, 31, 13},
[216] = { 250, 217, 92, 13},
[217] = { 300, 218, 40, 13},
[218] = { 600, 219, 49, 13},
----------- Kisame Hoshigake -----------
[221] = { 50, 222, 687, 13},
[222] = { 100, 223, 688, 13},
[223] = { 125, 224, 689, 13},
[224] = { 150, 225, 690, 13},
[225] = { 200, 226, 690, 13},
[226] = { 250, 227, 691, 13},
[227] = { 300, 228, 691, 13},
[228] = { 600, 229, 692, 13},
----------- Hidan -----------
[231] = { 50, 232, 566, 13},
[232] = { 100, 233, 567, 13},
[233] = { 125, 234, 567, 13},
[234] = { 150, 235, 568, 13},
[235] = { 200, 236, 568, 13},
[236] = { 250, 237, 569, 13},
[237] = { 300, 238, 569, 13},
[238] = { 600, 239, 570, 13},
----------- Kakuzu -----------
[241] = { 50, 242, 642, 13},
[242] = { 100, 243, 643, 13},
[243] = { 125, 244, 643, 13},
[244] = { 150, 245, 682, 13},
[245] = { 200, 246, 684, 13},
[246] = { 250, 247, 685, 13},
[247] = { 300, 248, 652, 13},
[248] = { 600, 249, 764, 13},
----------- Killer Bee -----------
[251] = { 50, 252, 52, 13},
[252] = { 100, 253, 53, 13},
[253] = { 125, 254, 20, 13},
[254] = { 150, 220, 56, 13},
[220] = { 200, 256, 62, 13},
[256] = { 250, 257, 64, 13},
[257] = { 300, 258, 66, 13},
[258] = { 600, 259, 45, 13},
----------- Guren -----------
[261] = { 50, 262, 71, 13},
[262] = { 100, 263, 66, 13},
[263] = { 125, 264, 91, 13},
[264] = { 150, 265, 18, 13},
[265] = { 200, 266, 31, 13},
[266] = { 250, 267, 92, 13},
[267] = { 300, 268, 40, 13},
[268] = { 600, 269, 49, 13},
----------- Uchiha Madara -----------
[271] = { 50, 272, 479, 13},
[272] = { 100, 273, 480, 13},
[273] = { 125, 274, 481, 13},
[274] = { 150, 275, 482, 13},
[275] = { 200, 276, 483, 13},
[276] = { 250, 277, 484, 13},
[277] = { 300, 278, 485, 13},
[278] = { 600, 279, 486, 13},
----------- Hashirama Senju -----------
[281] = { 50, 282, 751, 13},
[282] = { 100, 283, 752, 13},
[283] = { 125, 284, 754, 13},
[284] = { 150, 285, 755, 13},
[285] = { 200, 286, 757, 13},
[286] = { 250, 287, 759, 13},
[287] = { 300, 288, 760, 13},
[288] = { 600, 289, 761, 13},
----------- Tobirama Senju -----------
[291] = { 50, 292, 788, 13},
[292] = { 100, 293, 790, 13},
[293] = { 125, 294, 791, 13},
[294] = { 150, 295, 792, 13},
[295] = { 200, 296, 793, 13},
[296] = { 250, 297, 789, 13},
[297] = { 300, 298, 794, 13},
[298] = { 600, 299, 795, 13},
----------- Uchiha Obito -----------
[301] = { 50, 302, 402, 13},
[302] = { 100, 303, 403, 13},
[303] = { 125, 304, 404, 13},
[304] = { 150, 305, 405, 13},
[305] = { 200, 306, 413, 13},
[306] = { 250, 307, 92, 13},
[307] = { 300, 308, 40, 13},
[308] = { 600, 309, 49, 13},
----------- Minato Namikaze -----------
[311] = { 50, 312, 71, 13},
[312] = { 100, 313, 66, 13},
[313] = { 125, 314, 91, 13},
[314] = { 150, 315, 18, 13},
[315] = { 200, 316, 31, 13},
[316] = { 250, 317, 92, 13},
[317] = { 300, 318, 40, 13},
[318] = { 600, 319, 49, 13},
----------- Kushina Uzumaki -----------
[321] = { 50, 322, 71, 13},
[322] = { 100, 323, 66, 13},
[323] = { 125, 324, 91, 13},
[324] = { 150, 325, 18, 13},
[325] = { 200, 326, 31, 13},
[326] = { 250, 327, 92, 13},
[327] = { 300, 328, 40, 13},
[328] = { 600, 329, 49, 13},
----------- Kabuto -----------
[331] = { 50, 332, 805, 13},
[332] = { 100, 333, 806, 13},
[333] = { 125, 334, 807, 13},
[334] = { 150, 335, 809, 13},
[335] = { 200, 336, 811, 13},
[336] = { 250, 337, 813, 13},
[337] = { 300, 338, 812, 13},
[338] = { 600, 339, 814, 13},
----------- Naruto Rikudou -----------
[341] = { 50, 342, 71, 13},
[342] = { 100, 343, 66, 13},
[343] = { 125, 344, 91, 13},
[344] = { 150, 345, 18, 13},
[345] = { 200, 346, 31, 13},
[346] = { 250, 347, 92, 13},
[347] = { 300, 348, 40, 13},
[348] = { 600, 349, 49, 13},
----------- Sasuke Rikudou -----------
[351] = { 50, 352, 71, 13},
[352] = { 100, 353, 66, 13},
[353] = { 125, 354, 91, 13},
[354] = { 150, 320, 18, 13},
[320] = { 200, 356, 31, 13},
[356] = { 250, 357, 92, 13},
[357] = { 300, 358, 40, 13},
[358] = { 600, 359, 49, 13},
----------- Raikage -----------
[361] = { 50, 362, 71, 13},
[362] = { 100, 363, 66, 13},
[363] = { 125, 364, 91, 13},
[364] = { 150, 365, 18, 13},
[365] = { 200, 366, 31, 13},
[366] = { 250, 367, 92, 13},
[367] = { 300, 368, 40, 13},
[368] = { 600, 369, 49, 13},
----------- Kaguya -----------
[371] = { 50, 372, 875, 13},
[372] = { 100, 373, 875, 13},
[373] = { 125, 374, 875, 13},
[374] = { 150, 375, 875, 13},
[375] = { 200, 376, 875, 13},
[376] = { 250, 377, 875, 13},
[377] = { 300, 378, 875, 13},
[378] = { 600, 379, 875, 13},
----------- Rikudou Sennin -----------
[381] = { 50, 382, 363, 13},
[382] = { 100, 383, 365, 13},
[383] = { 125, 384, 363, 13},
[384] = { 150, 385, 365, 13},
[385] = { 200, 386, 363, 13},
[386] = { 250, 387, 365, 13},
[387] = { 300, 388, 363, 13},
[388] = { 600, 389, 365, 13},
----------- Nagato -----------
[391] = { 50, 392, 854, 13},
[392] = { 100, 393, 857, 13},
[393] = { 125, 394, 859, 13},
[394] = { 150, 395, 860, 13},
[395] = { 200, 396, 861, 13},
[396] = { 250, 397, 862, 13},
[397] = { 300, 398, 863, 13},
[398] = { 600, 399, 864, 13},
----------- Naruto Mecha -----------
[401] = { 50, 402, 71, 13},
[402] = { 100, 403, 66, 13},
[403] = { 125, 404, 91, 13},
[404] = { 150, 405, 18, 13},
[405] = { 200, 406, 31, 13},
[406] = { 250, 407, 92, 13},
[407] = { 300, 408, 40, 13},
[408] = { 600, 409, 49, 13},
----------- Mizukage -----------
[411] = { 50, 412, 71, 13},
[412] = { 100, 413, 66, 13},
[413] = { 125, 414, 91, 13},
[414] = { 150, 415, 18, 13},
[415] = { 200, 416, 31, 13},
[416] = { 250, 417, 92, 13},
[417] = { 300, 418, 40, 13},
[418] = { 600, 419, 49, 13},
----------- Danzou -----------
[421] = { 50, 422, 71, 13},
[422] = { 100, 423, 66, 13},
[423] = { 125, 424, 91, 13},
[424] = { 150, 425, 18, 13},
[425] = { 200, 426, 31, 13},
[426] = { 250, 427, 92, 13},
[427] = { 300, 428, 40, 13},
[428] = { 600, 429, 49, 13},
----------- Uchiha Shisui -----------
[431] = { 50, 432, 71, 13},
[432] = { 100, 433, 66, 13},
[433] = { 125, 434, 91, 13},
[434] = { 150, 435, 18, 13},
[435] = { 200, 436, 31, 13},
[436] = { 250, 437, 92, 13},
[437] = { 300, 438, 40, 13},
[438] = { 600, 439, 49, 13},
----------- Naruto Menma -----------
[441] = { 50, 442, 71, 13},
[442] = { 100, 443, 66, 13},
[443] = { 125, 444, 91, 13},
[444] = { 150, 445, 18, 13},
[445] = { 200, 446, 31, 13},
[446] = { 250, 447, 92, 13},
[447] = { 300, 448, 40, 13},
[448] = { 600, 449, 49, 13},
----------- Konan -----------
[451] = { 50, 452, 840, 13},
[452] = { 100, 453, 841, 13},
[453] = { 125, 454, 842, 13},
[454] = { 150, 455, 843, 13},
[455] = { 200, 456, 844, 13},
[456] = { 250, 457, 845, 13},
[457] = { 300, 458, 847, 13},
[458] = { 600, 459, 849, 13},
}
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, "Voce nao 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, "Voce Reverteu!")
local outfit = {lookType = voc[3]}
doSetCreatureOutfit(cid, outfit, -1)
local pos = getCreaturePosition(cid)
doSendMagicEffect({x = pos.x, y = pos.y, z = pos.z}, voc[4])
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Nao da pra Reverter Tente Relogar.")
end
else
doPlayerSendCancel(cid, "Voce nao pode se Reverter!")
end
return true
end

 
Futebol


local config = {
-- Posicão que o jogadores devem estar na hora de puxar a alavanca
posJogador1 = {x=710,y=1039,z=6, stackpos=1},
posJogador2 = {x=712,y=1039,z=6, stackpos=1},
 
-- Posicão inicial dos jogadores na partida
posTeleporte1 = {x=713,y=1053,z=7, stackpos=1},
posTeleporte2 = {x=709,y=1053,z=7, stackpos=1},
 
posBola = {x=711,y=1053,z=7, stackpos=1}, -- Posicão inicial da bola
 
nomeNpc = "Juiz", -- Lembrando que o npc deve existir
posNpc = {x=711,y=1041,z=6, stackpos=1}, -- Posicão inicial do npc
 
gols = 5, -- Quantidade de gols para ganhar o jogo
 
tempoPrePartida = 5, -- Tempo de espera para comecar a partida (segundos)
 
quantidadeTorcedores = 7, -- Para cada equipe
 
-- Posicão inicial em que o script ira comecar preencher com os torcedores
posTorcida1 = {x=697,y=1065,z=6, stackpos=1},
posTorcida2 = {x=713,y=1065,z=6, stackpos=1},
 
-- Posicão dos gols
posGol1 = {
{x=689,y=1052,z=7, stackpos=1},
{x=689,y=1053,z=7, stackpos=1},
{x=689,y=1054,z=7, stackpos=1},
},
posGol2 = {
{x=725,y=1052,z=7, stackpos=1},
{x=725,y=1053,z=7, stackpos=1},
{x=725,y=1054,z=7, stackpos=1},
}
}
 
local jogador1 = nil
local jogador2 = nil
 
local listaTorcedores1 = ""
local listaTorcedores2 = ""
 
local npcUid = nil
 
local placar = { 0,0 }
 
local eventoTorcida = nil
local eventoGol = nil
 
local function inicioJogo()
doCreatureSay(npcUid, "Valendo!", TALKTYPE_YELL)
 
doSendMagicEffect(config.posTeleporte1, 12)
doSendMagicEffect(config.posTeleporte2, 12)
 
doCreatureSetNoMove(jogador1, false)
doCreatureSetNoMove(jogador2, false)
 
end
 
local function torcida(nome1, nome2)
local chanceTorcida1 = math.random(1,2)
local chanceTorcida2 = math.random(1,2)
 
if(chanceTorcida1>1)then
local uids = string.explode(listaTorcedores1, ",")
local torcedor = uids[math.random(1,#uids)]
doCreatureSay(torcedor, "Vai "..nome1.."!", TALKTYPE_YELL)
end
 
if(chanceTorcida2>1)then
local uids = string.explode(listaTorcedores2, ",")
local torcedor = uids[math.random(1,#uids)]
doCreatureSay(torcedor, "Vai "..nome2.."!", TALKTYPE_YELL)
end
 
eventoTorcida = addEvent(torcida,4000, nome1, nome2)
end
 
local function delayMsg(msg)
doCreatureSay(npcUid, msg, TALKTYPE_YELL)
end
 
local function testeGol(nome1,nome2)
for i=1,#config.posGol1 do
for j=1,10 do
local testPos = {x=config.posGol1.x, y=config.posGol1.y, z=config.posGol1.z, stackpos=j}
local thing = getThingFromPos(testPos)
 
if(thing.itemid==2109)then
if(placar[2]==config.gols-1)then
doPlayerSendTextMessage(jogador2, MESSAGE_INFO_DESCR, "Parabens! Voce ganhou a partida.")
doPlayerSendTextMessage(jogador1, MESSAGE_INFO_DESCR, "Lamento, mas voce perdeu o jogo.")
 
doTeleportThing(jogador1, config.posJogador1)
doTeleportThing(jogador2, config.posJogador2)
 
doSendMagicEffect(config.posJogador1, 12)
doSendMagicEffect(config.posJogador2, 12)
 
local item = doPlayerAddItem(jogador2, 5805)
doItemSetAttribute(item, "description", nome2.." conquistou este trofeu apos derrotar "..nome1.." em uma partida de futebol.")
 
doRemoveCreature(npcUid)
 
stopEvent(eventoTorcida)
stopEvent(eventoGol)
 
local uids1 = string.explode(listaTorcedores1, ",")
local uids2 = string.explode(listaTorcedores2, ",")
 
for k = 1, #uids1 do
doRemoveCreature(uids1[k])
doRemoveCreature(uids2[k])
end
 
jogador1 = nil
jogador2 = nil
 
listaTorcedores1 = ""
listaTorcedores2 = ""
 
config.posTorcida1 = {x=697,y=1065,z=6, stackpos=1},
config.posTorcida2 = {x=713,y=1065,z=6, stackpos=1},
 
npcUid = nil
 
placar = { 0,0 }
 
else
 
doTeleportThing(jogador1, config.posTeleporte1)
doTeleportThing(jogador2, config.posTeleporte2)
 
doSendMagicEffect(config.posTeleporte1, 10)
doSendMagicEffect(config.posTeleporte2, 10)
 
doCreatureSetNoMove(jogador1, true)
doCreatureSetNoMove(jogador2, true)
 
doCreatureSetLookDirection(jogador1, 1)
doCreatureSetLookDirection(jogador2, 3)
 
doCreateItem(2109, 1, config.posBola)
doSendMagicEffect(config.posBola, 13)
 
local uids = string.explode(listaTorcedores2, ",")
 
for k = 1, #uids do
doCreatureSay(uids[k], "GOOOOL!", TALKTYPE_YELL)
end
 
placar[2] = placar[2]+1
 
local msg = "Gol do "..nome2.."! O placar atual e "..nome1..": "..placar[1].." e "..nome2..": "..placar[2].."."
addEvent(delayMsg,1000, msg)
 
msg = "A proxima rodada ira comecar em cerca de "..config.tempoPrePartida.." segundos. Concentrem-se!"
addEvent(delayMsg,6000, msg)
 
addEvent(inicioJogo,7000+(config.tempoPrePartida*1000))
end
 
doRemoveItem(thing.uid)
end
end
end
 
for i=1,#config.posGol2 do
for j=1,10 do
local testPos = {x=config.posGol2.x, y=config.posGol2.y, z=config.posGol2.z, stackpos=j}
local thing = getThingFromPos(testPos)
 
if(thing.itemid==2109)then
if(placar[1]==config.gols-1)then
doPlayerSendTextMessage(jogador1, MESSAGE_INFO_DESCR, "Parabens! Voce ganhou a partida.")
doPlayerSendTextMessage(jogador2, MESSAGE_INFO_DESCR, "Lamento, mas voce perdeu o jogo.")
 
doTeleportThing(jogador1, config.posJogador1)
doTeleportThing(jogador2, config.posJogador2)
 
doSendMagicEffect(config.posJogador1, 12)
doSendMagicEffect(config.posJogador2, 12)
 
local item = doPlayerAddItem(jogador1, 5805)
doItemSetAttribute(item, "description", nome1.." conquistou este trofeu apos derrotar "..nome2.." em uma partida de futebol.")
 
doRemoveCreature(npcUid)
 
stopEvent(eventoTorcida)
stopEvent(eventoGol)
 
local uids1 = string.explode(listaTorcedores1, ",")
local uids2 = string.explode(listaTorcedores2, ",")
 
for k = 1, #uids1 do
doRemoveCreature(uids1[k])
doRemoveCreature(uids2[k])
end
 
jogador1 = nil
jogador2 = nil
 
listaTorcedores1 = ""
listaTorcedores2 = ""
 
config.posTorcida1 = {x=697,y=1065,z=6, stackpos=1},
config.posTorcida2 = {x=713,y=1065,z=6, stackpos=1},
npcUid = nil
 
placar = { 0,0 }
 
else
 
doTeleportThing(jogador1, config.posTeleporte1)
doTeleportThing(jogador2, config.posTeleporte2)
 
doSendMagicEffect(config.posTeleporte1, 10)
doSendMagicEffect(config.posTeleporte2, 10)
 
doCreatureSetNoMove(jogador1, true)
doCreatureSetNoMove(jogador2, true)
 
doCreatureSetLookDirection(jogador1, 1)
doCreatureSetLookDirection(jogador2, 3)
 
doCreateItem(2109, 1, config.posBola)
doSendMagicEffect(config.posBola, 13)
 
local uids = string.explode(listaTorcedores1, ",")
 
for k = 1, #uids do
doCreatureSay(uids[k], "GOOOOL!", TALKTYPE_YELL)
end
 
placar[1] = placar[1]+1
 
local msg = "Gol do "..nome1.."! O placar atual e "..nome1..": "..placar[1].." e "..nome2..": "..placar[2].."."
addEvent(delayMsg,1000, msg)
 
msg = "A proxima rodada ira comecar em cerca de "..config.tempoPrePartida.." segundos. Concentrem-se!"
addEvent(delayMsg,7000, msg)
 
addEvent(inicioJogo,8000+(config.tempoPrePartida*1000))
end
 
doRemoveItem(thing.uid)
end
end
end
 
eventoGol = addEvent(testeGol,100,nome1,nome2)
end
 
function onUse(cid, item, fromPosition, itemEx, toPosition)
 
if (isPlayer(jogador1) == true and isPlayer(jogador2) == true)then
doPlayerSendCancel(cid, "Lamento, mas o campo ja esta em uso.")
doSendMagicEffect(fromPosition, 2)
return false
end
 
local coisa1 = getThingFromPos(config.posJogador1).uid
local coisa2 = getThingFromPos(config.posJogador2).uid
 
if(isPlayer(coisa1))then
jogador1 = coisa1
end
 
if(isPlayer(coisa2))then
jogador2 = coisa2
end
 
if(jogador1==nil or jogador2==nil)then
doPlayerSendCancel(cid, "Desculpe, mas voce precisa de outro player para comecar um jogo.")
doSendMagicEffect(fromPosition, 2)
return false
else
doTeleportThing(jogador1, config.posTeleporte1)
doTeleportThing(jogador2, config.posTeleporte2)
 
doSendMagicEffect(config.posTeleporte1, 10)
doSendMagicEffect(config.posTeleporte2, 10)
 
doCreatureSetNoMove(jogador1, true)
doCreatureSetNoMove(jogador2, true)
 
doCreatureSetLookDirection(jogador1, 1)
doCreatureSetLookDirection(jogador2, 3)
 
doCreateItem(2109, 1, config.posBola)
doSendMagicEffect(config.posBola, 13)
 
npcUid = doCreateNpc(config.nomeNpc, config.posNpc)
doCreatureSetLookDirection(npcUid, 2)
doSendMagicEffect(config.posNpc, 10)
doCreatureSetNoMove(npcUid, true)
 
local nome1 = getCreatureName(jogador1)
local nome2 = getCreatureName(jogador2)
 
local msg = "Saudacoes "..nome1.." e "..nome2..". Serei o juiz desta partida. Ganhara o primeiro a fazer "..config.gols.." gols."
addEvent(delayMsg,1000, msg)
 
msg = "A partida ira comecar em cerca de "..config.tempoPrePartida.." segundos. Concentrem-se!"
addEvent(delayMsg,9000, msg)
 
local uidMonstro
local randomOutfit
 
for i=1,config.quantidadeTorcedores do
uidMonstro = doCreateMonster("Torcedor",config.posTorcida1)
doCreatureSetLookDirection(uidMonstro, 0)
doSendMagicEffect(config.posTorcida1, 10)
doCreatureSetNoMove(uidMonstro, true)
 
config.posTorcida1.x = config.posTorcida1.x + 1
 
randomOutfit = {
lookType = 363,
lookHead = math.random(1,66),
lookAddons = math.random(0,2),
lookLegs = math.random(1,66),
lookFeet = math.random(1,66)
}
 
doCreatureChangeOutfit(uidMonstro, randomOutfit)
 
if(listaTorcedores1=="")then
listaTorcedores1 = uidMonstro
else
listaTorcedores1 = listaTorcedores1..","..uidMonstro
end
end
 
for i=1,config.quantidadeTorcedores do
uidMonstro = doCreateMonster("Torcedor",config.posTorcida2)
doCreatureSetLookDirection(uidMonstro, 0)
doSendMagicEffect(config.posTorcida2, 10)
doCreatureSetNoMove(uidMonstro, true)
 
config.posTorcida2.x = config.posTorcida2.x + 1
 
randomOutfit = {
lookType = 368,
lookHead = math.random(67,132),
lookAddons = math.random(0,2),
lookLegs = math.random(67,132),
lookFeet = math.random(67,132)
}
 
doCreatureChangeOutfit(uidMonstro, randomOutfit)
 
if(listaTorcedores2=="")then
listaTorcedores2 = uidMonstro
else
listaTorcedores2 = listaTorcedores2..","..uidMonstro
end
end
 
addEvent(inicioJogo,10000+(config.tempoPrePartida*1000))
eventoTorcida = addEvent(torcida,10000+(config.tempoPrePartida*1000), nome1, nome2)
eventoGol =  addEvent(testeGol,10000+(config.tempoPrePartida*1000), nome1, nome2)
 
local teste = string.explode(listaTorcedores1,",")
 
end
 
return true
end
 

Editado por Mastertigi (veja o histórico de edições)
Link para o post
Compartilhar em outros sites
  • Solução

Transformar 

local config = {


--[vocation id] = { level, nova voc, looktype, efeito}
----------- Naruto Uzumaki -----------
[1] = { 50, 2, 91, 13},
[2] = { 100, 3, 92, 13},
[3] = { 125, 4, 31, 13},
[4] = { 150, 5, 40, 13},
[5] = { 200, 6, 49, 13},
[6] = { 250, 7, 25, 13},
[7] = { 300, 8, 302, 13},
[8] = { 600, 9, 54, 13},
----------- Sasuke Uchiha -----------
[11] = { 50, 12, 2, 13},
[12] = { 100, 13, 5, 13},
[13] = { 125, 14, 6, 13},
[14] = { 150, 15, 7, 13},
[15] = { 200, 16, 8, 13},
[16] = { 250, 17, 376, 13},
[17] = { 300, 18, 379, 13},
[18] = { 600, 19, 504, 13},
----------- Sakura Haruno -----------
[21] = { 50, 22, 169, 13},
[22] = { 100, 23, 170, 13},
[23] = { 125, 24, 171, 13},
[24] = { 150, 25, 172, 13},
[25] = { 200, 26, 173, 13},
[26] = { 250, 27, 174, 13},
[27] = { 300, 28, 174, 13},
[28] = { 600, 29, 175, 13},
----------- Kakashi Hatake -----------
[31] = { 50, 32, 9, 13},
[32] = { 100, 33, 10, 13},
[33] = { 125, 34, 11, 13},
[34] = { 150, 35, 12, 13},
[35] = { 200, 36, 13, 13},
[33] = { 250, 37, 14, 13},
[37] = { 300, 38, 271, 13},
[38] = { 600, 39, 272, 13},
----------- Gaara do Deserto -----------
[41] = { 50, 42, 71, 13},
[42] = { 100, 43, 66, 13},
[43] = { 125, 44, 91, 13},
[44] = { 150, 45, 18, 13},
[45] = { 200, 46, 31, 13},
[46] = { 250, 47, 92, 13},
[47] = { 300, 48, 40, 13},
[48] = { 600, 49, 49, 13},
----------- Kankuro do Deserto -----------
[51] = { 50, 52, 600, 13},
[52] = { 100, 53, 601, 13},
[53] = { 125, 54, 602, 13},
[54] = { 150, 20, 603, 13},
[20] = { 200, 56, 622, 13},
[56] = { 250, 57, 623, 13},
[57] = { 300, 58, 624, 13},
[58] = { 600, 59, 548, 13},
----------- Temari do Deserto -----------
[61] = { 50, 62, 578, 13},
[62] = { 100, 63, 579, 13},
[63] = { 125, 64, 580, 13},
[64] = { 150, 65, 581, 13},
[65] = { 200, 66, 582, 13},
[66] = { 250, 67, 583, 13},
[67] = { 300, 68, 584, 13},
[68] = { 600, 69, 585, 13},
----------- Shikamaru Nara -----------
[71] = { 50, 72, 424, 13},
[72] = { 100, 73, 425, 13},
[73] = { 125, 74, 426, 13},
[74] = { 150, 75, 427, 13},
[75] = { 200, 76, 428, 13},
[76] = { 250, 77, 429, 13},
[77] = { 300, 78, 430, 13},
[78] = { 600, 79, 431, 13},
----------- Chouji Akimichi -----------
[81] = { 50, 82, 71, 13},
[82] = { 100, 83, 66, 13},
[83] = { 125, 84, 91, 13},
[84] = { 150, 85, 18, 13},
[85] = { 200, 86, 31, 13},
[86] = { 250, 87, 92, 13},
[87] = { 300, 88, 40, 13},
[88] = { 600, 89, 49, 13},
----------- Ino Yamanaka -----------
[91] = { 50, 92, 626, 13},
[92] = { 100, 93, 628, 13},
[93] = { 125, 94, 627, 13},
[94] = { 150, 95, 629, 13},
[95] = { 200, 96, 630, 13},
[96] = { 250, 97, 632, 13},
[97] = { 300, 98, 633, 13},
[98] = { 600, 99, 631, 13},
----------- Hinata Hyuuga -----------
[101] = { 50, 102, 4, 13},
[102] = { 100, 103, 66, 13},
[103] = { 125, 104, 91, 13},
[104] = { 150, 105, 18, 13},
[105] = { 200, 106, 31, 13},
[106] = { 250, 107, 92, 13},
[107] = { 300, 108, 40, 13},
[108] = { 600, 109, 49, 13},
----------- Shino Aburame -----------
[111] = { 50, 112, 416, 13},
[112] = { 100, 113, 417, 13},
[113] = { 125, 114, 418, 13},
[114] = { 150, 115, 421, 13},
[115] = { 200, 116, 422, 13},
[116] = { 250, 117, 418, 13},
[117] = { 300, 118, 418, 13},
[118] = { 600, 119, 419, 13},
----------- Kiba Inuzuka -----------
[121] = { 50, 122, 71, 13},
[122] = { 100, 123, 66, 13},
[123] = { 125, 124, 91, 13},
[124] = { 150, 125, 18, 13},
[125] = { 200, 126, 31, 13},
[126] = { 250, 127, 92, 13},
[127] = { 300, 128, 40, 13},
[128] = { 600, 129, 49, 13},
----------- Neji Hyuuga -----------
[131] = { 50, 132, 101, 13},
[132] = { 100, 133, 102, 13},
[133] = { 125, 134, 103, 13},
[134] = { 150, 135, 104, 13},
[135] = { 200, 136, 105, 13},
[136] = { 250, 137, 107, 13},
[137] = { 300, 138, 105, 13},
[138] = { 600, 139, 107, 13},
----------- Tenten Mitsashi -----------
[141] = { 50, 142, 308, 13},
[142] = { 100, 143, 309, 13},
[143] = { 125, 144, 310, 13},
[144] = { 150, 145, 311, 13},
[145] = { 200, 146, 312, 13},
[146] = { 250, 147, 313, 13},
[147] = { 300, 148, 315, 13},
[148] = { 600, 149, 316, 13},
----------- Rock Lee -----------
[151] = { 50, 152, 746, 13},
[152] = { 100, 153, 190, 13},
[153] = { 125, 154, 191, 13},
[154] = { 150, 120, 192, 13},
[120] = { 200, 156, 612, 13},
[156] = { 250, 157, 747, 13},
[157] = { 300, 158, 748, 13},
[158] = { 600, 159, 749, 13},
----------- Jiraya -----------
[161] = { 50, 162, 816, 13},
[162] = { 100, 163, 817, 13},
[163] = { 125, 164, 818, 13},
[164] = { 150, 165, 820, 13},
[165] = { 200, 166, 822, 13},
[166] = { 250, 167, 824, 13},
[167] = { 300, 168, 825, 13},
[168] = { 600, 169, 829, 13},
----------- Orochimaru -----------
[171] = { 50, 172, 573, 13},
[172] = { 100, 173, 574, 13},
[173] = { 125, 174, 575, 13},
[174] = { 150, 175, 576, 13},
[175] = { 200, 176, 577, 13},
[176] = { 250, 177, 576, 13},
[177] = { 300, 178, 577, 13},
[178] = { 600, 179, 576, 13},
----------- Tsunade -----------
[181] = { 50, 182, 586, 13},
[182] = { 100, 183, 587, 13},
[183] = { 125, 184, 589, 13},
[184] = { 150, 185, 590, 13},
[185] = { 200, 186, 591, 13},
[186] = { 250, 187, 592, 13},
[187] = { 300, 188, 593, 13},
[188] = { 600, 189, 594, 13},
----------- Anbu -----------
[191] = { 50, 192, 71, 13},
[192] = { 100, 193, 66, 13},
[193] = { 125, 194, 91, 13},
[194] = { 150, 195, 18, 13},
[195] = { 200, 196, 31, 13},
[196] = { 250, 197, 92, 13},
[197] = { 300, 198, 40, 13},
[198] = { 600, 199, 49, 13},
----------- Deidara -----------
[201] = { 50, 202, 774, 13},
[202] = { 100, 203, 775, 13},
[203] = { 125, 204, 776, 13},
[204] = { 150, 205, 777, 13},
[205] = { 200, 206, 778, 13},
[206] = { 250, 207, 779, 13},
[207] = { 300, 208, 783, 13},
[208] = { 600, 209, 785, 13},
----------- Itachi Uchiha -----------
[211] = { 50, 212, 71, 13},
[212] = { 100, 213, 66, 13},
[213] = { 125, 214, 91, 13},
[214] = { 150, 215, 18, 13},
[215] = { 200, 216, 31, 13},
[216] = { 250, 217, 92, 13},
[217] = { 300, 218, 40, 13},
[218] = { 600, 219, 49, 13},
----------- Kisame Hoshigake -----------
[221] = { 50, 222, 687, 13},
[222] = { 100, 223, 688, 13},
[223] = { 125, 224, 689, 13},
[224] = { 150, 225, 690, 13},
[225] = { 200, 226, 690, 13},
[226] = { 250, 227, 691, 13},
[227] = { 300, 228, 691, 13},
[228] = { 600, 229, 692, 13},
----------- Hidan -----------
[231] = { 50, 232, 566, 13},
[232] = { 100, 233, 567, 13},
[233] = { 125, 234, 567, 13},
[234] = { 150, 235, 568, 13},
[235] = { 200, 236, 568, 13},
[236] = { 250, 237, 569, 13},
[237] = { 300, 238, 569, 13},
[238] = { 600, 239, 570, 13},
----------- Kakuzu -----------
[241] = { 50, 242, 642, 13},
[242] = { 100, 243, 643, 13},
[243] = { 125, 244, 643, 13},
[244] = { 150, 245, 682, 13},
[245] = { 200, 246, 684, 13},
[246] = { 250, 247, 685, 13},
[247] = { 300, 248, 652, 13},
[248] = { 600, 249, 764, 13},
----------- Killer Bee -----------
[251] = { 50, 252, 52, 13},
[252] = { 100, 253, 53, 13},
[253] = { 125, 254, 20, 13},
[254] = { 150, 220, 56, 13},
[220] = { 200, 256, 62, 13},
[256] = { 250, 257, 64, 13},
[257] = { 300, 258, 66, 13},
[258] = { 600, 259, 45, 13},
----------- Guren -----------
[261] = { 50, 262, 71, 13},
[262] = { 100, 263, 66, 13},
[263] = { 125, 264, 91, 13},
[264] = { 150, 265, 18, 13},
[265] = { 200, 266, 31, 13},
[266] = { 250, 267, 92, 13},
[267] = { 300, 268, 40, 13},
[268] = { 600, 269, 49, 13},
----------- Uchiha Madara -----------
[271] = { 50, 272, 479, 13},
[272] = { 100, 273, 480, 13},
[273] = { 125, 274, 481, 13},
[274] = { 150, 275, 482, 13},
[275] = { 200, 276, 483, 13},
[276] = { 250, 277, 484, 13},
[277] = { 300, 278, 485, 13},
[278] = { 600, 279, 486, 13},
----------- Hashirama Senju -----------
[281] = { 50, 282, 751, 13},
[282] = { 100, 283, 752, 13},
[283] = { 125, 284, 754, 13},
[284] = { 150, 285, 755, 13},
[285] = { 200, 286, 757, 13},
[286] = { 250, 287, 759, 13},
[287] = { 300, 288, 760, 13},
[288] = { 600, 289, 761, 13},
----------- Tobirama Senju -----------
[291] = { 50, 292, 788, 13},
[292] = { 100, 293, 790, 13},
[293] = { 125, 294, 791, 13},
[294] = { 150, 295, 792, 13},
[295] = { 200, 296, 793, 13},
[296] = { 250, 297, 789, 13},
[297] = { 300, 298, 794, 13},
[298] = { 600, 299, 795, 13},
----------- Uchiha Obito -----------
[301] = { 50, 302, 402, 13},
[302] = { 100, 303, 403, 13},
[303] = { 125, 304, 404, 13},
[304] = { 150, 305, 405, 13},
[305] = { 200, 306, 413, 13},
[306] = { 250, 307, 92, 13},
[307] = { 300, 308, 40, 13},
[308] = { 600, 309, 49, 13},
----------- Minato Namikaze -----------
[311] = { 50, 312, 71, 13},
[312] = { 100, 313, 66, 13},
[313] = { 125, 314, 91, 13},
[314] = { 150, 315, 18, 13},
[315] = { 200, 316, 31, 13},
[316] = { 250, 317, 92, 13},
[317] = { 300, 318, 40, 13},
[318] = { 600, 319, 49, 13},
----------- Kushina Uzumaki -----------
[321] = { 50, 322, 71, 13},
[322] = { 100, 323, 66, 13},
[323] = { 125, 324, 91, 13},
[324] = { 150, 325, 18, 13},
[325] = { 200, 326, 31, 13},
[326] = { 250, 327, 92, 13},
[327] = { 300, 328, 40, 13},
[328] = { 600, 329, 49, 13},
----------- Kabuto -----------
[331] = { 50, 332, 805, 13},
[332] = { 100, 333, 806, 13},
[333] = { 125, 334, 807, 13},
[334] = { 150, 335, 809, 13},
[335] = { 200, 336, 811, 13},
[336] = { 250, 337, 813, 13},
[337] = { 300, 338, 812, 13},
[338] = { 600, 339, 814, 13},
----------- Naruto Rikudou -----------
[341] = { 50, 342, 71, 13},
[342] = { 100, 343, 66, 13},
[343] = { 125, 344, 91, 13},
[344] = { 150, 345, 18, 13},
[345] = { 200, 346, 31, 13},
[346] = { 250, 347, 92, 13},
[347] = { 300, 348, 40, 13},
[348] = { 600, 349, 49, 13},
----------- Sasuke Rikudou -----------
[351] = { 50, 352, 71, 13},
[352] = { 100, 353, 66, 13},
[353] = { 125, 354, 91, 13},
[354] = { 150, 320, 18, 13},
[320] = { 200, 356, 31, 13},
[356] = { 250, 357, 92, 13},
[357] = { 300, 358, 40, 13},
[358] = { 600, 359, 49, 13},
----------- Raikage -----------
[361] = { 50, 362, 71, 13},
[362] = { 100, 363, 66, 13},
[363] = { 125, 364, 91, 13},
[364] = { 150, 365, 18, 13},
[365] = { 200, 366, 31, 13},
[366] = { 250, 367, 92, 13},
[367] = { 300, 368, 40, 13},
[368] = { 600, 369, 49, 13},
----------- Kaguya -----------
[371] = { 50, 372, 875, 13},
[372] = { 100, 373, 875, 13},
[373] = { 125, 374, 875, 13},
[374] = { 150, 375, 875, 13},
[375] = { 200, 376, 875, 13},
[376] = { 250, 377, 875, 13},
[377] = { 300, 378, 875, 13},
[378] = { 600, 379, 875, 13},
----------- Rikudou Sennin -----------
[381] = { 50, 382, 363, 13},
[382] = { 100, 383, 365, 13},
[383] = { 125, 384, 363, 13},
[384] = { 150, 385, 365, 13},
[385] = { 200, 386, 363, 13},
[386] = { 250, 387, 365, 13},
[387] = { 300, 388, 363, 13},
[388] = { 600, 389, 365, 13},
----------- Nagato -----------
[391] = { 50, 392, 854, 13},
[392] = { 100, 393, 857, 13},
[393] = { 125, 394, 859, 13},
[394] = { 150, 395, 860, 13},
[395] = { 200, 396, 861, 13},
[396] = { 250, 397, 862, 13},
[397] = { 300, 398, 863, 13},
[398] = { 600, 399, 864, 13},
----------- Naruto Mecha -----------
[401] = { 50, 402, 71, 13},
[402] = { 100, 403, 66, 13},
[403] = { 125, 404, 91, 13},
[404] = { 150, 405, 18, 13},
[405] = { 200, 406, 31, 13},
[406] = { 250, 407, 92, 13},
[407] = { 300, 408, 40, 13},
[408] = { 600, 409, 49, 13},
----------- Mizukage -----------
[411] = { 50, 412, 71, 13},
[412] = { 100, 413, 66, 13},
[413] = { 125, 414, 91, 13},
[414] = { 150, 415, 18, 13},
[415] = { 200, 416, 31, 13},
[416] = { 250, 417, 92, 13},
[417] = { 300, 418, 40, 13},
[418] = { 600, 419, 49, 13},
----------- Danzou -----------
[421] = { 50, 422, 71, 13},
[422] = { 100, 423, 66, 13},
[423] = { 125, 424, 91, 13},
[424] = { 150, 425, 18, 13},
[425] = { 200, 426, 31, 13},
[426] = { 250, 427, 92, 13},
[427] = { 300, 428, 40, 13},
[428] = { 600, 429, 49, 13},
----------- Uchiha Shisui -----------
[431] = { 50, 432, 71, 13},
[432] = { 100, 433, 66, 13},
[433] = { 125, 434, 91, 13},
[434] = { 150, 435, 18, 13},
[435] = { 200, 436, 31, 13},
[436] = { 250, 437, 92, 13},
[437] = { 300, 438, 40, 13},
[438] = { 600, 439, 49, 13},
----------- Naruto Menma -----------
[441] = { 50, 442, 71, 13},
[442] = { 100, 443, 66, 13},
[443] = { 125, 444, 91, 13},
[444] = { 150, 445, 18, 13},
[445] = { 200, 446, 31, 13},
[446] = { 250, 447, 92, 13},
[447] = { 300, 448, 40, 13},
[448] = { 600, 449, 49, 13},
----------- Konan -----------
[451] = { 50, 452, 840, 13},
[452] = { 100, 453, 841, 13},
[453] = { 125, 454, 842, 13},
[454] = { 150, 455, 843, 13},
[455] = { 200, 456, 844, 13},
[456] = { 250, 457, 845, 13},
[457] = { 300, 458, 847, 13},
[458] = { 600, 459, 849, 13},
}
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, "Voce nao pode se Transformar nesta area!") return true
end
local voc = config[getPlayerVocation(cid)]
if voc then
if getPlayerLevel(cid) >= voc[1] then
doPlayerSetVocation(cid, voc[2])
local outfit = {lookType = voc[3]}
doCreatureChangeOutfit(cid, outfit)
doSendMagicEffect(getCreaturePosition(cid), voc[4])
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Voce precisa estar no level " .. voc[1] .. " para transformar.")
end
else
doPlayerSendCancel(cid, "Voce nao pode se Transformar!")
end
return true

end

 

Reverter 

local config = {


--[vocation id] = { level, nova voc, looktype, efeito}
----------- Naruto Uzumaki -----------
[1] = { 50, 2, 91, 13},
[2] = { 100, 3, 92, 13},
[3] = { 125, 4, 31, 13},
[4] = { 150, 5, 40, 13},
[5] = { 200, 6, 49, 13},
[6] = { 250, 7, 25, 13},
[7] = { 300, 8, 302, 13},
[8] = { 600, 9, 54, 13},
----------- Sasuke Uchiha -----------
[11] = { 50, 12, 2, 13},
[12] = { 100, 13, 5, 13},
[13] = { 125, 14, 6, 13},
[14] = { 150, 15, 7, 13},
[15] = { 200, 16, 8, 13},
[16] = { 250, 17, 376, 13},
[17] = { 300, 18, 379, 13},
[18] = { 600, 19, 504, 13},
----------- Sakura Haruno -----------
[21] = { 50, 22, 169, 13},
[22] = { 100, 23, 170, 13},
[23] = { 125, 24, 171, 13},
[24] = { 150, 25, 172, 13},
[25] = { 200, 26, 173, 13},
[26] = { 250, 27, 174, 13},
[27] = { 300, 28, 174, 13},
[28] = { 600, 29, 175, 13},
----------- Kakashi Hatake -----------
[31] = { 50, 32, 9, 13},
[32] = { 100, 33, 10, 13},
[33] = { 125, 34, 11, 13},
[34] = { 150, 35, 12, 13},
[35] = { 200, 36, 13, 13},
[33] = { 250, 37, 14, 13},
[37] = { 300, 38, 271, 13},
[38] = { 600, 39, 272, 13},
----------- Gaara do Deserto -----------
[41] = { 50, 42, 71, 13},
[42] = { 100, 43, 66, 13},
[43] = { 125, 44, 91, 13},
[44] = { 150, 45, 18, 13},
[45] = { 200, 46, 31, 13},
[46] = { 250, 47, 92, 13},
[47] = { 300, 48, 40, 13},
[48] = { 600, 49, 49, 13},
----------- Kankuro do Deserto -----------
[51] = { 50, 52, 600, 13},
[52] = { 100, 53, 601, 13},
[53] = { 125, 54, 602, 13},
[54] = { 150, 20, 603, 13},
[20] = { 200, 56, 622, 13},
[56] = { 250, 57, 623, 13},
[57] = { 300, 58, 624, 13},
[58] = { 600, 59, 548, 13},
----------- Temari do Deserto -----------
[61] = { 50, 62, 578, 13},
[62] = { 100, 63, 579, 13},
[63] = { 125, 64, 580, 13},
[64] = { 150, 65, 581, 13},
[65] = { 200, 66, 582, 13},
[66] = { 250, 67, 583, 13},
[67] = { 300, 68, 584, 13},
[68] = { 600, 69, 585, 13},
----------- Shikamaru Nara -----------
[71] = { 50, 72, 424, 13},
[72] = { 100, 73, 425, 13},
[73] = { 125, 74, 426, 13},
[74] = { 150, 75, 427, 13},
[75] = { 200, 76, 428, 13},
[76] = { 250, 77, 429, 13},
[77] = { 300, 78, 430, 13},
[78] = { 600, 79, 431, 13},
----------- Chouji Akimichi -----------
[81] = { 50, 82, 71, 13},
[82] = { 100, 83, 66, 13},
[83] = { 125, 84, 91, 13},
[84] = { 150, 85, 18, 13},
[85] = { 200, 86, 31, 13},
[86] = { 250, 87, 92, 13},
[87] = { 300, 88, 40, 13},
[88] = { 600, 89, 49, 13},
----------- Ino Yamanaka -----------
[91] = { 50, 92, 626, 13},
[92] = { 100, 93, 628, 13},
[93] = { 125, 94, 627, 13},
[94] = { 150, 95, 629, 13},
[95] = { 200, 96, 630, 13},
[96] = { 250, 97, 632, 13},
[97] = { 300, 98, 633, 13},
[98] = { 600, 99, 631, 13},
----------- Hinata Hyuuga -----------
[101] = { 50, 102, 4, 13},
[102] = { 100, 103, 66, 13},
[103] = { 125, 104, 91, 13},
[104] = { 150, 105, 18, 13},
[105] = { 200, 106, 31, 13},
[106] = { 250, 107, 92, 13},
[107] = { 300, 108, 40, 13},
[108] = { 600, 109, 49, 13},
----------- Shino Aburame -----------
[111] = { 50, 112, 416, 13},
[112] = { 100, 113, 417, 13},
[113] = { 125, 114, 418, 13},
[114] = { 150, 115, 421, 13},
[115] = { 200, 116, 422, 13},
[116] = { 250, 117, 418, 13},
[117] = { 300, 118, 418, 13},
[118] = { 600, 119, 419, 13},
----------- Kiba Inuzuka -----------
[121] = { 50, 122, 71, 13},
[122] = { 100, 123, 66, 13},
[123] = { 125, 124, 91, 13},
[124] = { 150, 125, 18, 13},
[125] = { 200, 126, 31, 13},
[126] = { 250, 127, 92, 13},
[127] = { 300, 128, 40, 13},
[128] = { 600, 129, 49, 13},
----------- Neji Hyuuga -----------
[131] = { 50, 132, 101, 13},
[132] = { 100, 133, 102, 13},
[133] = { 125, 134, 103, 13},
[134] = { 150, 135, 104, 13},
[135] = { 200, 136, 105, 13},
[136] = { 250, 137, 107, 13},
[137] = { 300, 138, 105, 13},
[138] = { 600, 139, 107, 13},
----------- Tenten Mitsashi -----------
[141] = { 50, 142, 308, 13},
[142] = { 100, 143, 309, 13},
[143] = { 125, 144, 310, 13},
[144] = { 150, 145, 311, 13},
[145] = { 200, 146, 312, 13},
[146] = { 250, 147, 313, 13},
[147] = { 300, 148, 315, 13},
[148] = { 600, 149, 316, 13},
----------- Rock Lee -----------
[151] = { 50, 152, 746, 13},
[152] = { 100, 153, 190, 13},
[153] = { 125, 154, 191, 13},
[154] = { 150, 120, 192, 13},
[120] = { 200, 156, 612, 13},
[156] = { 250, 157, 747, 13},
[157] = { 300, 158, 748, 13},
[158] = { 600, 159, 749, 13},
----------- Jiraya -----------
[161] = { 50, 162, 816, 13},
[162] = { 100, 163, 817, 13},
[163] = { 125, 164, 818, 13},
[164] = { 150, 165, 820, 13},
[165] = { 200, 166, 822, 13},
[166] = { 250, 167, 824, 13},
[167] = { 300, 168, 825, 13},
[168] = { 600, 169, 829, 13},
----------- Orochimaru -----------
[171] = { 50, 172, 573, 13},
[172] = { 100, 173, 574, 13},
[173] = { 125, 174, 575, 13},
[174] = { 150, 175, 576, 13},
[175] = { 200, 176, 577, 13},
[176] = { 250, 177, 576, 13},
[177] = { 300, 178, 577, 13},
[178] = { 600, 179, 576, 13},
----------- Tsunade -----------
[181] = { 50, 182, 586, 13},
[182] = { 100, 183, 587, 13},
[183] = { 125, 184, 589, 13},
[184] = { 150, 185, 590, 13},
[185] = { 200, 186, 591, 13},
[186] = { 250, 187, 592, 13},
[187] = { 300, 188, 593, 13},
[188] = { 600, 189, 594, 13},
----------- Anbu -----------
[191] = { 50, 192, 71, 13},
[192] = { 100, 193, 66, 13},
[193] = { 125, 194, 91, 13},
[194] = { 150, 195, 18, 13},
[195] = { 200, 196, 31, 13},
[196] = { 250, 197, 92, 13},
[197] = { 300, 198, 40, 13},
[198] = { 600, 199, 49, 13},
----------- Deidara -----------
[201] = { 50, 202, 774, 13},
[202] = { 100, 203, 775, 13},
[203] = { 125, 204, 776, 13},
[204] = { 150, 205, 777, 13},
[205] = { 200, 206, 778, 13},
[206] = { 250, 207, 779, 13},
[207] = { 300, 208, 783, 13},
[208] = { 600, 209, 785, 13},
----------- Itachi Uchiha -----------
[211] = { 50, 212, 71, 13},
[212] = { 100, 213, 66, 13},
[213] = { 125, 214, 91, 13},
[214] = { 150, 215, 18, 13},
[215] = { 200, 216, 31, 13},
[216] = { 250, 217, 92, 13},
[217] = { 300, 218, 40, 13},
[218] = { 600, 219, 49, 13},
----------- Kisame Hoshigake -----------
[221] = { 50, 222, 687, 13},
[222] = { 100, 223, 688, 13},
[223] = { 125, 224, 689, 13},
[224] = { 150, 225, 690, 13},
[225] = { 200, 226, 690, 13},
[226] = { 250, 227, 691, 13},
[227] = { 300, 228, 691, 13},
[228] = { 600, 229, 692, 13},
----------- Hidan -----------
[231] = { 50, 232, 566, 13},
[232] = { 100, 233, 567, 13},
[233] = { 125, 234, 567, 13},
[234] = { 150, 235, 568, 13},
[235] = { 200, 236, 568, 13},
[236] = { 250, 237, 569, 13},
[237] = { 300, 238, 569, 13},
[238] = { 600, 239, 570, 13},
----------- Kakuzu -----------
[241] = { 50, 242, 642, 13},
[242] = { 100, 243, 643, 13},
[243] = { 125, 244, 643, 13},
[244] = { 150, 245, 682, 13},
[245] = { 200, 246, 684, 13},
[246] = { 250, 247, 685, 13},
[247] = { 300, 248, 652, 13},
[248] = { 600, 249, 764, 13},
----------- Killer Bee -----------
[251] = { 50, 252, 52, 13},
[252] = { 100, 253, 53, 13},
[253] = { 125, 254, 20, 13},
[254] = { 150, 220, 56, 13},
[220] = { 200, 256, 62, 13},
[256] = { 250, 257, 64, 13},
[257] = { 300, 258, 66, 13},
[258] = { 600, 259, 45, 13},
----------- Guren -----------
[261] = { 50, 262, 71, 13},
[262] = { 100, 263, 66, 13},
[263] = { 125, 264, 91, 13},
[264] = { 150, 265, 18, 13},
[265] = { 200, 266, 31, 13},
[266] = { 250, 267, 92, 13},
[267] = { 300, 268, 40, 13},
[268] = { 600, 269, 49, 13},
----------- Uchiha Madara -----------
[271] = { 50, 272, 479, 13},
[272] = { 100, 273, 480, 13},
[273] = { 125, 274, 481, 13},
[274] = { 150, 275, 482, 13},
[275] = { 200, 276, 483, 13},
[276] = { 250, 277, 484, 13},
[277] = { 300, 278, 485, 13},
[278] = { 600, 279, 486, 13},
----------- Hashirama Senju -----------
[281] = { 50, 282, 751, 13},
[282] = { 100, 283, 752, 13},
[283] = { 125, 284, 754, 13},
[284] = { 150, 285, 755, 13},
[285] = { 200, 286, 757, 13},
[286] = { 250, 287, 759, 13},
[287] = { 300, 288, 760, 13},
[288] = { 600, 289, 761, 13},
----------- Tobirama Senju -----------
[291] = { 50, 292, 788, 13},
[292] = { 100, 293, 790, 13},
[293] = { 125, 294, 791, 13},
[294] = { 150, 295, 792, 13},
[295] = { 200, 296, 793, 13},
[296] = { 250, 297, 789, 13},
[297] = { 300, 298, 794, 13},
[298] = { 600, 299, 795, 13},
----------- Uchiha Obito -----------
[301] = { 50, 302, 402, 13},
[302] = { 100, 303, 403, 13},
[303] = { 125, 304, 404, 13},
[304] = { 150, 305, 405, 13},
[305] = { 200, 306, 413, 13},
[306] = { 250, 307, 92, 13},
[307] = { 300, 308, 40, 13},
[308] = { 600, 309, 49, 13},
----------- Minato Namikaze -----------
[311] = { 50, 312, 71, 13},
[312] = { 100, 313, 66, 13},
[313] = { 125, 314, 91, 13},
[314] = { 150, 315, 18, 13},
[315] = { 200, 316, 31, 13},
[316] = { 250, 317, 92, 13},
[317] = { 300, 318, 40, 13},
[318] = { 600, 319, 49, 13},
----------- Kushina Uzumaki -----------
[321] = { 50, 322, 71, 13},
[322] = { 100, 323, 66, 13},
[323] = { 125, 324, 91, 13},
[324] = { 150, 325, 18, 13},
[325] = { 200, 326, 31, 13},
[326] = { 250, 327, 92, 13},
[327] = { 300, 328, 40, 13},
[328] = { 600, 329, 49, 13},
----------- Kabuto -----------
[331] = { 50, 332, 805, 13},
[332] = { 100, 333, 806, 13},
[333] = { 125, 334, 807, 13},
[334] = { 150, 335, 809, 13},
[335] = { 200, 336, 811, 13},
[336] = { 250, 337, 813, 13},
[337] = { 300, 338, 812, 13},
[338] = { 600, 339, 814, 13},
----------- Naruto Rikudou -----------
[341] = { 50, 342, 71, 13},
[342] = { 100, 343, 66, 13},
[343] = { 125, 344, 91, 13},
[344] = { 150, 345, 18, 13},
[345] = { 200, 346, 31, 13},
[346] = { 250, 347, 92, 13},
[347] = { 300, 348, 40, 13},
[348] = { 600, 349, 49, 13},
----------- Sasuke Rikudou -----------
[351] = { 50, 352, 71, 13},
[352] = { 100, 353, 66, 13},
[353] = { 125, 354, 91, 13},
[354] = { 150, 320, 18, 13},
[320] = { 200, 356, 31, 13},
[356] = { 250, 357, 92, 13},
[357] = { 300, 358, 40, 13},
[358] = { 600, 359, 49, 13},
----------- Raikage -----------
[361] = { 50, 362, 71, 13},
[362] = { 100, 363, 66, 13},
[363] = { 125, 364, 91, 13},
[364] = { 150, 365, 18, 13},
[365] = { 200, 366, 31, 13},
[366] = { 250, 367, 92, 13},
[367] = { 300, 368, 40, 13},
[368] = { 600, 369, 49, 13},
----------- Kaguya -----------
[371] = { 50, 372, 875, 13},
[372] = { 100, 373, 875, 13},
[373] = { 125, 374, 875, 13},
[374] = { 150, 375, 875, 13},
[375] = { 200, 376, 875, 13},
[376] = { 250, 377, 875, 13},
[377] = { 300, 378, 875, 13},
[378] = { 600, 379, 875, 13},
----------- Rikudou Sennin -----------
[381] = { 50, 382, 363, 13},
[382] = { 100, 383, 365, 13},
[383] = { 125, 384, 363, 13},
[384] = { 150, 385, 365, 13},
[385] = { 200, 386, 363, 13},
[386] = { 250, 387, 365, 13},
[387] = { 300, 388, 363, 13},
[388] = { 600, 389, 365, 13},
----------- Nagato -----------
[391] = { 50, 392, 854, 13},
[392] = { 100, 393, 857, 13},
[393] = { 125, 394, 859, 13},
[394] = { 150, 395, 860, 13},
[395] = { 200, 396, 861, 13},
[396] = { 250, 397, 862, 13},
[397] = { 300, 398, 863, 13},
[398] = { 600, 399, 864, 13},
----------- Naruto Mecha -----------
[401] = { 50, 402, 71, 13},
[402] = { 100, 403, 66, 13},
[403] = { 125, 404, 91, 13},
[404] = { 150, 405, 18, 13},
[405] = { 200, 406, 31, 13},
[406] = { 250, 407, 92, 13},
[407] = { 300, 408, 40, 13},
[408] = { 600, 409, 49, 13},
----------- Mizukage -----------
[411] = { 50, 412, 71, 13},
[412] = { 100, 413, 66, 13},
[413] = { 125, 414, 91, 13},
[414] = { 150, 415, 18, 13},
[415] = { 200, 416, 31, 13},
[416] = { 250, 417, 92, 13},
[417] = { 300, 418, 40, 13},
[418] = { 600, 419, 49, 13},
----------- Danzou -----------
[421] = { 50, 422, 71, 13},
[422] = { 100, 423, 66, 13},
[423] = { 125, 424, 91, 13},
[424] = { 150, 425, 18, 13},
[425] = { 200, 426, 31, 13},
[426] = { 250, 427, 92, 13},
[427] = { 300, 428, 40, 13},
[428] = { 600, 429, 49, 13},
----------- Uchiha Shisui -----------
[431] = { 50, 432, 71, 13},
[432] = { 100, 433, 66, 13},
[433] = { 125, 434, 91, 13},
[434] = { 150, 435, 18, 13},
[435] = { 200, 436, 31, 13},
[436] = { 250, 437, 92, 13},
[437] = { 300, 438, 40, 13},
[438] = { 600, 439, 49, 13},
----------- Naruto Menma -----------
[441] = { 50, 442, 71, 13},
[442] = { 100, 443, 66, 13},
[443] = { 125, 444, 91, 13},
[444] = { 150, 445, 18, 13},
[445] = { 200, 446, 31, 13},
[446] = { 250, 447, 92, 13},
[447] = { 300, 448, 40, 13},
[448] = { 600, 449, 49, 13},
----------- Konan -----------
[451] = { 50, 452, 840, 13},
[452] = { 100, 453, 841, 13},
[453] = { 125, 454, 842, 13},
[454] = { 150, 455, 843, 13},
[455] = { 200, 456, 844, 13},
[456] = { 250, 457, 845, 13},
[457] = { 300, 458, 847, 13},
[458] = { 600, 459, 849, 13},
}
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, "Voce nao 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, "Voce Reverteu!")
local outfit = {lookType = voc[3]}
doSetCreatureOutfit(cid, outfit, -1)
local pos = getCreaturePosition(cid)
doSendMagicEffect({x = pos.x, y = pos.y, z = pos.z}, voc[4])
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Nao da pra Reverter Tente Relogar.")
end
else
doPlayerSendCancel(cid, "Voce nao pode se Reverter!")
end
return true
end

 

Ve se sai o erro destes 2

Link para o post
Compartilhar em outros sites
Dois Feitos Ty ><

[23/03/2015 18:51:27] >> Loading script systems
[23/03/2015 18:51:33] [Error - LuaScriptInterface::loadFile] data/actions/scripts/VIP/futebol.lua:125: unexpected symbol near '='
[23/03/2015 18:51:33] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/VIP/futebol.lua)
[23/03/2015 18:51:33] data/actions/scripts/VIP/futebol.lua:125: unexpected symbol near '='
[23/03/2015 18:51:35] [Warning - Event::loadScript] Event onThink not found (data/globalevents/scripts/torneio.lua)

Link para o post
Compartilhar em outros sites

Estava faltando uma virgula na linha 23  [23] = { 125, 24, 171 13},  o Certo seria [23] = { 125, 24, 171, 13},

Editado por Eremin (veja o histórico de edições)
Link para o post
Compartilhar em outros sites

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo