Jump to content

Scripting Adicionar Storage a talkaction


Recommended Posts

.Qual servidor ou website você utiliza como base? Otx

 

Boa noite rapazeada do Tibiaking, alguém poderia me ajudar com uma criação de um script? estou precisando dela pra adicionar em uma quest de "promotion" no meu servidor. Se alguém poder adicionar uma storage a esse talkaction eu iria ficar muito grato! Preciso que os players so possam usar a talkaction, no caso "transformar" para proxima transformação se tiverem o storage "xxxx" o Storage eu irei colocar em um npcs pra conseguir no final de uma quest.

 

Você tem o código disponível? Se tiver publique-o aqui: 

local config = {
--[vocation id] = { level, nova voc, looktype, efeito}
-- Goku
[1] = { 25, 2, 6, 112},


-- Vegeta
[14] = { 25, 15, 22, 114},

-- Piccolo
[27] = { 25, 28, 34, 111},

-- C17
[40] = { 25, 41, 47, 34},

-- FUTURE TRUNKS
--[vocation id] = { level, nova voc, transform, efeito}
[53] = { 25, 54, 74, 114},
[54] = { 50, 55, 70, 114},
[55] = { 75, 56, 72, 114},
[56] = { 100, 57, 73, 114},
[57] = { 150, 58, 75, 114},
[58] = { 200, 59, 964, 114},
[59] = { 300, 60, 962, 114},
[60] = { 400, 61, 968, 114},
[61] = { 500, 62, 966, 114},
[62] = { 600, 63, 965, 114},
[63] = { 700, 64, 967, 114},
[64] = { 800, 65, 539, 114},


-- CELL
--[vocation id] = { level, nova voc, transform, efeito}
[66] = { 25, 67, 1005, 521},
[67] = { 50, 68, 82, 521},
[68] = { 75, 69, 83, 521},
[69] = { 100, 70, 85, 521},
[70] = { 150, 771, 84, 521},
[771] = { 200, 72, 1005, 521},
[72] = { 300, 73, 1006, 521},
[73] = { 400, 74, 1007, 521},
[74] = { 500, 75, 600, 521},
[75] = { 600, 76, 86, 521},
[76] = { 700, 77, 87, 521},
[77] = { 800, 78, 1010, 521},


-- Freeza
--[vocation id] = { level, nova voc, transform, efeito}
[79] = { 25, 80, 89, 123},
[80] = { 50, 81, 90, 512},
[81] = { 75, 82, 91, 513},
[82] = { 100, 83, 92, 514},
[83] = { 150, 84, 92, 514},
[84] = { 200, 85, 93, 123},
[85] = { 300, 86, 94, 512},
[86] = { 400, 87, 95, 513},
[87] = { 500, 88, 582, 514},
[88] = { 600, 89, 96, 514},
[89] = { 700, 90, 847, 514},
[90] = { 800, 91, 584, 514},

-- Majim Boo
--[vocation id] = { level, nova voc, transform, efeito}
[92] = { 25, 93, 1056, 14},
[93] = { 50, 94, 1055, 14},
[94] = { 75, 95, 1061, 14},
[95] = { 100, 96, 1060, 14},
[96] = { 150, 97, 100, 14},
[97] = { 200, 98, 101, 14},
[98] = { 300, 99, 102, 14},
[99] = { 400, 100, 104, 14},
[100] = { 500, 101, 602, 14},
[101] = { 600, 102, 105, 14},
[102] = { 700, 103, 107, 483},
[103] = { 800, 104, 106, 483},

-- BROLLY
--[vocation id] = { level, nova voc, transform, efeito}
[105] = { 25, 106, 113, 126},
[106] = { 50, 107, 114, 126},
[107] = { 75, 108, 110, 126},
[108] = { 100, 109, 109, 126},
[109] = { 150, 110, 115, 126},
[110] = { 200, 111, 110, 126},
[111] = { 300, 112, 111, 126},
[112] = { 400, 113, 112, 126},
[113] = { 500, 114, 116, 126},
[114] = { 600, 115, 119, 126},
[115] = { 700, 116, 120, 126},
[116] = { 800, 117, 1084, 126},

-- C18
--[vocation id] = { level, nova voc, transform, efeito}
[118] = { 25, 119, 121, 117},
[119] = { 50, 120, 122, 117},
[120] = { 75, 121, 125, 117},
[121] = { 100, 122, 126, 117},
[122] = { 150, 123, 125, 117},
[123] = { 200, 124, 123, 117},
[124] = { 300, 125, 124, 117},
[125] = { 400, 126, 124, 117},
[126] = { 500, 127, 126, 117},
[127] = { 600, 128, 127, 117},
[128] = { 700, 129, 606, 117},
[129] = { 800, 130, 538, 117},

-- UUB
--[vocation id] = { level, nova voc, transform, efeito}
[131] = { 25, 132, 128, 14},
[132] = { 50, 133, 129, 14},
[133] = { 75, 134, 130, 14},
[134] = { 100, 135, 131, 14},
[135] = { 150, 136, 132, 14},
[136] = { 200, 137, 131, 14},
[137] = { 300, 138, 132, 14},
[138] = { 400, 139, 129, 14},
[139] = { 500, 140, 133, 14},
[140] = { 600, 141, 133, 14},
[141] = { 700, 142, 603, 483},
[142] = { 800, 143, 134, 483},

-- COOLA
--[vocation id] = { level, nova voc, transform, efeito}
[144] = { 25, 145, 153, 444},
[145] = { 50, 146, 155, 444},
[146] = { 75, 147, 154, 444},
[147] = { 100, 148, 156, 444},
[148] = { 150, 149, 157, 444},
[149] = { 200, 150, 158, 444},
[150] = { 300, 151, 160, 444},
[151] = { 400, 152, 162, 444},
[152] = { 500, 153, 161, 444},
[153] = { 600, 154, 159, 444},
[154] = { 700, 155, 532, 444},
[155] = { 800, 156, 846, 444},


-- DENDE
[157] = { 25, 158, 165, 117},
[158] = { 50, 159, 166, 117},
[159] = { 75, 160, 167, 117},
[160] = { 100, 161, 169, 117},
[161] = { 150, 162, 170, 117},
[162] = { 200, 163, 168, 117},
[163] = { 300, 164, 171, 117},
[164] = { 400, 165, 172, 117},
[165] = { 500, 166, 173, 117},
[166] = { 600, 167, 535, 117},
[167] = { 700, 168, 585, 117},
[168] = { 800, 169, 1011, 117},


-- TSUFUR
[170] = { 25, 171, 175, 117},
[171] = { 50, 172, 177, 117},
[172] = { 75, 173, 176, 117},
[173] = { 100, 174, 178, 117},
[174] = { 150, 175, 184, 117},
[175] = { 200, 176, 179, 117},
[176] = { 300, 177, 182, 117},
[177] = { 400, 178, 183, 117},
[178] = { 500, 179, 185, 117},
[179] = { 600, 180, 186, 117},
[180] = { 700, 181, 187, 117},
[181] = { 800, 182, 549, 117},


-- BARDOCK
[183] = { 25, 184, 189, 117},
[184] = { 50, 185, 188, 117},
[185] = { 75, 186, 192, 117},
[186] = { 100, 187, 190, 117},
[187] = { 150, 188, 191, 117},
[188] = { 200, 189, 194, 117},
[189] = { 300, 190, 195, 117},
[190] = { 400, 191, 196, 117},
[191] = { 500, 192, 197, 117},
[192] = { 600, 193, 198, 117},
[193] = { 700, 194, 198, 117},
[194] = { 800, 195, 199, 117},


-- KURIRIN
[196] = { 25, 197, 200, 117},
[197] = { 50, 198, 202, 117},
[198] = { 75, 199, 201, 117},
[199] = { 100, 200, 205, 117},
[200] = { 150, 201, 206, 117},
[201] = { 200, 202, 203, 117},
[202] = { 300, 203, 204, 117},
[203] = { 400, 204, 207, 117},
[204] = { 500, 205, 208, 117},
[205] = { 600, 206, 209, 117},
[206] = { 700, 207, 542, 117},
[207] = { 800, 208, 1063, 117},


-- PAN
[209] = { 25, 210, 210, 117},
[210] = { 50, 211, 211, 117},
[211] = { 75, 212, 212, 117},
[212] = { 100, 213, 213, 117},
[213] = { 150, 214, 214, 117},
[214] = { 200, 215, 214, 117},
[215] = { 300, 216, 215, 117},
[216] = { 400, 217, 216, 117},
[217] = { 500, 218, 543, 117},
[218] = { 600, 219, 218, 117},
[219] = { 700, 220, 217, 117},
[220] = { 800, 221, 918, 117},


-- KAIOHSHIN
[222] = { 25, 223, 219, 117},
[223] = { 50, 224, 220, 117},
[224] = { 75, 225, 221, 117},
[225] = { 100, 226, 222, 117},
[226] = { 150, 227, 225, 117},
[227] = { 200, 228, 226, 117},
[228] = { 300, 229, 932, 117},
[229] = { 400, 230, 933, 117},
[230] = { 500, 231, 934, 117},
[231] = { 600, 232, 935, 117},
[232] = { 700, 233, 936, 117},
[233] = { 800, 234, 937, 117},


-- JANEMBA
[429] = { 25, 235, 234, 117},
[235] = { 50, 236, 235, 117},
[236] = { 75, 237, 236, 117},
[237] = { 100, 238, 237, 117},
[238] = { 150, 239, 238, 117},
[239] = { 200, 240, 239, 117},
[240] = { 300, 241, 867, 117},
[241] = { 400, 242, 240, 117},
[242] = { 200, 243, 868, 117},
[243] = { 400, 244, 869, 117},
[244] = { 600, 245, 866, 117},
[245] = { 800, 246, 870, 117},


-- TENSHINHAN
[247] = { 25, 248, 242, 117},
[248] = { 50, 249, 244, 117},
[249] = { 75, 250, 243, 117},
[250] = { 100, 251, 245, 117},
[251] = { 150, 252, 246, 117},
[252] = { 200, 253, 247, 117},
[253] = { 300, 254, 248, 117},
[254] = { 400, 255, 249, 117},
[255] = { 500, 256, 251, 117},
[256] = { 600, 257, 250, 117},
[257] = { 700, 258, 591, 117},
[258] = { 800, 259, 1064, 117},


-- RADITZ
[260] = { 25, 261, 264, 117},
[261] = { 50, 262, 258, 117},
[262] = { 75, 263, 265, 117},
[263] = { 100, 264, 267, 117},
[264] = { 150, 265, 266, 117},
[265] = { 200, 266, 268, 117},
[266] = { 300, 267, 268, 117},
[267] = { 400, 268, 269, 117},
[268] = { 500, 269, 269, 117},
[269] = { 600, 270, 270, 117},
[270] = { 700, 271, 270, 117},
[271] = { 800, 272, 271, 117},


-- C16
[273] = { 25, 274, 272, 117},
[274] = { 50, 275, 273, 117},
[275] = { 75, 276, 277, 117},
[276] = { 100, 277, 274, 117},
[277] = { 150, 278, 275, 117},
[278] = { 200, 279, 276, 117},
[279] = { 300, 280, 278, 117},
[280] = { 400, 281, 278, 117},
[281] = { 500, 282, 279, 117},
[282] = { 600, 283, 279, 117},
[283] = { 700, 284, 540, 117},
[284] = { 800, 285, 541, 117},


-- TURLES
[286] = { 25, 287, 281, 117},
[287] = { 50, 288, 285, 117},
[288] = { 75, 289, 287, 117},
[289] = { 100, 290, 288, 117},
[290] = { 150, 291, 282, 117},
[291] = { 200, 292, 283, 117},
[292] = { 300, 293, 280, 117},
[293] = { 400, 294, 284, 117},
[294] = { 500, 295, 598, 117},
[295] = { 600, 296, 289, 117},
[296] = { 700, 297, 290, 117},
[297] = { 800, 298, 291, 117},


-- BULMA
[299] = { 25, 300, 292, 117},
[300] = { 50, 301, 293, 117},
[301] = { 75, 302, 294, 117},
[302] = { 100, 303, 295, 117},
[303] = { 150, 304, 296, 117},
[304] = { 200, 305, 297, 117},
[305] = { 300, 306, 298, 117},
[306] = { 400, 307, 299, 117},
[307] = { 500, 308, 299, 117},
[308] = { 600, 309, 599, 117},
[309] = { 700, 310, 300, 117},
[310] = { 800, 311, 301, 117},


-- SHENRON
[312] = { 25, 313, 302, 117},
[313] = { 50, 314, 1057, 117},
[314] = { 75, 315, 927, 117},
[315] = { 100, 316, 928, 117},
[316] = { 150, 317, 1057, 117},
[317] = { 200, 318, 1059, 117},
[318] = { 300, 319, 305, 117},
[319] = { 400, 320, 306, 117},
[320] = { 500, 321, 1059, 117},
[321] = { 600, 322, 1058, 117},
[322] = { 700, 323, 930, 117},
[323] = { 800, 324, 931, 117},


-- VEGETTO
[325] = { 25, 326, 308, 117},
[326] = { 50, 327, 309, 117},
[327] = { 75, 328, 309, 117},
[328] = { 100, 329, 310, 117},
[329] = { 150, 330, 311, 117},
[330] = { 200, 331, 311, 117},
[331] = { 300, 332, 312, 117},
[332] = { 400, 333, 312, 117},
[333] = { 500, 334, 313, 117},
[334] = { 600, 335, 568, 117},
[335] = { 700, 336, 314, 117},
[336] = { 800, 337, 315, 117},


-- TAPION
[338] = { 25, 339, 950, 117},
[339] = { 50, 340, 951, 117},
[340] = { 75, 341, 952, 117},
[341] = { 100, 342, 953, 117},
[342] = { 150, 343, 954, 117},
[343] = { 200, 344, 955, 117},
[344] = { 300, 345, 949, 117},
[345] = { 400, 346, 946, 117},
[346] = { 500, 347, 947, 117},
[347] = { 600, 348, 328, 117},
[348] = { 700, 349, 959, 117},
[349] = { 800, 350, 958, 117},


-- KAME
[351] = { 25, 352, 330, 117},
[352] = { 50, 353, 333, 117},
[353] = { 75, 354, 331, 117},
[354] = { 100, 355, 332, 117},
[355] = { 150, 356, 336, 117},
[356] = { 200, 357, 335, 117},
[357] = { 300, 358, 334, 117},
[358] = { 400, 359, 337, 117},
[359] = { 500, 360, 338, 117},
[360] = { 600, 361, 339, 117},
[361] = { 700, 362, 340, 117},
[362] = { 800, 363, 341, 117},


-- KAGOME
[364] = { 25, 365, 353, 117},
[365] = { 50, 366, 354, 117},
[366] = { 75, 367, 355, 117},
[367] = { 100, 368, 356, 117},
[368] = { 150, 369, 358, 117},
[369] = { 200, 370, 359, 117},
[370] = { 300, 371, 360, 117},
[371] = { 400, 372, 360, 117},
[372] = { 500, 373, 357, 117},
[373] = { 600, 374, 357, 117},
[374] = { 700, 375, 361, 117},
[375] = { 800, 376, 362, 117},


-- ZAIKO
[377] = { 25, 378, 991, 117},
[378] = { 50, 379, 992, 117},
[379] = { 75, 380, 993, 117},
[380] = { 100, 381, 994, 117},
[381] = { 150, 382, 995, 117},
[382] = { 200, 383, 996, 117},
[383] = { 300, 384, 997, 117},
[384] = { 400, 385, 998, 117},
[385] = { 500, 386, 999, 117},
[386] = { 600, 387, 1000, 117},
[387] = { 700, 388, 1001, 117},
[388] = { 800, 389, 1002, 117},


-- CHILLED
[390] = { 25, 391, 375, 117},
[391] = { 50, 392, 840, 117},
[392] = { 75, 393, 841, 117},
[393] = { 100, 394, 842, 117},
[394] = { 150, 395, 376, 117},
[395] = { 200, 396, 377, 117},
[396] = { 300, 397, 378, 117},
[397] = { 400, 398, 379, 117},
[398] = { 500, 399, 380, 117},
[399] = { 600, 400, 382, 117},
[400] = { 700, 401, 576, 117},
[401] = { 800, 402, 845, 117},


-- C8
[403] = { 25, 404, 512, 117},
[404] = { 50, 405, 513, 117},
[405] = { 75, 406, 514, 117},
[406] = { 100, 407, 515, 117},
[407] = { 150, 408, 516, 117},
[408] = { 200, 409, 517, 117},
[409] = { 300, 410, 518, 117},
[410] = { 400, 411, 519, 117},
[411] = { 500, 412, 520, 117},
[412] = { 600, 413, 521, 117},
[413] = { 700, 414, 522, 117},
[414] = { 800, 415, 523, 117},


-- FROST
[416] = { 25, 417, 713, 117},
[417] = { 50, 418, 714, 117},
[418] = { 75, 419, 714, 117},
[419] = { 100, 420, 715, 117},
[420] = { 150, 421, 715, 117},
[421] = { 200, 422, 716, 117},
[422] = { 300, 423, 717, 117},
[423] = { 400, 424, 718, 117},
[424] = { 500, 425, 719, 117},
[425] = { 600, 426, 720, 117},
[426] = { 700, 427, 719, 117},
[427] = { 800, 428, 721, 117},



















-- BILLS
[1000] = { 25, 1001, 625, 113},
[1001] = { 50, 1002, 622, 113},
[1002] = { 75, 1003, 624, 113},
[1003] = { 100, 1004, 623, 113},
[1004] = { 150, 1005, 624, 113},
[1005] = { 200, 1006, 626, 113},
[1006] = { 300, 1007, 619, 113},
[1007] = { 400, 1008, 618, 113},
[1008] = { 500, 1009, 617, 113},
[1009] = { 600, 1010, 616, 113},
[1010] = { 700, 1011, 615, 113},
[1011] = { 800, 1012, 614, 113},

-- CHAMPA
[1013] = { 25, 1014, 984, 113},
[1014] = { 50, 1015, 985, 113},
[1015] = { 75, 1016, 986, 113},
[1016] = { 100, 1017, 986, 113},
[1017] = { 150, 1018, 986, 113},
[1018] = { 200, 1019, 985, 113},
[1019] = { 300, 1020, 985, 113},
[1020] = { 400, 1021, 986, 113},
[1021] = { 500, 1022, 986, 113},
[1022] = { 600, 1023, 987, 113},
[1023] = { 700, 1024, 988, 113},
[1024] = { 800, 1025, 989, 113},

-- Gin
[1026] = { 50, 1027, 668, 115},
[1027] = { 100, 1028, 669, 115},
[1028] = { 150, 1029, 670, 115},
[1029] = { 200, 1030, 671, 115},
[1030] = { 200, 1031, 672, 115},
[1031] = { 50, 1032, 672, 115},
[1032] = { 100, 1033, 671, 115},
[1033] = { 150, 1034, 672, 115},
[1034] = { 200, 1035, 673, 115},
[1035] = { 400, 1036, 675, 115},
[1036] = { 600, 1037, 676, 115},
[1037] = { 800, 1038, 674, 112},

-- KITERA
[1039] = { 50, 1040, 746, 114},
[1040] = { 100, 1041, 748, 114},
[1041] = { 150, 1042, 749, 114},
[1042] = { 200, 1043, 749, 114},
[1043] = { 200, 1044, 749, 114},
[1044] = { 50, 1045, 746, 114},
[1045] = { 100, 1046, 748, 114},
[1046] = { 150, 1047, 749, 114},
[1047] = { 200, 1048, 750, 114},
[1048] = { 400, 1049, 751, 114},
[1049] = { 600, 1050, 752, 114},
[1050] = { 800, 1051, 745, 114},

-- VERMODO
[1052] = { 25, 1053, 979, 116},
[1053] = { 50, 1054, 980, 116},
[1054] = { 75, 1055, 981, 116},
[1055] = { 100, 1056, 982, 116},
[1056] = { 150, 1057, 982, 116},
[1057] = { 200, 1058, 979, 116},
[1058] = { 300, 1059, 980, 116},
[1059] = { 400, 1060, 981, 116},
[1060] = { 500, 1061, 982, 116},
[1061] = { 600, 1062, 983, 114},
[1062] = { 700, 1063, 789, 114},
[1063] = { 800, 1064, 790, 114},

-- LIQUIIR
[1065] = { 50, 1066, 765, 114},
[1066] = { 100, 1067, 766, 114},
[1067] = { 150, 1068, 767, 114},
[1068] = { 200, 1069, 768, 114},
[1069] = { 200, 1070, 768, 114},
[1070] = { 50, 1071, 766, 114},
[1071] = { 100, 1072, 767, 114},
[1072] = { 150, 1073, 768, 114},
[1073] = { 200, 1074, 769, 114},
[1074] = { 400, 1075, 770, 114},
[1075] = { 600, 1076, 770, 114},
[1076] = { 800, 1077, 771, 114}




}

