Tudo que DiigooMix postou
-
2 comandos para checar itens
Olá, eu estava vendo esse post do Comedinha e me deparei com 2 "problemas": Problema 1: Não checa houses. Problema 2: Não checa depot. Gostaria de 2 comandos diferentes com os parâmetros iguais aos desse post. Comando 1: /dp (para checar dp dos jogadores) Comando 2: /house (para checar a house do player SE ele possuir uma, é claro..) Seria possível isso? Informações adicionais: Uso tfs 0.4 cliente 8.60
-
(Resolvido)Adicionar exhaust no script
funcionou, obrigado :D
-
(Resolvido)Seria possível criar um sistema de "redeem code" via talkaction ?
faltou adicionar um storage para o player poder pegar somente 1x. com esse script o player usa quantas vezes quiser Obs. Adicionei um if na linha 12 para deletar só quando o ADMIN usar o comando, logo todos os players podem usar o comando sem que esse codigo seja deletado do banco de dados.. Para quem quiser o código com storage deixarei aqui para uso de quem precisar: Obs. Testado em tfs 0.4. local t = {access = 5} function onSay(cid, words, param, channel) local paramm = string.upper(param) if (param == '') then doPlayerSendCancel(cid, "Voce deve adicionar um code.") doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) elseif (getPlayerStorageValue(cid, 60020) == -1) then local resultado = db.getResult("SELECT * FROM redeemcodes WHERE `code` = '" .. paramm .. "';") if(resultado:getID() ~= -1) then doPlayerSendTextMessage(cid,MESSAGE_STATUS_WARNING, "Voce resgatou com sucesso o codigo: " .. paramm ..".") local amount = math.random(10,50) doPlayerAddItem(cid, 13539, amount) setPlayerStorageValue(cid, 60020, 1) if getPlayerAccess(cid) >= t.access then db.query("DELETE FROM `redeemcodes` WHERE `code` = '" .. paramm .. "';") end else doPlayerSendCancel(cid, "Codigo invalido.") doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) end else doPlayerSendCancel(cid, "Voce ja resgatou este codigo.") return true end end
-
(Resolvido)Adaptar script NPC Reborn
não sei porque não estava dando certo, exclui o char e fiz outro Goku, funcionou 100%.. removeu as esferas e tudo certinho Muitíssimo obrigado!! +REP
-
(Resolvido)Adaptar script NPC Reborn
uma dúvida, o que seriam esses números? Por que todos começam com 1? só mais um detalhe que eu esqueci de citar (me desculpe por esquecer). Teria como ao rebornar, remover as esferas da bp? [EDITED] não está funcionando 100% man, fiz um char Goku pra testar, botei ele lvl 300 e ele está com todas as transformações até as reborn, mesmo sem rebornar (não estava assim). E a parte das esferas acho que não está 100%. Pois tirei da bp 1 das 7 e ele não retornou a mensagem dizendo que precisa de todas as 7. 13:28 Reborn: Sua vocação não pode rebornar.. Está dizendo isso.
-
(Resolvido)Adaptar script NPC Reborn
no caso é só eu continuar essa tabela do script de baixo, inserindo as outras vocações que estão faltando?
-
(Resolvido)Adicionar exhaust no script
Tem como adicionar um exhaust de 0,5 segundos (meio segundo) nesse script? local config = { --[vocation id] = { level, nova voc, looktype, efeito} -- Goku [1] = { 30, 2, 3, 118}, [2] = { 50, 3, 4, 114}, [3] = { 75, 4, 5, 114}, [4] = { 100, 5, 6, 121}, [5] = { 150, 6, 7, 114}, [6] = { 180, 7, 8, 116}, [7] = { 200, 8, 9, 114}, [8] = { 250, 9, 10, 114}, [9] = { 50, 10, 11, 114}, [10] = { 100, 11, 12, 114}, [11] = { 150, 12, 13, 114}, [12] = { 200, 13, 14, 125}, [13] = { 250, 14, 15, 121}, [14] = { 400, 15, 16, 34}, [15] = { 600, 16, 18, 32}, [16] = { 600, 473, 17, 41}, -- Vegeta [17] = { 30, 18, 20, 34}, [18] = { 50, 19, 21, 34}, [19] = { 75, 20, 22, 116}, [20] = { 100, 21, 6, 121}, [21] = { 150, 22, 23, 114}, [22] = { 200, 23, 24, 114}, [24] = { 50, 25, 26, 116}, [25] = { 100, 26, 27, 114}, [26] = { 150, 27, 28, 114}, [27] = { 200, 28, 29, 113}, [28] = { 250, 29, 15, 121}, [29] = { 400, 30, 30, 34}, [30] = { 600, 31, 32, 32}, [31] = { 600, 474, 31, 41}, -- Piccolo [32] = { 50, 33, 34, 122}, [33] = { 100, 34, 35, 31}, [34] = { 150, 35, 36, 31}, [35] = { 200, 36, 37, 119}, [37] = { 50, 38, 39, 122}, [38] = { 100, 39, 40, 31}, [39] = { 150, 40, 41, 31}, [40] = { 200, 41, 42, 31}, [41] = { 250, 42, 43, 119}, [42] = { 400, 43, 44, 31}, [43] = { 600, 44, 45, 31}, -- C17 [45] = { 50, 46, 47, 34}, [46] = { 100, 47, 48, 34}, [47] = { 150, 48, 51, 34}, [48] = { 200, 49, 49, 34}, [50] = { 50, 51, 47, 34}, [51] = { 100, 52, 48, 34}, [52] = { 150, 53, 51, 34}, [53] = { 200, 54, 52, 34}, [54] = { 400, 55, 53, 34}, [55] = { 600, 56, 54, 34}, -- Gohan [57] = { 30, 58, 56, 34}, [58] = { 50, 59, 57, 34}, [59] = { 100, 60, 58, 114}, [60] = { 150, 61, 59, 116}, [61] = { 175, 62, 60, 127}, [62] = { 200, 63, 61, 114}, [64] = { 50, 65, 63, 116}, [65] = { 100, 66, 64, 116}, [66] = { 150, 67, 65, 114}, [67] = { 200, 68, 66, 124}, [68] = { 400, 69, 67, 34}, [69] = { 600, 70, 68, 34}, -- Trunks [71] = { 50, 72, 70, 114}, [72] = { 100, 73, 71, 116}, [73] = { 150, 74, 72, 114}, [74] = { 200, 75, 73, 114}, [76] = { 50, 77, 75, 114}, [77] = { 100, 78, 76, 114}, [78] = { 150, 79, 77, 114}, [79] = { 200, 80, 78, 112}, [80] = { 400, 81, 79, 34}, [81] = { 400, 82, 80, 34}, [82] = { 600, 490, 530, 32}, -- Cell [83] = { 50, 84, 82, 119}, [84] = { 100, 85, 83, 119}, [85] = { 150, 86, 84, 119}, [86] = { 200, 87, 85, 31}, [88] = { 50, 89, 82, 119}, [89] = { 100, 90, 83, 119}, [90] = { 150, 91, 84, 119}, [91] = { 200, 92, 85, 31}, [92] = { 400, 93, 86, 34}, [93] = { 600, 94, 87, 34}, -- Freeza [95] = { 30, 96, 89, 123}, [96] = { 50, 97, 90, 117}, [97] = { 75, 98, 91, 117}, [98] = { 100, 99, 92, 117}, [99] = { 150, 100, 93, 117}, [100] = { 200, 101, 94, 34}, [102] = { 30, 103, 89, 123}, [103] = { 50, 104, 90, 117}, [104] = { 75, 105, 91, 117}, [105] = { 100, 106, 92, 117}, [106] = { 150, 107, 93, 117}, [107] = { 200, 108, 95, 112}, [108] = { 400, 109, 96, 34}, [109] = { 600, 110, 97, 34}, -- Majin Boo [111] = { 30, 112, 99, 29}, [112] = { 50, 113, 100, 30}, [113] = { 75, 114, 101, 30}, [114] = { 100, 115, 102, 30}, [115] = { 150, 116, 103, 30}, [116] = { 200, 117, 104, 29}, [118] = { 30, 119, 99, 29}, [119] = { 50, 120, 100, 30}, [120] = { 75, 121, 101, 30}, [121] = { 100, 122, 102, 30}, [122] = { 150, 123, 103, 30}, [123] = { 200, 124, 104, 29}, [124] = { 400, 125, 105, 29}, [125] = { 600, 126, 106, 29}, [126] = { 600, 475, 107, 34}, -- Broly [127] = { 50, 128, 109, 34}, [128] = { 100, 129, 110, 34}, [129] = { 150, 130, 111, 114}, [130] = { 200, 131, 112, 114}, [132] = { 50, 133, 114, 115}, [133] = { 100, 134, 115, 114}, [134] = { 150, 135, 116, 114}, [135] = { 200, 136, 117, 126}, [136] = { 250, 137, 118, 121}, [137] = { 400, 138, 119, 34}, [138] = { 600, 139, 120, 32}, -- C18 [140] = { 50, 141, 121, 34}, [141] = { 100, 142, 122, 34}, [142] = { 150, 143, 123, 34}, [143] = { 200, 144, 123, 34}, [145] = { 50, 146, 121, 34}, [146] = { 100, 147, 122, 34}, [147] = { 150, 148, 125, 34}, [148] = { 200, 149, 124, 34}, [149] = { 400, 150, 126, 29}, [150] = { 600, 151, 127, 29}, -- Uub [152] = { 50, 153, 129, 117}, [153] = { 100, 154, 130, 117}, [154] = { 150, 155, 131, 117}, [155] = { 200, 156, 132, 117}, [157] = { 50, 158, 129, 112}, [158] = { 100, 159, 130, 112}, [159] = { 150, 160, 131, 112}, [160] = { 200, 161, 132, 112}, [161] = { 400, 162, 133, 34}, [162] = { 600, 163, 134, 34}, -- Goten [164] = { 30, 165, 136, 114}, [165] = { 50, 166, 137, 121}, [166] = { 75, 167, 138, 121}, [167] = { 100, 168, 139, 121}, [168] = { 150, 169, 140, 114}, [169] = { 200, 170, 141, 114}, [171] = { 50, 172, 143, 114}, [172] = { 100, 173, 144, 121}, [173] = { 150, 174, 145, 114}, [174] = { 200, 175, 146, 114}, [175] = { 400, 176, 147, 113}, [176] = { 600, 177, 148, 112}, -- Chibi Trunks [178] = { 30, 179, 150, 114}, [179] = { 50, 180, 137, 121}, [180] = { 75, 181, 138, 121}, [181] = { 100, 182, 139, 121}, [182] = { 150, 183, 140, 114}, [183] = { 200, 184, 141, 114}, [185] = { 50, 186, 152, 114}, [186] = { 100, 187, 144, 121}, [187] = { 150, 188, 145, 114}, [188] = { 200, 189, 146, 114}, [189] = { 400, 190, 147, 113}, [190] = { 600, 191, 148, 112}, -- Cooler [192] = { 50, 193, 154, 113}, [193] = { 75, 194, 155, 113}, [194] = { 100, 195, 156, 113}, [195] = { 150, 196, 157, 113}, [196] = { 200, 197, 158, 34}, [198] = { 50, 199, 154, 113}, [199] = { 75, 200, 155, 113}, [200] = { 100, 201, 159, 115}, [201] = { 150, 202, 161, 112}, [202] = { 200, 203, 160, 113}, [203] = { 400, 204, 532, 32}, [204] = { 400, 493, 162, 34}, [493] = { 600, 205, 163, 34}, -- Dende [206] = { 50, 207, 165, 119}, [207] = { 100, 208, 166, 119}, [208] = { 150, 209, 167, 119}, [209] = { 200, 210, 168, 119}, [211] = { 50, 212, 170, 119}, [212] = { 100, 213, 171, 119}, [213] = { 150, 214, 172, 119}, [214] = { 200, 215, 172, 119}, [215] = { 400, 216, 173, 31}, [216] = { 600, 217, 174, 31}, -- Tsuful [218] = { 50, 219, 176, 114}, [219] = { 100, 220, 177, 115}, [220] = { 150, 221, 178, 114}, [221] = { 200, 222, 179, 114}, [223] = { 50, 224, 181, 114}, [224] = { 100, 225, 182, 116}, [225] = { 150, 226, 183, 116}, [226] = { 200, 227, 185, 34}, [227] = { 400, 228, 186, 34}, [228] = { 600, 229, 187, 34}, -- Bardock [230] = { 30, 231, 189, 34}, [231] = { 50, 232, 190, 34}, [232] = { 100, 233, 191, 116}, [233] = { 150, 234, 192, 116}, [234] = { 200, 235, 193, 114}, [236] = { 50, 237, 189, 34}, [237] = { 100, 238, 195, 34}, [238] = { 150, 239, 196, 114}, [239] = { 200, 240, 197, 112}, [240] = { 250, 241, 118, 121}, [241] = { 400, 242, 198, 34}, [242] = { 600, 243, 199, 34}, -- Kuririn [244] = { 50, 245, 201, 116}, [245] = { 100, 246, 202, 116}, [246] = { 150, 247, 203, 116}, [247] = { 200, 248, 204, 116}, [249] = { 50, 250, 205, 116}, [250] = { 100, 251, 206, 116}, [251] = { 150, 252, 206, 116}, [252] = { 200, 253, 207, 112}, [253] = { 400, 254, 208, 112}, [254] = { 600, 255, 209, 34}, -- Pan [256] = { 50, 257, 211, 116}, [257] = { 100, 258, 212, 116}, [258] = { 150, 259, 213, 114}, [259] = { 200, 260, 214, 114}, [261] = { 50, 262, 213, 114}, [262] = { 100, 263, 214, 114}, [263] = { 150, 264, 215, 112}, [264] = { 200, 265, 216, 112}, [265] = { 400, 266, 217, 34}, [266] = { 600, 267, 218, 34}, -- Kaio [268] = { 50, 269, 220, 113}, [269] = { 100, 270, 221, 113}, [270] = { 150, 271, 222, 113}, [271] = { 200, 272, 222, 113}, [273] = { 50, 274, 222, 113}, [274] = { 100, 275, 223, 113}, [275] = { 150, 276, 223, 113}, [276] = { 200, 277, 224, 113}, [277] = { 400, 278, 225, 113}, [278] = { 600, 279, 226, 34}, -- Videl [280] = { 50, 281, 228, 116}, [281] = { 100, 282, 229, 116}, [282] = { 150, 283, 230, 116}, [283] = { 200, 284, 231, 115}, [285] = { 50, 286, 228, 116}, [286] = { 100, 287, 229, 116}, [287] = { 150, 288, 230, 116}, [288] = { 200, 289, 231, 115}, [289] = { 400, 290, 232, 115}, [290] = { 600, 291, 233, 112}, -- Janemba [292] = { 50, 293, 235, 34}, [293] = { 100, 294, 236, 34}, [294] = { 150, 295, 237, 34}, [295] = { 200, 296, 238, 113}, [297] = { 50, 298, 235, 34}, [298] = { 100, 299, 236, 34}, [299] = { 150, 300, 237, 34}, [300] = { 200, 301, 238, 113}, [301] = { 400, 302, 239, 113}, [302] = { 600, 303, 240, 34}, [303] = { 600, 491, 241, 34}, -- Tenshinhan [304] = { 50, 305, 243, 116}, [305] = { 100, 306, 244, 116}, [306] = { 150, 307, 244, 116}, [307] = { 200, 308, 245, 116}, [309] = { 50, 310, 247, 116}, [310] = { 100, 311, 248, 116}, [311] = { 150, 312, 248, 114}, [312] = { 200, 313, 249, 112}, [313] = { 400, 314, 250, 34}, [314] = { 600, 315, 251, 34}, -- Jenk [316] = { 50, 317, 253, 116}, [317] = { 100, 318, 254, 114}, [318] = { 150, 319, 255, 114}, [319] = { 200, 320, 256, 114}, [321] = { 50, 322, 258, 34}, [322] = { 100, 323, 259, 34}, [323] = { 150, 324, 260, 112}, [324] = { 200, 325, 261, 112}, [325] = { 400, 326, 262, 34}, [326] = { 600, 327, 263, 115}, -- Raditz [328] = { 50, 329, 265, 116}, [329] = { 100, 330, 266, 114}, [330] = { 150, 331, 267, 116}, [331] = { 200, 332, 268, 114}, [333] = { 50, 334, 266, 114}, [334] = { 100, 335, 267, 116}, [335] = { 150, 336, 268, 114}, [336] = { 200, 337, 269, 112}, [337] = { 400, 338, 270, 34}, [338] = { 600, 339, 271, 34}, -- C16 [340] = { 50, 341, 273, 34}, [341] = { 100, 342, 274, 34}, [342] = { 150, 343, 275, 34}, [343] = { 200, 344, 276, 34}, [345] = { 50, 346, 273, 34}, [346] = { 100, 347, 274, 34}, [347] = { 150, 348, 275, 34}, [348] = { 200, 349, 276, 34}, [349] = { 400, 350, 278, 34}, [350] = { 600, 351, 279, 34}, -- Turles [352] = { 50, 353, 281, 34}, [353] = { 100, 354, 282, 34}, [354] = { 150, 355, 283, 114}, [355] = { 200, 356, 284, 114}, [357] = { 50, 358, 286, 34}, [358] = { 100, 359, 287, 34}, [359] = { 150, 360, 288, 114}, [360] = { 200, 361, 289, 112}, [361] = { 400, 362, 290, 34}, [362] = { 600, 363, 291, 34}, -- Bulma [364] = { 50, 365, 293, 116}, [365] = { 100, 366, 294, 116}, [366] = { 150, 367, 295, 116}, [367] = { 200, 368, 295, 115}, [369] = { 50, 370, 297, 114}, [370] = { 100, 371, 297, 114}, [371] = { 150, 372, 298, 114}, [372] = { 200, 373, 299, 112}, [373] = { 400, 374, 300, 115}, [374] = { 600, 375, 301, 115}, -- Shenron [376] = { 50, 377, 303, 34}, [377] = { 100, 378, 304, 34}, [378] = { 150, 379, 305, 34}, [379] = { 200, 380, 305, 121}, [381] = { 50, 382, 303, 34}, [382] = { 100, 383, 304, 34}, [383] = { 150, 384, 305, 34}, [384] = { 200, 385, 305, 121}, [385] = { 400, 386, 306, 34}, [386] = { 600, 387, 307, 121}, -- Vegetto [388] = { 50, 389, 309, 114}, [389] = { 100, 390, 310, 114}, [390] = { 150, 391, 311, 114}, [391] = { 200, 392, 311, 114}, [393] = { 50, 394, 309, 114}, [394] = { 100, 395, 310, 114}, [395] = { 150, 396, 311, 114}, [396] = { 200, 397, 312, 121}, [397] = { 400, 398, 314, 121}, [398] = { 600, 399, 315, 32}, -- Tapion [400] = { 50, 401, 317, 111}, [401] = { 100, 402, 318, 116}, [402] = { 150, 403, 319, 111}, [403] = { 200, 404, 320, 112}, [405] = { 50, 406, 322, 116}, [406] = { 100, 407, 323, 112}, [407] = { 150, 408, 324, 116}, [408] = { 175, 409, 325, 115}, [409] = { 200, 410, 326, 115}, [410] = { 400, 411, 327, 112}, [411] = { 600, 412, 329, 34}, [412] = { 600, 476, 528, 112}, -- Kame [413] = { 50, 414, 331, 116}, [414] = { 100, 415, 332, 116}, [415] = { 150, 416, 333, 116}, [416] = { 200, 417, 334, 114}, [418] = { 50, 419, 336, 114}, [419] = { 100, 420, 337, 116}, [420] = { 150, 421, 338, 112}, [421] = { 200, 422, 339, 114}, [422] = { 400, 423, 340, 34}, [423] = { 600, 424, 341, 34}, -- King Vegeta [425] = { 50, 426, 343, 116}, [426] = { 100, 427, 344, 114}, [427] = { 150, 428, 345, 114}, [428] = { 200, 429, 346, 114}, [430] = { 50, 431, 348, 114}, [431] = { 100, 432, 348, 114}, [432] = { 150, 433, 349, 112}, [433] = { 200, 434, 350, 115}, [434] = { 400, 435, 351, 112}, [435] = { 600, 436, 352, 32}, -- Kagome [437] = { 50, 438, 354, 116}, [438] = { 100, 439, 355, 114}, [439] = { 150, 440, 355, 114}, [440] = { 200, 441, 356, 114}, [442] = { 50, 443, 358, 114}, [443] = { 100, 444, 359, 114}, [444] = { 150, 445, 359, 114}, [445] = { 200, 446, 360, 114}, [446] = { 400, 447, 361, 112}, [447] = { 600, 448, 362, 112}, -- Zaiko [449] = { 50, 450, 364, 112}, [450] = { 100, 451, 365, 112}, [451] = { 150, 452, 366, 114}, [452] = { 200, 453, 367, 114}, [454] = { 50, 455, 369, 114}, [455] = { 100, 456, 370, 114}, [456] = { 150, 457, 371, 111}, [457] = { 200, 458, 372, 111}, [458] = { 400, 459, 373, 34}, [459] = { 600, 460, 374, 34}, [460] = { 600, 477, 476, 32}, -- Chilled [461] = { 50, 462, 376, 113}, [462] = { 100, 463, 377, 113}, [463] = { 150, 464, 378, 113}, [464] = { 200, 465, 379, 34}, [466] = { 50, 467, 376, 113}, [467] = { 100, 468, 377, 113}, [468] = { 150, 469, 378, 113}, [469] = { 200, 470, 381, 29}, [470] = { 400, 471, 380, 29}, [471] = { 600, 472, 382, 29}, [472] = { 600, 492, 531, 29}, -- C8 [478] = { 50, 479, 513, 34}, [479] = { 100, 480, 514, 34}, [480] = { 150, 481, 515, 34}, [481] = { 200, 482, 516, 34}, [483] = { 50, 484, 518, 34}, [484] = { 100, 485, 519, 34}, [485] = { 150, 486, 520, 34}, [486] = { 200, 487, 521, 34}, [487] = { 400, 488, 522, 34}, [488] = { 600, 489, 523, 34}, --Goku Black --[vocation id] = { level, nova voc, looktype, efeito} [532] = { 100, 533, 588, 108}, [533] = { 200, 534, 589, 108}, [535] = { 50, 536, 593, 108}, [536] = { 100, 537, 594, 108}, [537] = { 200, 538, 590, 108}, [538] = { 400, 539, 591, 108}, [539] = { 600, 540, 595, 108}, --Golden Freeza --[vocation id] = { level, nova voc, looktype, efeito} [542] = { 100, 543, 597, 245}, [543] = { 200, 544, 599, 245}, [545] = { 50, 546, 597, 245}, [546] = { 100, 547, 599, 245}, [547] = { 200, 548, 600, 245}, [548] = { 400, 549, 601, 245}, [549] = { 600, 550, 602, 245}, --Bills --[vocation id] = { level, nova voc, looktype, efeito} [552] = { 100, 553, 503, 121}, [553] = { 200, 554, 504, 121}, [555] = { 50, 556, 501, 121}, [556] = { 100, 557, 505, 121}, [557] = { 200, 558, 507, 121}, [558] = { 400, 559, 506, 121}, [559] = { 600, 560, 508, 121}, --Zamasu --[vocation id] = { level, nova voc, looktype, efeito} [562] = { 100, 563, 608, 121}, [563] = { 200, 564, 609, 121}, [565] = { 50, 566, 609, 121}, [566] = { 100, 567, 610, 121}, [567] = { 200, 568, 611, 121}, [568] = { 400, 569, 612, 121}, [569] = { 600, 570, 613, 121}, --Whiss --[vocation id] = { level, nova voc, looktype, efeito} [572] = { 100, 573, 616, 245}, [573] = { 200, 574, 619, 245}, [575] = { 50, 576, 616, 245}, [576] = { 100, 577, 615, 245}, [577] = { 200, 578, 619, 245}, [578] = { 400, 579, 618, 245}, [579] = { 600, 580, 620, 245}, --Vados --[vocation id] = { level, nova voc, looktype, efeito} [582] = { 100, 583, 622, 245}, [583] = { 200, 584, 623, 245}, [585] = { 50, 586, 624, 245}, [586] = { 100, 587, 622, 245}, [587] = { 200, 588, 623, 245}, [588] = { 400, 589, 624, 245}, [589] = { 600, 590, 625, 245}, --Vegetto Black --[vocation id] = { level, nova voc, looktype, efeito} [592] = { 100, 593, 631, 4}, [593] = { 200, 594, 632, 4}, [595] = { 50, 596, 631, 4}, [596] = { 100, 597, 631, 4}, [597] = { 200, 598, 632, 4}, [598] = { 400, 599, 633, 4}, [599] = { 600, 600, 634, 4}, --Blue Gogeta --[vocation id] = { level, nova voc, looktype, efeito} [602] = { 100, 603, 6, 4}, [603] = { 200, 604, 636, 4}, [605] = { 50, 606, 640, 4}, [606] = { 100, 607, 6, 4}, [607] = { 200, 608, 636, 4}, [608] = { 400, 609, 637, 4}, [609] = { 600, 610, 638, 4}, --Vegetto Blue --[vocation id] = { level, nova voc, looktype, efeito} [612] = { 100, 613, 568, 121}, [613] = { 200, 614, 647, 121}, [615] = { 50, 616, 568, 121}, [616] = { 100, 617, 568, 121}, [617] = { 200, 618, 647, 121}, [618] = { 400, 619, 648, 121}, [619] = { 600, 620, 649, 121}, --Zeno --[vocation id] = { level, nova voc, looktype, efeito} [622] = { 100, 623, 642, 121}, [623] = { 200, 624, 643, 121}, [625] = { 50, 626, 641, 121}, [626] = { 100, 627, 642, 121}, [627] = { 200, 628, 643, 121}, [628] = { 400, 629, 644, 121}, [629] = { 600, 630, 645, 121}, --Goku Black Evo --[vocation id] = { level, nova voc, looktype, efeito} [632] = { 100, 633, 652, 121}, [633] = { 200, 634, 653, 121}, [635] = { 50, 636, 651, 121}, [636] = { 100, 637, 652, 121}, [637] = { 200, 638, 653, 121}, [638] = { 400, 639, 654, 121}, [639] = { 600, 640, 655, 121} } function onSay(cid, words, param, channel) local voc = config[getPlayerVocation(cid)] if voc then if getPlayerLevel(cid) >= voc[1] then doPlayerSetVocation(cid, voc[2]) doCreatureSay(cid, "Aaah !!!!", 19) 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, "Nao e possível se transformar.") end return true end
-
(Resolvido)Adaptar script NPC Reborn
Olá, teria como adicionar mais um "else if" para que o player só possa rebornar se estiver com as 7 esferas do dragão na bag? (são 7 itens de 7 quest diferentes) Uso tfs 0.4 cliente 8.60 Informações adicionais: Storage das quests das esferas: 60087 - esfera 1 estrela 60088 - esfera 2 estrelas 60089 - esfera 3 estrelas 60090 - esfera 4 estrelas 60091 - esfera 5 estrelas 60092 - esfera 6 estrelas 60093 - esfera 7 estrelas id das esferas: 12750 - esfera 1 estrela 12751 - esfera 2 estrelas 12752 - esfera 3 estrelas 12753 - esfera 4 estrelas 12754 - esfera 5 estrelas 12755 - esfera 6 estrelas 12756 - esfera 7 estrelas script: local focus = 0 local talk_start = 0 local target = 0 local following = false local attacking = false function onThingMove(creature, thing, oldpos, oldstackpos) end function onCreatureAppear(creature) end function onCreatureDisappear(cid, pos) if focus == cid then selfSay('???') focus = 0 talk_start = 0 end end function onCreatureTurn(creature) end function msgcontains(txt, str) return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)')) end function onCreatureSay(cid, type, msg) msg = string.lower(msg) if (msgcontains(msg, 'hi') and (focus == 0)) and getDistanceToCreature(cid) < 4 then selfSay('Olá! Se voce está pronto, diga "reborn".') focus = cid talk_start = os.clock() elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then selfSay('Desculpe, ' .. getCreatureName(cid) .. '! Hey!.') elseif focus == cid then talk_start = os.clock() if msgcontains(msg, 'reborn') and getPlayerStorageValue(cid,30023) == 4 then selfSay('Desculpe, mas voce já é rebornado.') focus = 0 talk_start = 0 elseif msgcontains(msg, 'reborn') and (getPlayerLevel(cid) ~= 300 and getPlayerStorageValue(cid,30023) ~= 4) then selfSay('Apenas level 300 podem rebornar.') focus = 0 talk_start = 0 elseif msgcontains(msg, 'reborn') then selfSay('Realmente quer isto?') talk_state = 2 --_GOKU_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 8 then doReborn(cid,1,10,9) talk_state = 0 --_VEGETA_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 23 then doReborn(cid,1,25,24) talk_state = 0 --_PICCOLO_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 36 then doReborn(cid,1,42,37) talk_state = 0 --_C17_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 49 then doReborn(cid,1,50,50) talk_state = 0 --_GOHAN_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 63 then doReborn(cid,1,62,64) talk_state = 0 --_TRUNKS_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 75 then doReborn(cid,1,74,76) talk_state = 0 --_CELL_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 87 then doReborn(cid,1,81,88) talk_state = 0 --_FREEZA_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 101 then doReborn(cid,1,88,102) talk_state = 0 --_MAJIN BOO_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 117 then doReborn(cid,1,98,118) talk_state = 0 --_BROLY_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 131 then doReborn(cid,1,113,132) talk_state = 0 --_C18_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 144 then doReborn(cid,1,50,145) talk_state = 0 --_UUB_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 156 then doReborn(cid,1,128,157) talk_state = 0 --_GOTEN_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 170 then doReborn(cid,1,142,171) talk_state = 0 --_CHIBI TRUNKS_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 184 then doReborn(cid,1,151,185) talk_state = 0 --_COOLER_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 197 then doReborn(cid,1,153,198) talk_state = 0 --_DENDE_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 210 then doReborn(cid,1,169,211) talk_state = 0 --_TSUFUL_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 222 then doReborn(cid,1,180,223) talk_state = 0 --_BARDOCK_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 235 then doReborn(cid,1,194,236) talk_state = 0 --_KURIRIN_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 248 then doReborn(cid,1,205,249) talk_state = 0 --_PAN_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 260 then doReborn(cid,1,212,261) talk_state = 0 --_KAIO_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 272 then doReborn(cid,1,221,273) talk_state = 0 --_VIDEL_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 284 then doReborn(cid,1,227,285) talk_state = 0 --_JANEMBA_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 296 then doReborn(cid,1,234,297) talk_state = 0 --_TENSHINHAN_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 308 then doReborn(cid,1,246,309) talk_state = 0 --_JENK_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 320 then doReborn(cid,1,257,321) talk_state = 0 --_RADITZ_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 332 then doReborn(cid,1,265,333) talk_state = 0 --_C16_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 344 then doReborn(cid,1,277,345) talk_state = 0 --_TURLES_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 356 then doReborn(cid,1,285,357) talk_state = 0 --_BULMA_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 368 then doReborn(cid,1,296,369) talk_state = 0 --_SHENRON_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 380 then doReborn(cid,1,302,381) talk_state = 0 --_VEGETTO_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 392 then doReborn(cid,1,308,393) talk_state = 0 --_TAPION_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 404 then doReborn(cid,1,321,405) talk_state = 0 --_KAME_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 417 then doReborn(cid,1,335,418) talk_state = 0 --_KING VEGETA_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 429 then doReborn(cid,1,347,430) talk_state = 0 --_KAGOME_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 441 then doReborn(cid,1,357,442) talk_state = 0 --_ZAIKO_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 453 then doReborn(cid,1,368,454) talk_state = 0 --_LORD CHILLED_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 465 then doReborn(cid,1,375,466) talk_state = 0 --_C8_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 482 then doReborn(cid,1,517,483) talk_state = 0 --_Goku Black_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 534 then doReborn(cid,1,592,535) talk_state = 0 --_Golden Freeza_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 544 then doReborn(cid,1,88,545) talk_state = 0 --_Bills_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 554 then doReborn(cid,1,502,555) talk_state = 0 --_Zamasu_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 564 then doReborn(cid,1,607,565) talk_state = 0 --_Whiss_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 574 then doReborn(cid,1,617,575) talk_state = 0 --_Vados_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 584 then doReborn(cid,1,624,585) talk_state = 0 --_Vegetto Black_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 594 then doReborn(cid,1,630,595) talk_state = 0 --_Blue Gogeta_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 604 then doReborn(cid,1,640,605) talk_state = 0 --_Vegetto Blue_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 614 then doReborn(cid,1,308,615) talk_state = 0 --_Zeno_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 624 then doReborn(cid,1,641,625) talk_state = 0 --_Goku Black Evo_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) == 300 and getPlayerVocation(cid) == 634 then doReborn(cid,1,651,635) talk_state = 0 elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then selfSay('Adeus!') focus = 0 talk_start = 0 end end end function onThink() doNpcSetCreatureFocus(focus) if (os.clock() - talk_start) > 45 then if focus > 0 then selfSay('Próximo por favor...') end focus = 0 end if focus ~= 0 then if getDistanceToCreature(focus) > 5 then selfSay('Adeus!') focus = 0 end end end
- Dbo Rox V2 8.60 [Open Source][99% SEM BUGS]
-
(Resolvido)Alterar Looktype ao logar
resolveu, valeu man!! :D
-
(Resolvido)Alterar Looktype ao logar
Aqui está groups.xml
-
(Resolvido)Alterar Looktype ao logar
Olá, eu tenho um servidor dbo e estou com um probleminha.. Ao logar a acc admin, ele loga com roupa de god, gostaria que ele logasse com a mesma outfit que deslogou na ultima vez... E ao remover god de um char, ao relogar esse char, permanece com outfit de god mesmo sendo PLAYER.. Como faço pra resolver essas duas coisas?
- Dbo Rox V2 8.60 [Open Source][99% SEM BUGS]
-
Ajuda Roteador da vivo
mano vai na aba configurações -> rede local -> loga no modem usando login "admin" e a senha que esta na primeira foto onde está escrito "chave" quando logar vai aparecer um outro menu dai vc clica em redirecionar portas e configura tudo certinho ali, interner do meu amigo tbm é vivo fibra, eu que abri as portas do ot pra ele Alguns windows 7 (como o meu por exemplo) mesmo se você criar as regras de entrada e saída com as portas do jogo, ele bloqueia, então no meu caso tive que desligar firewall;
-
(Resolvido)Converter IP gerado no log.txt
Não amigo, é na pasta data/talkactions/scripts dentro de cada script de cada comando que eu quero que apareça no log.txt
-
(Resolvido)Converter IP gerado no log.txt
Funcionou! Muito obrigado :D
-
(Resolvido)Converter IP gerado no log.txt
pq quero saber se a pessoa loga do mesmo pc, tenho amigos que só tem 1 pc, se por acaso logarem na acc dele de outro ip, ja sei que foi hacked e tento desfazer o estrago..
-
(Resolvido)Converter IP gerado no log.txt
Olá, eu tinha um probleminha com as talkactions, pois elas não estavam gerando log, o jeito foi adaptar uma linha de comando que peguei aqui mesmo no TK. Só que agora estou com o seguinte problema: no log é gerado agumas informações da pessoa que usou o comando, e junto com essas informações, é mostrado o IP da pessoa, só que o ip que mostra é estranho, aparecem 9 números e não possui pontos nem nada como por exemplo: 566483900 Gostaria de poder converter esse ip para ser mostrado o ip normal da pessoa Ex: 127.0.0.1. É possivel? aqui está a linha de comando que utilizo para gerar o log: local pname = getPlayerNameByGUID(getPlayerGUID(cid)) local pip = getPlayerIp(cid) local file = io.open('data/logs/'.. pname ..'.txt','a') file:write("Dia: "..os.date("%d").."/"..os.date("%m").."/"..os.date("%Y").." Hora: "..os.date("%X").."\n".. pname .." Através do Ip: " .. pip .. "\nusou o comando >> ".. words .." ".. param .."\n\n") file:close()
-
Problema com portas UDP
Olá, estou tendo um problema bem irritante. Ninguém consegue acessar meu servidor pra jogar/testar, porém acessam o site normalmente.. apenas eu consigo logar de qualquer computador dentro da minha rede. Estou usando windows 7 Firewall desligado (com ele ligado mesmo que eu criei as regras ele bloqueia as portas, então deixei ele desligado) Antivirus desligado Modem HUMAX - modelo: HG1000R-L2 (ele não é bloqueado) Portas TCP todas abertas perfeitamente, tudo que eu fiz com TCP eu fiz igualzinho com UDP mas está acusando que TCP tá aberta mas UDP tá fechada (portas: 7171, 7172, e 4000 para site) Estou utilizando Xampp 5.6.8 Servidor DBO tfs 0.4 client 8.60 (não sei se isso influencia na questão) Agradeço desde já! Se não tiver jeito, infelizmente terei que desistir de ots ;s
-
Saber qual comando a Staff usou
o ip ta aparecendo diferente e sem os pontos, é normal? teria como fazer aparecer o ip normal?
-
Saber qual comando a Staff usou
nesse caso posso usar essa linha de comando para todos os scripts de comandos que eu quero que gere o log? ele vai pegar o comando e os parametros de qualquer talkaction? por exemplo o comando /a 20?
-
Saber qual comando a Staff usou
@luangop @Way20 Olá, desculpa estar revivendo o tópico, mas estou com uma dúvida, teria como adaptar para que dentro do log.txt aparecesse também o ip/nome do item que a pessoa digitou? Exemplo 1: se o god digitar "/i 2160" aparecesse no log que ele digitou "/i 2160" Exemplo 2: se o god digitar "/i gold coin" aparecesse no log que ele giditou "/i gold coin" ou melhor dizendo: teria como adaptar esse script para escrever no log.txt absolutamente os comandos COMPLETOS que a pessoa digitou? Essa seria a pergunta correta
-
problema com Shop system (modern aac)
Como o título já diz, estou tendo o seguinte problema com minha página shop.php aqui está meu arquivo shop.php: shop.php
- TEMPLATE WODBO WARS -
-
(Resolvido)2 dúvidas sobre sites
obrigado