function onSay(cid, words, param, channel)
local storage = 157
local waittime = 1

if exhaustion.check(cid, storage) then
doPlayerSendCancel(cid, "Aguarde, você não pode transformar tão rapido!")
return false
end

exhaustion.set(cid, storage, waittime)


local voc = config[getPlayerVocation(cid)]
if voc then
if getPlayerLevel(cid) >= voc[1] then
doPlayerSetVocation(cid, voc[2])
doCreatureSay(cid, "AHHHH!!!", 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 é possível se transformar.")
end


return true
end 

 

Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui. 

 

Link to post
Share on other sites

Spoiler

local storageID = 40400 -- Inserir aqui a sua storage personalizada
local config = {
--[vocation id] = { level, nova voc, looktype, efeito}
-- Goku
[1] = { 25, 2, 6, 112},

-- Vegeta
[14] = { 25, 15, 22, 114},

-- Piccolo
[27] = { 25, 28, 34, 111},

-- C17
[40] = { 25, 41, 47, 34},

-- FUTURE TRUNKS
--[vocation id] = { level, nova voc, transform, efeito}
[53] = { 25, 54, 74, 114},
[54] = { 50, 55, 70, 114},
[55] = { 75, 56, 72, 114},
[56] = { 100, 57, 73, 114},
[57] = { 150, 58, 75, 114},
[58] = { 200, 59, 964, 114},
[59] = { 300, 60, 962, 114},
[60] = { 400, 61, 968, 114},
[61] = { 500, 62, 966, 114},
[62] = { 600, 63, 965, 114},
[63] = { 700, 64, 967, 114},
[64] = { 800, 65, 539, 114},


-- CELL
--[vocation id] = { level, nova voc, transform, efeito}
[66] = { 25, 67, 1005, 521},
[67] = { 50, 68, 82, 521},
[68] = { 75, 69, 83, 521},
[69] = { 100, 70, 85, 521},
[70] = { 150, 771, 84, 521},
[771] = { 200, 72, 1005, 521},
[72] = { 300, 73, 1006, 521},
[73] = { 400, 74, 1007, 521},
[74] = { 500, 75, 600, 521},
[75] = { 600, 76, 86, 521},
[76] = { 700, 77, 87, 521},
[77] = { 800, 78, 1010, 521},


-- Freeza
--[vocation id] = { level, nova voc, transform, efeito}
[79] = { 25, 80, 89, 123},
[80] = { 50, 81, 90, 512},
[81] = { 75, 82, 91, 513},
[82] = { 100, 83, 92, 514},
[83] = { 150, 84, 92, 514},
[84] = { 200, 85, 93, 123},
[85] = { 300, 86, 94, 512},
[86] = { 400, 87, 95, 513},
[87] = { 500, 88, 582, 514},
[88] = { 600, 89, 96, 514},
[89] = { 700, 90, 847, 514},
[90] = { 800, 91, 584, 514},

-- Majim Boo
--[vocation id] = { level, nova voc, transform, efeito}
[92] = { 25, 93, 1056, 14},
[93] = { 50, 94, 1055, 14},
[94] = { 75, 95, 1061, 14},
[95] = { 100, 96, 1060, 14},
[96] = { 150, 97, 100, 14},
[97] = { 200, 98, 101, 14},
[98] = { 300, 99, 102, 14},
[99] = { 400, 100, 104, 14},
[100] = { 500, 101, 602, 14},
[101] = { 600, 102, 105, 14},
[102] = { 700, 103, 107, 483},
[103] = { 800, 104, 106, 483},

-- BROLLY
--[vocation id] = { level, nova voc, transform, efeito}
[105] = { 25, 106, 113, 126},
[106] = { 50, 107, 114, 126},
[107] = { 75, 108, 110, 126},
[108] = { 100, 109, 109, 126},
[109] = { 150, 110, 115, 126},
[110] = { 200, 111, 110, 126},
[111] = { 300, 112, 111, 126},
[112] = { 400, 113, 112, 126},
[113] = { 500, 114, 116, 126},
[114] = { 600, 115, 119, 126},
[115] = { 700, 116, 120, 126},
[116] = { 800, 117, 1084, 126},

-- C18
--[vocation id] = { level, nova voc, transform, efeito}
[118] = { 25, 119, 121, 117},
[119] = { 50, 120, 122, 117},
[120] = { 75, 121, 125, 117},
[121] = { 100, 122, 126, 117},
[122] = { 150, 123, 125, 117},
[123] = { 200, 124, 123, 117},
[124] = { 300, 125, 124, 117},
[125] = { 400, 126, 124, 117},
[126] = { 500, 127, 126, 117},
[127] = { 600, 128, 127, 117},
[128] = { 700, 129, 606, 117},
[129] = { 800, 130, 538, 117},

-- UUB
--[vocation id] = { level, nova voc, transform, efeito}
[131] = { 25, 132, 128, 14},
[132] = { 50, 133, 129, 14},
[133] = { 75, 134, 130, 14},
[134] = { 100, 135, 131, 14},
[135] = { 150, 136, 132, 14},
[136] = { 200, 137, 131, 14},
[137] = { 300, 138, 132, 14},
[138] = { 400, 139, 129, 14},
[139] = { 500, 140, 133, 14},
[140] = { 600, 141, 133, 14},
[141] = { 700, 142, 603, 483},
[142] = { 800, 143, 134, 483},

-- COOLA
--[vocation id] = { level, nova voc, transform, efeito}
[144] = { 25, 145, 153, 444},
[145] = { 50, 146, 155, 444},
[146] = { 75, 147, 154, 444},
[147] = { 100, 148, 156, 444},
[148] = { 150, 149, 157, 444},
[149] = { 200, 150, 158, 444},
[150] = { 300, 151, 160, 444},
[151] = { 400, 152, 162, 444},
[152] = { 500, 153, 161, 444},
[153] = { 600, 154, 159, 444},
[154] = { 700, 155, 532, 444},
[155] = { 800, 156, 846, 444},


-- DENDE
[157] = { 25, 158, 165, 117},
[158] = { 50, 159, 166, 117},
[159] = { 75, 160, 167, 117},
[160] = { 100, 161, 169, 117},
[161] = { 150, 162, 170, 117},
[162] = { 200, 163, 168, 117},
[163] = { 300, 164, 171, 117},
[164] = { 400, 165, 172, 117},
[165] = { 500, 166, 173, 117},
[166] = { 600, 167, 535, 117},
[167] = { 700, 168, 585, 117},
[168] = { 800, 169, 1011, 117},

-- TSUFUR
[170] = { 25, 171, 175, 117},
[171] = { 50, 172, 177, 117},
[172] = { 75, 173, 176, 117},
[173] = { 100, 174, 178, 117},
[174] = { 150, 175, 184, 117},
[175] = { 200, 176, 179, 117},
[176] = { 300, 177, 182, 117},
[177] = { 400, 178, 183, 117},
[178] = { 500, 179, 185, 117},
[179] = { 600, 180, 186, 117},
[180] = { 700, 181, 187, 117},
[181] = { 800, 182, 549, 117},


-- BARDOCK
[183] = { 25, 184, 189, 117},
[184] = { 50, 185, 188, 117},
[185] = { 75, 186, 192, 117},
[186] = { 100, 187, 190, 117},
[187] = { 150, 188, 191, 117},
[188] = { 200, 189, 194, 117},
[189] = { 300, 190, 195, 117},
[190] = { 400, 191, 196, 117},
[191] = { 500, 192, 197, 117},
[192] = { 600, 193, 198, 117},
[193] = { 700, 194, 198, 117},
[194] = { 800, 195, 199, 117},

-- KURIRIN
[196] = { 25, 197, 200, 117},
[197] = { 50, 198, 202, 117},
[198] = { 75, 199, 201, 117},
[199] = { 100, 200, 205, 117},
[200] = { 150, 201, 206, 117},
[201] = { 200, 202, 203, 117},
[202] = { 300, 203, 204, 117},
[203] = { 400, 204, 207, 117},
[204] = { 500, 205, 208, 117},
[205] = { 600, 206, 209, 117},
[206] = { 700, 207, 542, 117},
[207] = { 800, 208, 1063, 117},

-- PAN
[209] = { 25, 210, 210, 117},
[210] = { 50, 211, 211, 117},
[211] = { 75, 212, 212, 117},
[212] = { 100, 213, 213, 117},
[213] = { 150, 214, 214, 117},
[214] = { 200, 215, 214, 117},
[215] = { 300, 216, 215, 117},
[216] = { 400, 217, 216, 117},
[217] = { 500, 218, 543, 117},
[218] = { 600, 219, 218, 117},
[219] = { 700, 220, 217, 117},
[220] = { 800, 221, 918, 117},


-- KAIOHSHIN
[222] = { 25, 223, 219, 117},
[223] = { 50, 224, 220, 117},
[224] = { 75, 225, 221, 117},
[225] = { 100, 226, 222, 117},
[226] = { 150, 227, 225, 117},
[227] = { 200, 228, 226, 117},
[228] = { 300, 229, 932, 117},
[229] = { 400, 230, 933, 117},
[230] = { 500, 231, 934, 117},
[231] = { 600, 232, 935, 117},
[232] = { 700, 233, 936, 117},
[233] = { 800, 234, 937, 117},

-- JANEMBA
[429] = { 25, 235, 234, 117},
[235] = { 50, 236, 235, 117},
[236] = { 75, 237, 236, 117},
[237] = { 100, 238, 237, 117},
[238] = { 150, 239, 238, 117},
[239] = { 200, 240, 239, 117},
[240] = { 300, 241, 867, 117},
[241] = { 400, 242, 240, 117},
[242] = { 200, 243, 868, 117},
[243] = { 400, 244, 869, 117},
[244] = { 600, 245, 866, 117},
[245] = { 800, 246, 870, 117},

-- TENSHINHAN
[247] = { 25, 248, 242, 117},
[248] = { 50, 249, 244, 117},
[249] = { 75, 250, 243, 117},
[250] = { 100, 251, 245, 117},
[251] = { 150, 252, 246, 117},
[252] = { 200, 253, 247, 117},
[253] = { 300, 254, 248, 117},
[254] = { 400, 255, 249, 117},
[255] = { 500, 256, 251, 117},
[256] = { 600, 257, 250, 117},
[257] = { 700, 258, 591, 117},
[258] = { 800, 259, 1064, 117},

-- RADITZ
[260] = { 25, 261, 264, 117},
[261] = { 50, 262, 258, 117},
[262] = { 75, 263, 265, 117},
[263] = { 100, 264, 267, 117},
[264] = { 150, 265, 266, 117},
[265] = { 200, 266, 268, 117},
[266] = { 300, 267, 268, 117},
[267] = { 400, 268, 269, 117},
[268] = { 500, 269, 269, 117},
[269] = { 600, 270, 270, 117},
[270] = { 700, 271, 270, 117},
[271] = { 800, 272, 271, 117},
  
-- C16
[273] = { 25, 274, 272, 117},
[274] = { 50, 275, 273, 117},
[275] = { 75, 276, 277, 117},
[276] = { 100, 277, 274, 117},
[277] = { 150, 278, 275, 117},
[278] = { 200, 279, 276, 117},
[279] = { 300, 280, 278, 117},
[280] = { 400, 281, 278, 117},
[281] = { 500, 282, 279, 117},
[282] = { 600, 283, 279, 117},
[283] = { 700, 284, 540, 117},
[284] = { 800, 285, 541, 117},

-- TURLES
[286] = { 25, 287, 281, 117},
[287] = { 50, 288, 285, 117},
[288] = { 75, 289, 287, 117},
[289] = { 100, 290, 288, 117},
[290] = { 150, 291, 282, 117},
[291] = { 200, 292, 283, 117},
[292] = { 300, 293, 280, 117},
[293] = { 400, 294, 284, 117},
[294] = { 500, 295, 598, 117},
[295] = { 600, 296, 289, 117},
[296] = { 700, 297, 290, 117},
[297] = { 800, 298, 291, 117},

-- BULMA
[299] = { 25, 300, 292, 117},
[300] = { 50, 301, 293, 117},
[301] = { 75, 302, 294, 117},
[302] = { 100, 303, 295, 117},
[303] = { 150, 304, 296, 117},
[304] = { 200, 305, 297, 117},
[305] = { 300, 306, 298, 117},
[306] = { 400, 307, 299, 117},
[307] = { 500, 308, 299, 117},
[308] = { 600, 309, 599, 117},
[309] = { 700, 310, 300, 117},
[310] = { 800, 311, 301, 117},

-- SHENRON
[312] = { 25, 313, 302, 117},
[313] = { 50, 314, 1057, 117},
[314] = { 75, 315, 927, 117},
[315] = { 100, 316, 928, 117},
[316] = { 150, 317, 1057, 117},
[317] = { 200, 318, 1059, 117},
[318] = { 300, 319, 305, 117},
[319] = { 400, 320, 306, 117},
[320] = { 500, 321, 1059, 117},
[321] = { 600, 322, 1058, 117},
[322] = { 700, 323, 930, 117},
[323] = { 800, 324, 931, 117},

-- VEGETTO
[325] = { 25, 326, 308, 117},
[326] = { 50, 327, 309, 117},
[327] = { 75, 328, 309, 117},
[328] = { 100, 329, 310, 117},
[329] = { 150, 330, 311, 117},
[330] = { 200, 331, 311, 117},
[331] = { 300, 332, 312, 117},
[332] = { 400, 333, 312, 117},
[333] = { 500, 334, 313, 117},
[334] = { 600, 335, 568, 117},
[335] = { 700, 336, 314, 117},
[336] = { 800, 337, 315, 117},

-- TAPION
[338] = { 25, 339, 950, 117},
[339] = { 50, 340, 951, 117},
[340] = { 75, 341, 952, 117},
[341] = { 100, 342, 953, 117},
[342] = { 150, 343, 954, 117},
[343] = { 200, 344, 955, 117},
[344] = { 300, 345, 949, 117},
[345] = { 400, 346, 946, 117},
[346] = { 500, 347, 947, 117},
[347] = { 600, 348, 328, 117},
[348] = { 700, 349, 959, 117},
[349] = { 800, 350, 958, 117},

-- KAME
[351] = { 25, 352, 330, 117},
[352] = { 50, 353, 333, 117},
[353] = { 75, 354, 331, 117},
[354] = { 100, 355, 332, 117},
[355] = { 150, 356, 336, 117},
[356] = { 200, 357, 335, 117},
[357] = { 300, 358, 334, 117},
[358] = { 400, 359, 337, 117},
[359] = { 500, 360, 338, 117},
[360] = { 600, 361, 339, 117},
[361] = { 700, 362, 340, 117},
[362] = { 800, 363, 341, 117},


-- KAGOME
[364] = { 25, 365, 353, 117},
[365] = { 50, 366, 354, 117},
[366] = { 75, 367, 355, 117},
[367] = { 100, 368, 356, 117},
[368] = { 150, 369, 358, 117},
[369] = { 200, 370, 359, 117},
[370] = { 300, 371, 360, 117},
[371] = { 400, 372, 360, 117},
[372] = { 500, 373, 357, 117},
[373] = { 600, 374, 357, 117},
[374] = { 700, 375, 361, 117},
[375] = { 800, 376, 362, 117},

-- ZAIKO
[377] = { 25, 378, 991, 117},
[378] = { 50, 379, 992, 117},
[379] = { 75, 380, 993, 117},
[380] = { 100, 381, 994, 117},
[381] = { 150, 382, 995, 117},
[382] = { 200, 383, 996, 117},
[383] = { 300, 384, 997, 117},
[384] = { 400, 385, 998, 117},
[385] = { 500, 386, 999, 117},
[386] = { 600, 387, 1000, 117},
[387] = { 700, 388, 1001, 117},
[388] = { 800, 389, 1002, 117},


-- CHILLED
[390] = { 25, 391, 375, 117},
[391] = { 50, 392, 840, 117},
[392] = { 75, 393, 841, 117},
[393] = { 100, 394, 842, 117},
[394] = { 150, 395, 376, 117},
[395] = { 200, 396, 377, 117},
[396] = { 300, 397, 378, 117},
[397] = { 400, 398, 379, 117},
[398] = { 500, 399, 380, 117},
[399] = { 600, 400, 382, 117},
[400] = { 700, 401, 576, 117},
[401] = { 800, 402, 845, 117},

-- C8
[403] = { 25, 404, 512, 117},
[404] = { 50, 405, 513, 117},
[405] = { 75, 406, 514, 117},
[406] = { 100, 407, 515, 117},
[407] = { 150, 408, 516, 117},
[408] = { 200, 409, 517, 117},
[409] = { 300, 410, 518, 117},
[410] = { 400, 411, 519, 117},
[411] = { 500, 412, 520, 117},
[412] = { 600, 413, 521, 117},
[413] = { 700, 414, 522, 117},
[414] = { 800, 415, 523, 117},


-- FROST
[416] = { 25, 417, 713, 117},
[417] = { 50, 418, 714, 117},
[418] = { 75, 419, 714, 117},
[419] = { 100, 420, 715, 117},
[420] = { 150, 421, 715, 117},
[421] = { 200, 422, 716, 117},
[422] = { 300, 423, 717, 117},
[423] = { 400, 424, 718, 117},
[424] = { 500, 425, 719, 117},
[425] = { 600, 426, 720, 117},
[426] = { 700, 427, 719, 117},
[427] = { 800, 428, 721, 117},

-- BILLS
[1000] = { 25, 1001, 625, 113},
[1001] = { 50, 1002, 622, 113},
[1002] = { 75, 1003, 624, 113},
[1003] = { 100, 1004, 623, 113},
[1004] = { 150, 1005, 624, 113},
[1005] = { 200, 1006, 626, 113},
[1006] = { 300, 1007, 619, 113},
[1007] = { 400, 1008, 618, 113},
[1008] = { 500, 1009, 617, 113},
[1009] = { 600, 1010, 616, 113},
[1010] = { 700, 1011, 615, 113},
[1011] = { 800, 1012, 614, 113},

-- CHAMPA
[1013] = { 25, 1014, 984, 113},
[1014] = { 50, 1015, 985, 113},
[1015] = { 75, 1016, 986, 113},
[1016] = { 100, 1017, 986, 113},
[1017] = { 150, 1018, 986, 113},
[1018] = { 200, 1019, 985, 113},
[1019] = { 300, 1020, 985, 113},
[1020] = { 400, 1021, 986, 113},
[1021] = { 500, 1022, 986, 113},
[1022] = { 600, 1023, 987, 113},
[1023] = { 700, 1024, 988, 113},
[1024] = { 800, 1025, 989, 113},

-- Gin
[1026] = { 50, 1027, 668, 115},
[1027] = { 100, 1028, 669, 115},
[1028] = { 150, 1029, 670, 115},
[1029] = { 200, 1030, 671, 115},
[1030] = { 200, 1031, 672, 115},
[1031] = { 50, 1032, 672, 115},
[1032] = { 100, 1033, 671, 115},
[1033] = { 150, 1034, 672, 115},
[1034] = { 200, 1035, 673, 115},
[1035] = { 400, 1036, 675, 115},
[1036] = { 600, 1037, 676, 115},
[1037] = { 800, 1038, 674, 112},

-- KITERA
[1039] = { 50, 1040, 746, 114},
[1040] = { 100, 1041, 748, 114},
[1041] = { 150, 1042, 749, 114},
[1042] = { 200, 1043, 749, 114},
[1043] = { 200, 1044, 749, 114},
[1044] = { 50, 1045, 746, 114},
[1045] = { 100, 1046, 748, 114},
[1046] = { 150, 1047, 749, 114},
[1047] = { 200, 1048, 750, 114},
[1048] = { 400, 1049, 751, 114},
[1049] = { 600, 1050, 752, 114},
[1050] = { 800, 1051, 745, 114},

-- VERMODO
[1052] = { 25, 1053, 979, 116},
[1053] = { 50, 1054, 980, 116},
[1054] = { 75, 1055, 981, 116},
[1055] = { 100, 1056, 982, 116},
[1056] = { 150, 1057, 982, 116},
[1057] = { 200, 1058, 979, 116},
[1058] = { 300, 1059, 980, 116},
[1059] = { 400, 1060, 981, 116},
[1060] = { 500, 1061, 982, 116},
[1061] = { 600, 1062, 983, 114},
[1062] = { 700, 1063, 789, 114},
[1063] = { 800, 1064, 790, 114},

-- LIQUIIR
[1065] = { 50, 1066, 765, 114},
[1066] = { 100, 1067, 766, 114},
[1067] = { 150, 1068, 767, 114},
[1068] = { 200, 1069, 768, 114},
[1069] = { 200, 1070, 768, 114},
[1070] = { 50, 1071, 766, 114},
[1071] = { 100, 1072, 767, 114},
[1072] = { 150, 1073, 768, 114},
[1073] = { 200, 1074, 769, 114},
[1074] = { 400, 1075, 770, 114},
[1075] = { 600, 1076, 770, 114},
[1076] = { 800, 1077, 771, 114}
}

function onSay(cid, words, param, channel)
local storage = 157
local waittime = 1

if getPlayerStorage(storageID) >= 1 then
 
if exhaustion.check(cid, storage) then
doPlayerSendCancel(cid, "Aguarde, você não pode transformar tão rapido!")
return false
end

exhaustion.set(cid, storage, waittime)


local voc = config[getPlayerVocation(cid)]
if voc then
if getPlayerLevel(cid) >= voc[1] then
doPlayerSetVocation(cid, voc[2])
doCreatureSay(cid, "AHHHH!!!", 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 é possível se transformar.")
end
    
else
	doPlayerSendCancel(cid, 'Você ainda não pode se transformar')
end
 
return true
end 

 

 

Edited by EddyHavoc
Adicionando o código em Spoiler (see edit history)
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Similar Content

    • By Crema
      .Qual servidor ou website você utiliza como base? 
      Otserv Global 12.6
      Qual o motivo deste tópico? 
      Fala pessoal, criei 4 novas promotions no meu Ot server, porém quando o player entra nessas novas promotions simplesmente ele não consegue mais usar as armas anteriores.
      Eu dei uma boa pesquisada na internet, não sei se estou procurando da forma correta, fiz a alteração no script (/home/otbr/data/scripts/unscripted_weapons.lua) adicionando as novas promotions porém mesmo assim não consigo acessa-las através das novas promotions.
      Eu acho estranho, provavelmente estou mexendo no lugar errado, se não eu teria que alterar TODOS os itens do jogo incluindo uma a uma as novas promotions. Mas confesso que já revirei todas as pastas aqui e não localizo onde pode ser.
       
      Alguem para me dar uma luz?
      Está surgindo algum erro? Se sim coloque-o aqui. 
       
      Você tem o código disponível? Se tiver publique-o aqui: 
        { itemId = 2187, type = WEAPON_WAND, wandType = "fire", level = 33, mana = 8, damage = {56, 74}, vocation = { {"Sorcerer", true}, {"Master Sorcerer"} {"Epic Master Sorcerer"} } }, -- wand of inferno  
      Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui. 
       
    • By Helviiozin
      .Qual servidor ou website você utiliza como base? 
      OTX2 / TFS 0.4 
       
      Qual o motivo deste tópico? 
       
      Está surgindo algum erro? Se sim coloque-o aqui. 
       
      Você tem o código disponível? Se tiver publique-o aqui: 
       
       
      Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui. 
       
      Salve ! Gostaria de pedir ajuda  com uma coisa ... eu não estou conseguindo dar um clear na area do boss ... "EXEMPLO"  se eu entro  e não consigo matar o boss ... ao entrar de novo terá 2 boss ... Outro problema é fazer uma checagem ... se existir algum player fazendo a boss room  o outro player que puxar a alavanca consegue descer gostaria de bloquear isso com uma mensagem que esta ocupado ... e o ultimo problema é adicionar um tempo para que o player ou os players que fizerem esta boss room só possam fazer novamente após 12 horas ...  e também adicionar um tempo X para que o player ou os players possam fazer o boss se não conseguirem serão kickados para fora da sala   estou  a dias procurando uma solução e enchendo o saco de muita gente pra fazer isso dar certo ...
       
       
       
       

    • By Gran
      Boa noite pessoal! Preciso de uma espécie de arena ativada a partir de um NPC que teletransporta o player para o local! O NPC já tenho e está funcionando perfeitamente:
      Precisaria realmente da parte relacionada a arena em si e queria ela da seguinte forma se possível:
      Assim que o player paga o npc ele é teletransportado e a arena inicia, um monstro por vez que spawna o proximo quando é morto. A cada monstro que é morto o player recebe uma recompensa em dinheiro que vai dobrando, assim como uma quantidade X de xp. Já encontrei alguns scripts de arena, mas nao consegui adaptar para o que quero pois sou iniciante. Ficarei muito grato com qualquer ajuda! Muito obrigado.
    • By gmxunior
      Olá galera boa tarde!
      tudo bem com vocês?
      estou com problema no mod desert war!
       
      ele está funcionando perfeitamente, unico problema é que quem perde é quem ganha os premios.
       
      será que alguem pode me ajuda?
       
      meu script é esse:
       
    • By Pedro quinca
      Ultilizo um servidor 854.
       
      Estou criando um script do "alohomora", ele é muito simples.O palyer clica em em um item (porta), essa porta é transformada (aberta).O meu problema está sendo em conseguir que essa prota se feche sozinha automaticamente depois de um tempo, estou tentando fazer por addevent, mas não ta dando certo.
       
      Codigo:
       
      Você tem o código disponível? Se tiver publique-o aqui: 
         
      Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui. 
       
  • Recently Browsing   0 members

    No registered users viewing this page.


×
×
  • Create New...

Important Information

Confirmação de Termo