Ir para conteúdo
  • Cadastre-se

Derivado [TFS 0.4] Editar script para tais effect ter como configurar


Posts Recomendados

Eae galera blz ? Eu queria pedir a ajudar de vocês para editar essa script aki

Spoiler

local effects = {
--_GOKU_--
[4] = 106,
[5] = 85,
[6] = 106,
[8] = 87,

[13] = 84,
[14] = 84,
[15] = 89,
[16] = 244,
[473] = 115,

--_VEGETA_--
[21] = 85,
[22] = 106,
[23] = 106,

[28] = 84,
[29] = 84,
[30] = 89,
[31] = 244,
[474] = 41,

--_PICCOLO_--
[34] = 109,

[39] = 104,
[41] = 88,
[43] = 88,
[44] = 104,

--_C17_--
[49] = 87,

[51] = 84,
[52] = 93,
[54] = 87,
[55] = 90,
[56] = 96,

--_GOHAN_--
[60] = 106,

[68] = 84,
[69] = 89,
[70] = 90,

--_TRUNKS_--
[75] = 85,

[79] = 85,
[80] = 84,
[81] = 89,
[82] = 90,
[490] = 244,

--_CELL_--
[88] = 107,
[89] = 104,
[90] = 104,
[91] = 106,
[92] = 104,
[93] = 89,
[94] = 71,

--_FREEZA_--
[102] = 84,
[103] = 84,
[104] = 84,
[105] = 84,
[106] = 84,
[107] = 84,
[108] = 84,
[109] = 89,
[110] = 113,

--_MAJIN BOO_--
[118] = 109,
[119] = 92,
[120] = 92,
[121] = 105,
[122] = 92,
[123] = 92,
[124] = 91,
[125] = 91,
[126] = 101,
[475] = 89,

--_BROLY_--
[131] = 85,

[135] = 98,
[136] = 84,
[137] = 84,
[138] = 89,
[139] = 244,

--_C18_--
[144] = 87,

[146] = 87,
[147] = 93,
[149] = 87,
[150] = 86,
[151] = 90,

--_UUB_--
[156] = 84,

[157] = 84,
[158] = 84,
[159] = 84,
[160] = 84,
[161] = 96,
[162] = 89,
[163] = 90,

--_GOTEN_--
[169] = 106,
[170] = 85,

[174] = 85,
[175] = 85,
[176] = 90,
[177] = 84,

--_CHIBI TRUNKS_--
[183] = 106,
[184] = 85,

[188] = 85,
[189] = 85,
[190] = 90,
[191] = 84,

--_COOLER_--
[198] = 86,
[199] = 86,
[200] = 86,
[201] = 87,
[202] = 89,
[203] = 86,
[204] = 85,
[493] = 90,
[205] = 96,

--_DENDE_--
[215] = 88,
[216] = 102,
[217] = 240,

--_TSUFUL_--
[219] = 84,
[220] = 87,
[221] = 84,
[222] = 84,

[223] = 84,
[224] = 84,
[227] = 96,
[228] = 89,
[229] = 96,

--_BARDOCK_--
[235] = 85,

[237] = 109,
[238] = 106,
[239] = 85,
[240] = 84,
[241] = 84,
[242] = 89,
[243] = 90,

--_KURIRIN_--
[250] = 107,
[252] = 107,
[253] = 84,
[254] = 89,
[255] = 89,

--_PAN_--
[260] = 87,

[261] = 107,
[262] = 106,
[263] = 106,
[264] = 84,
[265] = 84,
[266] = 89,
[267] = 90,

--_KAIO_--
[272] = 86,

[273] = 91,
[274] = 86,
[276] = 86,
[277] = 86,
[278] = 86,
[279] = 90,

--_VIDEL_--
[285] = 106,
[286] = 106,
[287] = 106,
[288] = 106,
[289] = 87,
[290] = 87,
[291] = 41,

--_JANEMBA_--
[297] = 84,
[298] = 84,
[299] = 110,
[300] = 84,
[301] = 84,
[302] = 86,
[303] = 90,
[491] = 89,

--_TENSHINHAN_--
[307] = 107,
[308] = 107,

[310] = 107,
[312] = 85,
[313] = 84,
[314] = 108,
[315] = 108,

--_JENK_--
[322] = 109,
[325] = 84,
[326] = 87,
[327] = 98,

--_RADITZ_--
[332] = 85,

[333] = 106,
[334] = 106,
[335] = 106,
[336] = 85,
[337] = 84,
[338] = 89,
[339] = 90,

--_C16_--
[344] = 106,

[346] = 88,
[347] = 95,
[348] = 106,
[349] = 97,
[350] = 98,
[351] = 96,

--_TURLES_--
[355] = 106,
[356] = 87,

[358] = 94,
[360] = 106,
[361] = 84,
[362] = 89,
[363] = 90,

--_BULMA_--
[368] = 87,

[371] = 106,
[372] = 87,
[373] = 84,
[374] = 87,
[375] = 89,

--_SHENRON_--
[380] = 89,

[381] = 89,
[382] = 87,
[383] = 85,
[384] = 89,
[385] = 90,
[386] = 84,
[387] = 84,

--_VEGETTO_--
[390] = 106,
[392] = 85,

[393] = 106,
[394] = 106,
[395] = 85,
[396] = 85,
[397] = 84,
[398] = 89,
[399] = 244,

--_TAPION_--
[404] = 84,

[405] = 96,
[406] = 96,
[409] = 87,
[410] = 87,
[411] = 84,
[412] = 90,
[476] = 89,

--_KAME_--
[423] = 89,
[424] = 85,

--_KING VEGETA_--
[429] = 85,

[432] = 85,
[434] = 89,
[435] = 84,
[436] = 84,

--_KAGOME_--
[440] = 106,
[441] = 85,

[445] = 106,
[446] = 244,
[447] = 84,
[448] = 115,

--_ZAIKO_--
[451] = 106,
[452] = 106,
[453] = 98,

[455] = 85,
[456] = 85,
[457] = 106,
[458] = 88,
[459] = 96,
[460] = 96,
[477] = 90,

--_CHILLED_--
[466] = 84,
[467] = 84,
[468] = 84,
[469] = 84,
[470] = 105,
[471] = 96,
[472] = 86,
[492] = 89,

--_C8_--
[480] = 106,
[481] = 106,
[482] = 89,
[483] = 106,
[545] = 105,
[557] = 114,
[486] = 97,
[487] = 244,
[488] = 98,
[489] = 96,
[569] = 102,
[581] = 101,
[593] = 99,
[606] = 90,
[607] = 90,
[633] = 90,
[608] = 90,
[633] = 102,
[645] = 90,
[657] = 90,
[669] = 41,
[670] = 90,
[671] = 90,
[673] = 115,
[699] = 104,
[712] = 90,
[713] = 90,
[711] = 90,
[687] = 115,
[674] = 116,
[675] = 108,
[672] = 90,
[726] = 90,
[738] = 90,
[750] = 113,
[751] = 90,
[752] = 90,
[754] = 24,
[753] = 100,
[766] = 90,
[767] = 115,
[768] = 115,
[769] = 115,
[770] = 115,
[806] = 98,
[794] = 102,
[782] = 93,
[818] = 105,
[830] = 105,
[842] = 104,
[847] = 90,
[849] = 90,
[850] = 90,
[848] = 90,
[851] = 98,
[852] = 104,
[854] = 98,
[855] = 101,
[856] = 108,
[853] = 100,
[868] = 107,
[880] = 98,
[846] = 90,
[881] = 90,
[882] = 90,
[883] = 90,
[884] = 90,
[885] = 90,
[886] = 90,
[887] = 90,
[888] = 90,
[889] = 90,
[890] = 90,
[891] = 90,
[892] = 90,
[893] = 90,
[894] = 90,
[895] = 90,
[896] = 90,
[897] = 90,
[898] = 90,
[899] = 41,
[900] = 41,
[913] = 90,
[914] = 41,
[915] = 41,
[916] = 41,
[917] = 41,


--_Goku God_--
[521] = 24
}

function onThink(interval)
    for _, pid in ipairs(getPlayersOnline()) do
        local effect = effects[getPlayerVocation(pid)]
        if(effect) then
            doSendMagicEffect(getCreaturePos(pid), effect)
        end
    end

    return true
end

Para que poça ter como eu configurar alguns effect onde sair, por que tem alguns effect que fica do lado do player, ae eu queria saber se tem como mudar apenas eles para sair certo, será que alguém pode min ajudar.

Link para o post
Compartilhar em outros sites
2 horas atrás, Wase Wiss disse:

Eae galera blz ? Eu queria pedir a ajudar de vocês para editar essa script aki

  Ocultar conteúdo

local effects = {
--_GOKU_--
[4] = 106,
[5] = 85,
[6] = 106,
[8] = 87,

[13] = 84,
[14] = 84,
[15] = 89,
[16] = 244,
[473] = 115,

--_VEGETA_--
[21] = 85,
[22] = 106,
[23] = 106,

[28] = 84,
[29] = 84,
[30] = 89,
[31] = 244,
[474] = 41,

--_PICCOLO_--
[34] = 109,

[39] = 104,
[41] = 88,
[43] = 88,
[44] = 104,

--_C17_--
[49] = 87,

[51] = 84,
[52] = 93,
[54] = 87,
[55] = 90,
[56] = 96,

--_GOHAN_--
[60] = 106,

[68] = 84,
[69] = 89,
[70] = 90,

--_TRUNKS_--
[75] = 85,

[79] = 85,
[80] = 84,
[81] = 89,
[82] = 90,
[490] = 244,

--_CELL_--
[88] = 107,
[89] = 104,
[90] = 104,
[91] = 106,
[92] = 104,
[93] = 89,
[94] = 71,

--_FREEZA_--
[102] = 84,
[103] = 84,
[104] = 84,
[105] = 84,
[106] = 84,
[107] = 84,
[108] = 84,
[109] = 89,
[110] = 113,

--_MAJIN BOO_--
[118] = 109,
[119] = 92,
[120] = 92,
[121] = 105,
[122] = 92,
[123] = 92,
[124] = 91,
[125] = 91,
[126] = 101,
[475] = 89,

--_BROLY_--
[131] = 85,

[135] = 98,
[136] = 84,
[137] = 84,
[138] = 89,
[139] = 244,

--_C18_--
[144] = 87,

[146] = 87,
[147] = 93,
[149] = 87,
[150] = 86,
[151] = 90,

--_UUB_--
[156] = 84,

[157] = 84,
[158] = 84,
[159] = 84,
[160] = 84,
[161] = 96,
[162] = 89,
[163] = 90,

--_GOTEN_--
[169] = 106,
[170] = 85,

[174] = 85,
[175] = 85,
[176] = 90,
[177] = 84,

--_CHIBI TRUNKS_--
[183] = 106,
[184] = 85,

[188] = 85,
[189] = 85,
[190] = 90,
[191] = 84,

--_COOLER_--
[198] = 86,
[199] = 86,
[200] = 86,
[201] = 87,
[202] = 89,
[203] = 86,
[204] = 85,
[493] = 90,
[205] = 96,

--_DENDE_--
[215] = 88,
[216] = 102,
[217] = 240,

--_TSUFUL_--
[219] = 84,
[220] = 87,
[221] = 84,
[222] = 84,

[223] = 84,
[224] = 84,
[227] = 96,
[228] = 89,
[229] = 96,

--_BARDOCK_--
[235] = 85,

[237] = 109,
[238] = 106,
[239] = 85,
[240] = 84,
[241] = 84,
[242] = 89,
[243] = 90,

--_KURIRIN_--
[250] = 107,
[252] = 107,
[253] = 84,
[254] = 89,
[255] = 89,

--_PAN_--
[260] = 87,

[261] = 107,
[262] = 106,
[263] = 106,
[264] = 84,
[265] = 84,
[266] = 89,
[267] = 90,

--_KAIO_--
[272] = 86,

[273] = 91,
[274] = 86,
[276] = 86,
[277] = 86,
[278] = 86,
[279] = 90,

--_VIDEL_--
[285] = 106,
[286] = 106,
[287] = 106,
[288] = 106,
[289] = 87,
[290] = 87,
[291] = 41,

--_JANEMBA_--
[297] = 84,
[298] = 84,
[299] = 110,
[300] = 84,
[301] = 84,
[302] = 86,
[303] = 90,
[491] = 89,

--_TENSHINHAN_--
[307] = 107,
[308] = 107,

[310] = 107,
[312] = 85,
[313] = 84,
[314] = 108,
[315] = 108,

--_JENK_--
[322] = 109,
[325] = 84,
[326] = 87,
[327] = 98,

--_RADITZ_--
[332] = 85,

[333] = 106,
[334] = 106,
[335] = 106,
[336] = 85,
[337] = 84,
[338] = 89,
[339] = 90,

--_C16_--
[344] = 106,

[346] = 88,
[347] = 95,
[348] = 106,
[349] = 97,
[350] = 98,
[351] = 96,

--_TURLES_--
[355] = 106,
[356] = 87,

[358] = 94,
[360] = 106,
[361] = 84,
[362] = 89,
[363] = 90,

--_BULMA_--
[368] = 87,

[371] = 106,
[372] = 87,
[373] = 84,
[374] = 87,
[375] = 89,

--_SHENRON_--
[380] = 89,

[381] = 89,
[382] = 87,
[383] = 85,
[384] = 89,
[385] = 90,
[386] = 84,
[387] = 84,

--_VEGETTO_--
[390] = 106,
[392] = 85,

[393] = 106,
[394] = 106,
[395] = 85,
[396] = 85,
[397] = 84,
[398] = 89,
[399] = 244,

--_TAPION_--
[404] = 84,

[405] = 96,
[406] = 96,
[409] = 87,
[410] = 87,
[411] = 84,
[412] = 90,
[476] = 89,

--_KAME_--
[423] = 89,
[424] = 85,

--_KING VEGETA_--
[429] = 85,

[432] = 85,
[434] = 89,
[435] = 84,
[436] = 84,

--_KAGOME_--
[440] = 106,
[441] = 85,

[445] = 106,
[446] = 244,
[447] = 84,
[448] = 115,

--_ZAIKO_--
[451] = 106,
[452] = 106,
[453] = 98,

[455] = 85,
[456] = 85,
[457] = 106,
[458] = 88,
[459] = 96,
[460] = 96,
[477] = 90,

--_CHILLED_--
[466] = 84,
[467] = 84,
[468] = 84,
[469] = 84,
[470] = 105,
[471] = 96,
[472] = 86,
[492] = 89,

--_C8_--
[480] = 106,
[481] = 106,
[482] = 89,
[483] = 106,
[545] = 105,
[557] = 114,
[486] = 97,
[487] = 244,
[488] = 98,
[489] = 96,
[569] = 102,
[581] = 101,
[593] = 99,
[606] = 90,
[607] = 90,
[633] = 90,
[608] = 90,
[633] = 102,
[645] = 90,
[657] = 90,
[669] = 41,
[670] = 90,
[671] = 90,
[673] = 115,
[699] = 104,
[712] = 90,
[713] = 90,
[711] = 90,
[687] = 115,
[674] = 116,
[675] = 108,
[672] = 90,
[726] = 90,
[738] = 90,
[750] = 113,
[751] = 90,
[752] = 90,
[754] = 24,
[753] = 100,
[766] = 90,
[767] = 115,
[768] = 115,
[769] = 115,
[770] = 115,
[806] = 98,
[794] = 102,
[782] = 93,
[818] = 105,
[830] = 105,
[842] = 104,
[847] = 90,
[849] = 90,
[850] = 90,
[848] = 90,
[851] = 98,
[852] = 104,
[854] = 98,
[855] = 101,
[856] = 108,
[853] = 100,
[868] = 107,
[880] = 98,
[846] = 90,
[881] = 90,
[882] = 90,
[883] = 90,
[884] = 90,
[885] = 90,
[886] = 90,
[887] = 90,
[888] = 90,
[889] = 90,
[890] = 90,
[891] = 90,
[892] = 90,
[893] = 90,
[894] = 90,
[895] = 90,
[896] = 90,
[897] = 90,
[898] = 90,
[899] = 41,
[900] = 41,
[913] = 90,
[914] = 41,
[915] = 41,
[916] = 41,
[917] = 41,


--_Goku God_--
[521] = 24
}

function onThink(interval)
    for _, pid in ipairs(getPlayersOnline()) do
        local effect = effects[getPlayerVocation(pid)]
        if(effect) then
            doSendMagicEffect(getCreaturePos(pid), effect)
        end
    end

    return true
end

Para que poça ter como eu configurar alguns effect onde sair, por que tem alguns effect que fica do lado do player, ae eu queria saber se tem como mudar apenas eles para sair certo, será que alguém pode min ajudar.


Simples , altere a script , assim :

Spoiler

local effects = {
--_GOKU_--
[4] = 106,
[5] = 85,
[6] = 106,
[8] = 87,

[13] = 84,
[14] = 84,
[15] = 89,
[16] = 244,
[473] = 115,

--_VEGETA_--
[21] = 85,
[22] = 106,
[23] = 106,

[28] = 84,
[29] = 84,
[30] = 89,
[31] = 244,
[474] = 41,

--_PICCOLO_--
[34] = 109,

[39] = 104,
[41] = 88,
[43] = 88,
[44] = 104,

--_C17_--
[49] = 87,

[51] = 84,
[52] = 93,
[54] = 87,
[55] = 90,
[56] = 96,

--_GOHAN_--
[60] = 106,

[68] = 84,
[69] = 89,
[70] = 90,

--_TRUNKS_--
[75] = 85,

[79] = 85,
[80] = 84,
[81] = 89,
[82] = 90,
[490] = 244,

--_CELL_--
[88] = 107,
[89] = 104,
[90] = 104,
[91] = 106,
[92] = 104,
[93] = 89,
[94] = 71,

--_FREEZA_--
[102] = 84,
[103] = 84,
[104] = 84,
[105] = 84,
[106] = 84,
[107] = 84,
[108] = 84,
[109] = 89,
[110] = 113,

--_MAJIN BOO_--
[118] = 109,
[119] = 92,
[120] = 92,
[121] = 105,
[122] = 92,
[123] = 92,
[124] = 91,
[125] = 91,
[126] = 101,
[475] = 89,

--_BROLY_--
[131] = 85,

[135] = 98,
[136] = 84,
[137] = 84,
[138] = 89,
[139] = 244,

--_C18_--
[144] = 87,

[146] = 87,
[147] = 93,
[149] = 87,
[150] = 86,
[151] = 90,

--_UUB_--
[156] = 84,

[157] = 84,
[158] = 84,
[159] = 84,
[160] = 84,
[161] = 96,
[162] = 89,
[163] = 90,

--_GOTEN_--
[169] = 106,
[170] = 85,

[174] = 85,
[175] = 85,
[176] = 90,
[177] = 84,

--_CHIBI TRUNKS_--
[183] = 106,
[184] = 85,

[188] = 85,
[189] = 85,
[190] = 90,
[191] = 84,

--_COOLER_--
[198] = 86,
[199] = 86,
[200] = 86,
[201] = 87,
[202] = 89,
[203] = 86,
[204] = 85,
[493] = 90,
[205] = 96,

--_DENDE_--
[215] = 88,
[216] = 102,
[217] = 240,

--_TSUFUL_--
[219] = 84,
[220] = 87,
[221] = 84,
[222] = 84,

[223] = 84,
[224] = 84,
[227] = 96,
[228] = 89,
[229] = 96,

--_BARDOCK_--
[235] = 85,

[237] = 109,
[238] = 106,
[239] = 85,
[240] = 84,
[241] = 84,
[242] = 89,
[243] = 90,

--_KURIRIN_--
[250] = 107,
[252] = 107,
[253] = 84,
[254] = 89,
[255] = 89,

--_PAN_--
[260] = 87,

[261] = 107,
[262] = 106,
[263] = 106,
[264] = 84,
[265] = 84,
[266] = 89,
[267] = 90,

--_KAIO_--
[272] = 86,

[273] = 91,
[274] = 86,
[276] = 86,
[277] = 86,
[278] = 86,
[279] = 90,

--_VIDEL_--
[285] = 106,
[286] = 106,
[287] = 106,
[288] = 106,
[289] = 87,
[290] = 87,
[291] = 41,

--_JANEMBA_--
[297] = 84,
[298] = 84,
[299] = 110,
[300] = 84,
[301] = 84,
[302] = 86,
[303] = 90,
[491] = 89,

--_TENSHINHAN_--
[307] = 107,
[308] = 107,

[310] = 107,
[312] = 85,
[313] = 84,
[314] = 108,
[315] = 108,

--_JENK_--
[322] = 109,
[325] = 84,
[326] = 87,
[327] = 98,

--_RADITZ_--
[332] = 85,

[333] = 106,
[334] = 106,
[335] = 106,
[336] = 85,
[337] = 84,
[338] = 89,
[339] = 90,

--_C16_--
[344] = 106,

[346] = 88,
[347] = 95,
[348] = 106,
[349] = 97,
[350] = 98,
[351] = 96,

--_TURLES_--
[355] = 106,
[356] = 87,

[358] = 94,
[360] = 106,
[361] = 84,
[362] = 89,
[363] = 90,

--_BULMA_--
[368] = 87,

[371] = 106,
[372] = 87,
[373] = 84,
[374] = 87,
[375] = 89,

--_SHENRON_--
[380] = 89,

[381] = 89,
[382] = 87,
[383] = 85,
[384] = 89,
[385] = 90,
[386] = 84,
[387] = 84,

--_VEGETTO_--
[390] = 106,
[392] = 85,

[393] = 106,
[394] = 106,
[395] = 85,
[396] = 85,
[397] = 84,
[398] = 89,
[399] = 244,

--_TAPION_--
[404] = 84,

[405] = 96,
[406] = 96,
[409] = 87,
[410] = 87,
[411] = 84,
[412] = 90,
[476] = 89,

--_KAME_--
[423] = 89,
[424] = 85,

--_KING VEGETA_--
[429] = 85,

[432] = 85,
[434] = 89,
[435] = 84,
[436] = 84,

--_KAGOME_--
[440] = 106,
[441] = 85,

[445] = 106,
[446] = 244,
[447] = 84,
[448] = 115,

--_ZAIKO_--
[451] = 106,
[452] = 106,
[453] = 98,

[455] = 85,
[456] = 85,
[457] = 106,
[458] = 88,
[459] = 96,
[460] = 96,
[477] = 90,

--_CHILLED_--
[466] = 84,
[467] = 84,
[468] = 84,
[469] = 84,
[470] = 105,
[471] = 96,
[472] = 86,
[492] = 89,

--_C8_--
[480] = 106,
[481] = 106,
[482] = 89,
[483] = 106,
[545] = 105,
[557] = 114,
[486] = 97,
[487] = 244,
[488] = 98,
[489] = 96,
[569] = 102,
[581] = 101,
[593] = 99,
[606] = 90,
[607] = 90,
[633] = 90,
[608] = 90,
[633] = 102,
[645] = 90,
[657] = 90,
[669] = 41,
[670] = 90,
[671] = 90,
[673] = 115,
[699] = 104,
[712] = 90,
[713] = 90,
[711] = 90,
[687] = 115,
[674] = 116,
[675] = 108,
[672] = 90,
[726] = 90,
[738] = 90,
[750] = 113,
[751] = 90,
[752] = 90,
[754] = 24,
[753] = 100,
[766] = 90,
[767] = 115,
[768] = 115,
[769] = 115,
[770] = 115,
[806] = 98,
[794] = 102,
[782] = 93,
[818] = 105,
[830] = 105,
[842] = 104,
[847] = 90,
[849] = 90,
[850] = 90,
[848] = 90,
[851] = 98,
[852] = 104,
[854] = 98,
[855] = 101,
[856] = 108,
[853] = 100,
[868] = 107,
[880] = 98,
[846] = 90,
[881] = 90,
[882] = 90,
[883] = 90,
[884] = 90,
[885] = 90,
[886] = 90,
[887] = 90,
[888] = 90,
[889] = 90,
[890] = 90,
[891] = 90,
[892] = 90,
[893] = 90,
[894] = 90,
[895] = 90,
[896] = 90,
[897] = 90,
[898] = 90,
[899] = 41,
[900] = 41,
[913] = 90,
[914] = 41,
[915] = 41,
[916] = 41,
[917] = 41,


--_Goku God_--
[521] = 24
}

function onThink(interval)

 

local position = {x=getCreaturePosition(cid).x, y=getCreaturePosition(cid).y, z=getCreaturePosition(cid).z}


    for _, pid in ipairs(getPlayersOnline()) do
        local effect = effects[getPlayerVocation(pid)]
        if(effect) then
            doSendMagicEffect(position, effect)
        end
    end

    return true
end



Onde você irá alterar sera aqui

local position = {x=getCreaturePosition(cid).x, y=getCreaturePosition(cid).y, z=getCreaturePosition(cid).z}

Colocando +1 ou -1 na frente de cada letra , sendo assim a ordem
 

X : Para o lado , se quiser o lado direito coloque +1 e se quiser o esquerdo coloque -1 

Y : Para frente ou para baixo Coloque -1 para cima e +1 para baixo

Z : Não mecha , é o floor que acontecerá o magic effect

 
 

Editado por PedroSTT (veja o histórico de edições)

giphy.gif

Link para o post
Compartilhar em outros sites
2 minutos atrás, PedroSTT disse:


Simples , altere a script , assim :

  Ocultar conteúdo

local effects = {
--_GOKU_--
[4] = 106,
[5] = 85,
[6] = 106,
[8] = 87,

[13] = 84,
[14] = 84,
[15] = 89,
[16] = 244,
[473] = 115,

--_VEGETA_--
[21] = 85,
[22] = 106,
[23] = 106,

[28] = 84,
[29] = 84,
[30] = 89,
[31] = 244,
[474] = 41,

--_PICCOLO_--
[34] = 109,

[39] = 104,
[41] = 88,
[43] = 88,
[44] = 104,

--_C17_--
[49] = 87,

[51] = 84,
[52] = 93,
[54] = 87,
[55] = 90,
[56] = 96,

--_GOHAN_--
[60] = 106,

[68] = 84,
[69] = 89,
[70] = 90,

--_TRUNKS_--
[75] = 85,

[79] = 85,
[80] = 84,
[81] = 89,
[82] = 90,
[490] = 244,

--_CELL_--
[88] = 107,
[89] = 104,
[90] = 104,
[91] = 106,
[92] = 104,
[93] = 89,
[94] = 71,

--_FREEZA_--
[102] = 84,
[103] = 84,
[104] = 84,
[105] = 84,
[106] = 84,
[107] = 84,
[108] = 84,
[109] = 89,
[110] = 113,

--_MAJIN BOO_--
[118] = 109,
[119] = 92,
[120] = 92,
[121] = 105,
[122] = 92,
[123] = 92,
[124] = 91,
[125] = 91,
[126] = 101,
[475] = 89,

--_BROLY_--
[131] = 85,

[135] = 98,
[136] = 84,
[137] = 84,
[138] = 89,
[139] = 244,

--_C18_--
[144] = 87,

[146] = 87,
[147] = 93,
[149] = 87,
[150] = 86,
[151] = 90,

--_UUB_--
[156] = 84,

[157] = 84,
[158] = 84,
[159] = 84,
[160] = 84,
[161] = 96,
[162] = 89,
[163] = 90,

--_GOTEN_--
[169] = 106,
[170] = 85,

[174] = 85,
[175] = 85,
[176] = 90,
[177] = 84,

--_CHIBI TRUNKS_--
[183] = 106,
[184] = 85,

[188] = 85,
[189] = 85,
[190] = 90,
[191] = 84,

--_COOLER_--
[198] = 86,
[199] = 86,
[200] = 86,
[201] = 87,
[202] = 89,
[203] = 86,
[204] = 85,
[493] = 90,
[205] = 96,

--_DENDE_--
[215] = 88,
[216] = 102,
[217] = 240,

--_TSUFUL_--
[219] = 84,
[220] = 87,
[221] = 84,
[222] = 84,

[223] = 84,
[224] = 84,
[227] = 96,
[228] = 89,
[229] = 96,

--_BARDOCK_--
[235] = 85,

[237] = 109,
[238] = 106,
[239] = 85,
[240] = 84,
[241] = 84,
[242] = 89,
[243] = 90,

--_KURIRIN_--
[250] = 107,
[252] = 107,
[253] = 84,
[254] = 89,
[255] = 89,

--_PAN_--
[260] = 87,

[261] = 107,
[262] = 106,
[263] = 106,
[264] = 84,
[265] = 84,
[266] = 89,
[267] = 90,

--_KAIO_--
[272] = 86,

[273] = 91,
[274] = 86,
[276] = 86,
[277] = 86,
[278] = 86,
[279] = 90,

--_VIDEL_--
[285] = 106,
[286] = 106,
[287] = 106,
[288] = 106,
[289] = 87,
[290] = 87,
[291] = 41,

--_JANEMBA_--
[297] = 84,
[298] = 84,
[299] = 110,
[300] = 84,
[301] = 84,
[302] = 86,
[303] = 90,
[491] = 89,

--_TENSHINHAN_--
[307] = 107,
[308] = 107,

[310] = 107,
[312] = 85,
[313] = 84,
[314] = 108,
[315] = 108,

--_JENK_--
[322] = 109,
[325] = 84,
[326] = 87,
[327] = 98,

--_RADITZ_--
[332] = 85,

[333] = 106,
[334] = 106,
[335] = 106,
[336] = 85,
[337] = 84,
[338] = 89,
[339] = 90,

--_C16_--
[344] = 106,

[346] = 88,
[347] = 95,
[348] = 106,
[349] = 97,
[350] = 98,
[351] = 96,

--_TURLES_--
[355] = 106,
[356] = 87,

[358] = 94,
[360] = 106,
[361] = 84,
[362] = 89,
[363] = 90,

--_BULMA_--
[368] = 87,

[371] = 106,
[372] = 87,
[373] = 84,
[374] = 87,
[375] = 89,

--_SHENRON_--
[380] = 89,

[381] = 89,
[382] = 87,
[383] = 85,
[384] = 89,
[385] = 90,
[386] = 84,
[387] = 84,

--_VEGETTO_--
[390] = 106,
[392] = 85,

[393] = 106,
[394] = 106,
[395] = 85,
[396] = 85,
[397] = 84,
[398] = 89,
[399] = 244,

--_TAPION_--
[404] = 84,

[405] = 96,
[406] = 96,
[409] = 87,
[410] = 87,
[411] = 84,
[412] = 90,
[476] = 89,

--_KAME_--
[423] = 89,
[424] = 85,

--_KING VEGETA_--
[429] = 85,

[432] = 85,
[434] = 89,
[435] = 84,
[436] = 84,

--_KAGOME_--
[440] = 106,
[441] = 85,

[445] = 106,
[446] = 244,
[447] = 84,
[448] = 115,

--_ZAIKO_--
[451] = 106,
[452] = 106,
[453] = 98,

[455] = 85,
[456] = 85,
[457] = 106,
[458] = 88,
[459] = 96,
[460] = 96,
[477] = 90,

--_CHILLED_--
[466] = 84,
[467] = 84,
[468] = 84,
[469] = 84,
[470] = 105,
[471] = 96,
[472] = 86,
[492] = 89,

--_C8_--
[480] = 106,
[481] = 106,
[482] = 89,
[483] = 106,
[545] = 105,
[557] = 114,
[486] = 97,
[487] = 244,
[488] = 98,
[489] = 96,
[569] = 102,
[581] = 101,
[593] = 99,
[606] = 90,
[607] = 90,
[633] = 90,
[608] = 90,
[633] = 102,
[645] = 90,
[657] = 90,
[669] = 41,
[670] = 90,
[671] = 90,
[673] = 115,
[699] = 104,
[712] = 90,
[713] = 90,
[711] = 90,
[687] = 115,
[674] = 116,
[675] = 108,
[672] = 90,
[726] = 90,
[738] = 90,
[750] = 113,
[751] = 90,
[752] = 90,
[754] = 24,
[753] = 100,
[766] = 90,
[767] = 115,
[768] = 115,
[769] = 115,
[770] = 115,
[806] = 98,
[794] = 102,
[782] = 93,
[818] = 105,
[830] = 105,
[842] = 104,
[847] = 90,
[849] = 90,
[850] = 90,
[848] = 90,
[851] = 98,
[852] = 104,
[854] = 98,
[855] = 101,
[856] = 108,
[853] = 100,
[868] = 107,
[880] = 98,
[846] = 90,
[881] = 90,
[882] = 90,
[883] = 90,
[884] = 90,
[885] = 90,
[886] = 90,
[887] = 90,
[888] = 90,
[889] = 90,
[890] = 90,
[891] = 90,
[892] = 90,
[893] = 90,
[894] = 90,
[895] = 90,
[896] = 90,
[897] = 90,
[898] = 90,
[899] = 41,
[900] = 41,
[913] = 90,
[914] = 41,
[915] = 41,
[916] = 41,
[917] = 41,


--_Goku God_--
[521] = 24
}

function onThink(interval)

 

local position = {x=getCreaturePosition(cid).x, y=getCreaturePosition(cid).y, z=getCreaturePosition(cid).z}


    for _, pid in ipairs(getPlayersOnline()) do
        local effect = effects[getPlayerVocation(pid)]
        if(effect) then
            doSendMagicEffect(position, effect)
        end
    end

    return true
end



Onde você irá alterar sera aqui


local position = {x=getCreaturePosition(cid).x, y=getCreaturePosition(cid).y, z=getCreaturePosition(cid).z}

Colocando +1 ou -1 na frente de cada letra , sendo assim a ordem
 


X : Para o lado , se quiser o lado direito coloque +1 e se quiser o esquerdo coloque -1 

Y : Para frente ou para baixo Coloque -1 para cima e +1 para baixo

Z : Não mecha , é o floor que acontecerá o magic effect

 
 

Como faço para escolher o effect que eu quero ? por que esses ae fica tudo certo, mais quando eu coloco outros fica do lado do player.

Link para o post
Compartilhar em outros sites
local position = {x=getCreaturePosition(cid).x, y=getCreaturePosition(cid).y-1, z=getCreaturePosition(cid).z}

 

giphy.gif

Link para o post
Compartilhar em outros sites
Agora, PedroSTT disse:

local position = {x=getCreaturePosition(cid).x, y=getCreaturePosition(cid).y-1, z=getCreaturePosition(cid).z}

 

não entendi mano

Link para o post
Compartilhar em outros sites
1 minuto atrás, Wase Wiss disse:

não entendi mano

 

local position = {x=getCreaturePosition(cid).x, y=getCreaturePosition(cid).y, z=getCreaturePosition(cid).z}
 

È só tu mudar isso na script.

giphy.gif

Link para o post
Compartilhar em outros sites
Agora, PedroSTT disse:

 

local position = {x=getCreaturePosition(cid).x, y=getCreaturePosition(cid).y, z=getCreaturePosition(cid).z}
 

È só tu mudar isso na script.

E deixo como ? por que eu quero assim, tem uns effect que não fica certo no player fica do lado, ae eu queria que pode-se editar apenas ele, será que tem como ?

Link para o post
Compartilhar em outros sites

Coloca a script que te mandei , olha la em cima , eu te explico como que faz ,

 

local position = {x=getCreaturePosition(cid).x, y=getCreaturePosition(cid).y, z=getCreaturePosition(cid).z}

Se quer que vá 1 sqm para direita coloque assim Ou se quer que vá 1 sqm para a esquerda coloque -1 em vez de +1

local position = {x=getCreaturePosition(cid).x+1, y=getCreaturePosition(cid).y, z=getCreaturePosition(cid).z}

 

giphy.gif

Link para o post
Compartilhar em outros sites
Agora, PedroSTT disse:

Coloca a script que te mandei , olha la em cima , eu te explico como que faz ,

 


local position = {x=getCreaturePosition(cid).x, y=getCreaturePosition(cid).y, z=getCreaturePosition(cid).z}

Se quer que vá 1 sqm para direita coloque assim Ou se quer que vá 1 sqm para a esquerda coloque -1 em vez de +1


local position = {x=getCreaturePosition(cid).x+1, y=getCreaturePosition(cid).y, z=getCreaturePosition(cid).z}

 

Mais se eu fazer isso, vai mudar todos os effect pro lado que eu quero ? se for assim, tem como mudar para ir apenas a que eu quero não ?

Link para o post
Compartilhar em outros sites
2 minutos atrás, Wase Wiss disse:

Mais se eu fazer isso, vai mudar todos os effect pro lado que eu quero ? se for assim, tem como mudar para ir apenas a que eu quero não ?

 

usa esse e testa. não precisa mexer em nada.

 

local effects = {
--_GOKU_--
[4] = 106,
[5] = 85,
[6] = 106,
[8] = 87,
[13] = 84,
[14] = 84,
[15] = 89,
[16] = 244,
[473] = 115,
--_VEGETA_--
[21] = 85,
[22] = 106,
[23] = 106,
[28] = 84,
[29] = 84,
[30] = 89,
[31] = 244,
[474] = 41,
--_PICCOLO_--
[34] = 109,
[39] = 104,
[41] = 88,
[43] = 88,
[44] = 104,
--_C17_--
[49] = 87,
[51] = 84,
[52] = 93,
[54] = 87,
[55] = 90,
[56] = 96,
--_GOHAN_--
[60] = 106,
[68] = 84,
[69] = 89,
[70] = 90,
--_TRUNKS_--
[75] = 85,
[79] = 85,
[80] = 84,
[81] = 89,
[82] = 90,
[490] = 244,
--_CELL_--
[88] = 107,
[89] = 104,
[90] = 104,
[91] = 106,
[92] = 104,
[93] = 89,
[94] = 71,
--_FREEZA_--
[102] = 84,
[103] = 84,
[104] = 84,
[105] = 84,
[106] = 84,
[107] = 84,
[108] = 84,
[109] = 89,
[110] = 113,
--_MAJIN BOO_--
[118] = 109,
[119] = 92,
[120] = 92,
[121] = 105,
[122] = 92,
[123] = 92,
[124] = 91,
[125] = 91,
[126] = 101,
[475] = 89,
--_BROLY_--
[131] = 85,
[135] = 98,
[136] = 84,
[137] = 84,
[138] = 89,
[139] = 244,
--_C18_--
[144] = 87,
[146] = 87,
[147] = 93,
[149] = 87,
[150] = 86,
[151] = 90,
--_UUB_--
[156] = 84,
[157] = 84,
[158] = 84,
[159] = 84,
[160] = 84,
[161] = 96,
[162] = 89,
[163] = 90,
--_GOTEN_--
[169] = 106,
[170] = 85,
[174] = 85,
[175] = 85,
[176] = 90,
[177] = 84,
--_CHIBI TRUNKS_--
[183] = 106,
[184] = 85,
[188] = 85,
[189] = 85,
[190] = 90,
[191] = 84,
--_COOLER_--
[198] = 86,
[199] = 86,
[200] = 86,
[201] = 87,
[202] = 89,
[203] = 86,
[204] = 85,
[493] = 90,
[205] = 96,
--_DENDE_--
[215] = 88,
[216] = 102,
[217] = 240,
--_TSUFUL_--
[219] = 84,
[220] = 87,
[221] = 84,
[222] = 84,
[223] = 84,
[224] = 84,
[227] = 96,
[228] = 89,
[229] = 96,
--_BARDOCK_--
[235] = 85,
[237] = 109,
[238] = 106,
[239] = 85,
[240] = 84,
[241] = 84,
[242] = 89,
[243] = 90,
--_KURIRIN_--
[250] = 107,
[252] = 107,
[253] = 84,
[254] = 89,
[255] = 89,
--_PAN_--
[260] = 87,
[261] = 107,
[262] = 106,
[263] = 106,
[264] = 84,
[265] = 84,
[266] = 89,
[267] = 90,
--_KAIO_--
[272] = 86,
[273] = 91,
[274] = 86,
[276] = 86,
[277] = 86,
[278] = 86,
[279] = 90,
--_VIDEL_--
[285] = 106,
[286] = 106,
[287] = 106,
[288] = 106,
[289] = 87,
[290] = 87,
[291] = 41,
--_JANEMBA_--
[297] = 84,
[298] = 84,
[299] = 110,
[300] = 84,
[301] = 84,
[302] = 86,
[303] = 90,
[491] = 89,
--_TENSHINHAN_--
[307] = 107,
[308] = 107,
[310] = 107,
[312] = 85,
[313] = 84,
[314] = 108,
[315] = 108,
--_JENK_--
[322] = 109,
[325] = 84,
[326] = 87,
[327] = 98,
--_RADITZ_--
[332] = 85,
[333] = 106,
[334] = 106,
[335] = 106,
[336] = 85,
[337] = 84,
[338] = 89,
[339] = 90,
--_C16_--
[344] = 106,
[346] = 88,
[347] = 95,
[348] = 106,
[349] = 97,
[350] = 98,
[351] = 96,
--_TURLES_--
[355] = 106,
[356] = 87,
[358] = 94,
[360] = 106,
[361] = 84,
[362] = 89,
[363] = 90,
--_BULMA_--
[368] = 87,
[371] = 106,
[372] = 87,
[373] = 84,
[374] = 87,
[375] = 89,
--_SHENRON_--
[380] = 89,
[381] = 89,
[382] = 87,
[383] = 85,
[384] = 89,
[385] = 90,
[386] = 84,
[387] = 84,
--_VEGETTO_--
[390] = 106,
[392] = 85,
[393] = 106,
[394] = 106,
[395] = 85,
[396] = 85,
[397] = 84,
[398] = 89,
[399] = 244,
--_TAPION_--
[404] = 84,
[405] = 96,
[406] = 96,
[409] = 87,
[410] = 87,
[411] = 84,
[412] = 90,
[476] = 89,
--_KAME_--
[423] = 89,
[424] = 85,
--_KING VEGETA_--
[429] = 85,
[432] = 85,
[434] = 89,
[435] = 84,
[436] = 84,
--_KAGOME_--
[440] = 106,
[441] = 85,
[445] = 106,
[446] = 244,
[447] = 84,
[448] = 115,
--_ZAIKO_--
[451] = 106,
[452] = 106,
[453] = 98,
[455] = 85,
[456] = 85,
[457] = 106,
[458] = 88,
[459] = 96,
[460] = 96,
[477] = 90,
--_CHILLED_--
[466] = 84,
[467] = 84,
[468] = 84,
[469] = 84,
[470] = 105,
[471] = 96,
[472] = 86,
[492] = 89,
--_C8_--
[480] = 106,
[481] = 106,
[482] = 89,
[483] = 106,
[545] = 105,
[557] = 114,
[486] = 97,
[487] = 244,
[488] = 98,
[489] = 96,
[569] = 102,
[581] = 101,
[593] = 99,
[606] = 90,
[607] = 90,
[633] = 90,
[608] = 90,
[633] = 102,
[645] = 90,
[657] = 90,
[669] = 41,
[670] = 90,
[671] = 90,
[673] = 115,
[699] = 104,
[712] = 90,
[713] = 90,
[711] = 90,
[687] = 115,
[674] = 116,
[675] = 108,
[672] = 90,
[726] = 90,
[738] = 90,
[750] = 113,
[751] = 90,
[752] = 90,
[754] = 24,
[753] = 100,
[766] = 90,
[767] = 115,
[768] = 115,
[769] = 115,
[770] = 115,
[806] = 98,
[794] = 102,
[782] = 93,
[818] = 105,
[830] = 105,
[842] = 104,
[847] = 90,
[849] = 90,
[850] = 90,
[848] = 90,
[851] = 98,
[852] = 104,
[854] = 98,
[855] = 101,
[856] = 108,
[853] = 100,
[868] = 107,
[880] = 98,
[846] = 90,
[881] = 90,
[882] = 90,
[883] = 90,
[884] = 90,
[885] = 90,
[886] = 90,
[887] = 90,
[888] = 90,
[889] = 90,
[890] = 90,
[891] = 90,
[892] = 90,
[893] = 90,
[894] = 90,
[895] = 90,
[896] = 90,
[897] = 90,
[898] = 90,
[899] = 41,
[900] = 41,
[913] = 90,
[914] = 41,
[915] = 41,
[916] = 41,
[917] = 41,

--_Goku God_--
[521] = 24
}

function onThink(interval)

    for _, pid in ipairs(getPlayersOnline()) do
        local effect = effects[getPlayerVocation(pid)]
		local position = getCreaturePosition(pid)
		if (position) then
        if(effect) then
            doSendMagicEffect(position, effect)
        end
		end
    end
    return true
end

 

download.jpg

Link para o post
Compartilhar em outros sites
Agora, Ed.Specter disse:

 

usa esse e testa. não precisa mexer em nada.

 


local effects = {
--_GOKU_--
[4] = 106,
[5] = 85,
[6] = 106,
[8] = 87,
[13] = 84,
[14] = 84,
[15] = 89,
[16] = 244,
[473] = 115,
--_VEGETA_--
[21] = 85,
[22] = 106,
[23] = 106,
[28] = 84,
[29] = 84,
[30] = 89,
[31] = 244,
[474] = 41,
--_PICCOLO_--
[34] = 109,
[39] = 104,
[41] = 88,
[43] = 88,
[44] = 104,
--_C17_--
[49] = 87,
[51] = 84,
[52] = 93,
[54] = 87,
[55] = 90,
[56] = 96,
--_GOHAN_--
[60] = 106,
[68] = 84,
[69] = 89,
[70] = 90,
--_TRUNKS_--
[75] = 85,
[79] = 85,
[80] = 84,
[81] = 89,
[82] = 90,
[490] = 244,
--_CELL_--
[88] = 107,
[89] = 104,
[90] = 104,
[91] = 106,
[92] = 104,
[93] = 89,
[94] = 71,
--_FREEZA_--
[102] = 84,
[103] = 84,
[104] = 84,
[105] = 84,
[106] = 84,
[107] = 84,
[108] = 84,
[109] = 89,
[110] = 113,
--_MAJIN BOO_--
[118] = 109,
[119] = 92,
[120] = 92,
[121] = 105,
[122] = 92,
[123] = 92,
[124] = 91,
[125] = 91,
[126] = 101,
[475] = 89,
--_BROLY_--
[131] = 85,
[135] = 98,
[136] = 84,
[137] = 84,
[138] = 89,
[139] = 244,
--_C18_--
[144] = 87,
[146] = 87,
[147] = 93,
[149] = 87,
[150] = 86,
[151] = 90,
--_UUB_--
[156] = 84,
[157] = 84,
[158] = 84,
[159] = 84,
[160] = 84,
[161] = 96,
[162] = 89,
[163] = 90,
--_GOTEN_--
[169] = 106,
[170] = 85,
[174] = 85,
[175] = 85,
[176] = 90,
[177] = 84,
--_CHIBI TRUNKS_--
[183] = 106,
[184] = 85,
[188] = 85,
[189] = 85,
[190] = 90,
[191] = 84,
--_COOLER_--
[198] = 86,
[199] = 86,
[200] = 86,
[201] = 87,
[202] = 89,
[203] = 86,
[204] = 85,
[493] = 90,
[205] = 96,
--_DENDE_--
[215] = 88,
[216] = 102,
[217] = 240,
--_TSUFUL_--
[219] = 84,
[220] = 87,
[221] = 84,
[222] = 84,
[223] = 84,
[224] = 84,
[227] = 96,
[228] = 89,
[229] = 96,
--_BARDOCK_--
[235] = 85,
[237] = 109,
[238] = 106,
[239] = 85,
[240] = 84,
[241] = 84,
[242] = 89,
[243] = 90,
--_KURIRIN_--
[250] = 107,
[252] = 107,
[253] = 84,
[254] = 89,
[255] = 89,
--_PAN_--
[260] = 87,
[261] = 107,
[262] = 106,
[263] = 106,
[264] = 84,
[265] = 84,
[266] = 89,
[267] = 90,
--_KAIO_--
[272] = 86,
[273] = 91,
[274] = 86,
[276] = 86,
[277] = 86,
[278] = 86,
[279] = 90,
--_VIDEL_--
[285] = 106,
[286] = 106,
[287] = 106,
[288] = 106,
[289] = 87,
[290] = 87,
[291] = 41,
--_JANEMBA_--
[297] = 84,
[298] = 84,
[299] = 110,
[300] = 84,
[301] = 84,
[302] = 86,
[303] = 90,
[491] = 89,
--_TENSHINHAN_--
[307] = 107,
[308] = 107,
[310] = 107,
[312] = 85,
[313] = 84,
[314] = 108,
[315] = 108,
--_JENK_--
[322] = 109,
[325] = 84,
[326] = 87,
[327] = 98,
--_RADITZ_--
[332] = 85,
[333] = 106,
[334] = 106,
[335] = 106,
[336] = 85,
[337] = 84,
[338] = 89,
[339] = 90,
--_C16_--
[344] = 106,
[346] = 88,
[347] = 95,
[348] = 106,
[349] = 97,
[350] = 98,
[351] = 96,
--_TURLES_--
[355] = 106,
[356] = 87,
[358] = 94,
[360] = 106,
[361] = 84,
[362] = 89,
[363] = 90,
--_BULMA_--
[368] = 87,
[371] = 106,
[372] = 87,
[373] = 84,
[374] = 87,
[375] = 89,
--_SHENRON_--
[380] = 89,
[381] = 89,
[382] = 87,
[383] = 85,
[384] = 89,
[385] = 90,
[386] = 84,
[387] = 84,
--_VEGETTO_--
[390] = 106,
[392] = 85,
[393] = 106,
[394] = 106,
[395] = 85,
[396] = 85,
[397] = 84,
[398] = 89,
[399] = 244,
--_TAPION_--
[404] = 84,
[405] = 96,
[406] = 96,
[409] = 87,
[410] = 87,
[411] = 84,
[412] = 90,
[476] = 89,
--_KAME_--
[423] = 89,
[424] = 85,
--_KING VEGETA_--
[429] = 85,
[432] = 85,
[434] = 89,
[435] = 84,
[436] = 84,
--_KAGOME_--
[440] = 106,
[441] = 85,
[445] = 106,
[446] = 244,
[447] = 84,
[448] = 115,
--_ZAIKO_--
[451] = 106,
[452] = 106,
[453] = 98,
[455] = 85,
[456] = 85,
[457] = 106,
[458] = 88,
[459] = 96,
[460] = 96,
[477] = 90,
--_CHILLED_--
[466] = 84,
[467] = 84,
[468] = 84,
[469] = 84,
[470] = 105,
[471] = 96,
[472] = 86,
[492] = 89,
--_C8_--
[480] = 106,
[481] = 106,
[482] = 89,
[483] = 106,
[545] = 105,
[557] = 114,
[486] = 97,
[487] = 244,
[488] = 98,
[489] = 96,
[569] = 102,
[581] = 101,
[593] = 99,
[606] = 90,
[607] = 90,
[633] = 90,
[608] = 90,
[633] = 102,
[645] = 90,
[657] = 90,
[669] = 41,
[670] = 90,
[671] = 90,
[673] = 115,
[699] = 104,
[712] = 90,
[713] = 90,
[711] = 90,
[687] = 115,
[674] = 116,
[675] = 108,
[672] = 90,
[726] = 90,
[738] = 90,
[750] = 113,
[751] = 90,
[752] = 90,
[754] = 24,
[753] = 100,
[766] = 90,
[767] = 115,
[768] = 115,
[769] = 115,
[770] = 115,
[806] = 98,
[794] = 102,
[782] = 93,
[818] = 105,
[830] = 105,
[842] = 104,
[847] = 90,
[849] = 90,
[850] = 90,
[848] = 90,
[851] = 98,
[852] = 104,
[854] = 98,
[855] = 101,
[856] = 108,
[853] = 100,
[868] = 107,
[880] = 98,
[846] = 90,
[881] = 90,
[882] = 90,
[883] = 90,
[884] = 90,
[885] = 90,
[886] = 90,
[887] = 90,
[888] = 90,
[889] = 90,
[890] = 90,
[891] = 90,
[892] = 90,
[893] = 90,
[894] = 90,
[895] = 90,
[896] = 90,
[897] = 90,
[898] = 90,
[899] = 41,
[900] = 41,
[913] = 90,
[914] = 41,
[915] = 41,
[916] = 41,
[917] = 41,

--_Goku God_--
[521] = 24
}

function onThink(interval)

    for _, pid in ipairs(getPlayersOnline()) do
        local effect = effects[getPlayerVocation(pid)]
		local position = getCreaturePosition(pid)
		if (position) then
        if(effect) then
            doSendMagicEffect(position, effect)
        end
		end
    end
    return true
end

 

Com esse ae qualquer effect sai certo em cima do player ?

Link para o post
Compartilhar em outros sites
Agora, Wase Wiss disse:

Mais se eu fazer isso, vai mudar todos os effect pro lado que eu quero ? se for assim, tem como mudar para ir apenas a que eu quero não ?


Sim , irá mudar todos , mas se tu quiser mudar apenas alguns , remova os que queira mudar da tabela , 

Depois acrescente a tag 

doSendMagicEffect(position, 3)


OBS : Na script antiga 

 

 

giphy.gif

Link para o post
Compartilhar em outros sites
Agora, Wase Wiss disse:

Com esse ae qualquer effect sai certo em cima do player ?

 

o script é onThink, acada tempo configurável no xml, o script vai rodar, fazendo um effect na posição dos players online, de acordo com a vocation.

 

sim, testa ae..

download.jpg

Link para o post
Compartilhar em outros sites

Caso você não entenda , faça assim

 

Spoiler

local effects = {
--_GOKU_--
[4] = 106,
[5] = 85,
[6] = 106,
[8] = 87,

[13] = 84,
[14] = 84,
[15] = 89,
[16] = 244,
[473] = 115,

--_VEGETA_--
[21] = 85,
[22] = 106,
[23] = 106,

[28] = 84,
[29] = 84,
[30] = 89,
[31] = 244,
[474] = 41,

--_PICCOLO_--
[34] = 109,

[39] = 104,
[41] = 88,
[43] = 88,
[44] = 104,

--_C17_--
[49] = 87,

[51] = 84,
[52] = 93,
[54] = 87,
[55] = 90,
[56] = 96,

--_GOHAN_--
[60] = 106,

[68] = 84,
[69] = 89,
[70] = 90,

--_TRUNKS_--
[75] = 85,

[79] = 85,
[80] = 84,
[81] = 89,
[82] = 90,
[490] = 244,

--_CELL_--
[88] = 107,
[89] = 104,
[90] = 104,
[91] = 106,
[92] = 104,
[93] = 89,
[94] = 71,

--_FREEZA_--
[102] = 84,
[103] = 84,
[104] = 84,
[105] = 84,
[106] = 84,
[107] = 84,
[108] = 84,
[109] = 89,
[110] = 113,

--_MAJIN BOO_--
[118] = 109,
[119] = 92,
[120] = 92,
[121] = 105,
[122] = 92,
[123] = 92,
[124] = 91,
[125] = 91,
[126] = 101,
[475] = 89,

--_BROLY_--
[131] = 85,

[135] = 98,
[136] = 84,
[137] = 84,
[138] = 89,
[139] = 244,

--_C18_--
[144] = 87,

[146] = 87,
[147] = 93,
[149] = 87,
[150] = 86,
[151] = 90,

--_UUB_--
[156] = 84,

[157] = 84,
[158] = 84,
[159] = 84,
[160] = 84,
[161] = 96,
[162] = 89,
[163] = 90,

--_GOTEN_--
[169] = 106,
[170] = 85,

[174] = 85,
[175] = 85,
[176] = 90,
[177] = 84,

--_CHIBI TRUNKS_--
[183] = 106,
[184] = 85,

[188] = 85,
[189] = 85,
[190] = 90,
[191] = 84,

--_COOLER_--
[198] = 86,
[199] = 86,
[200] = 86,
[201] = 87,
[202] = 89,
[203] = 86,
[204] = 85,
[493] = 90,
[205] = 96,

--_DENDE_--
[215] = 88,
[216] = 102,
[217] = 240,

--_TSUFUL_--
[219] = 84,
[220] = 87,
[221] = 84,
[222] = 84,

[223] = 84,
[224] = 84,
[227] = 96,
[228] = 89,
[229] = 96,

--_BARDOCK_--
[235] = 85,

[237] = 109,
[238] = 106,
[239] = 85,
[240] = 84,
[241] = 84,
[242] = 89,
[243] = 90,

--_KURIRIN_--
[250] = 107,
[252] = 107,
[253] = 84,
[254] = 89,
[255] = 89,

--_PAN_--
[260] = 87,

[261] = 107,
[262] = 106,
[263] = 106,
[264] = 84,
[265] = 84,
[266] = 89,
[267] = 90,

--_KAIO_--
[272] = 86,

[273] = 91,
[274] = 86,
[276] = 86,
[277] = 86,
[278] = 86,
[279] = 90,

--_VIDEL_--
[285] = 106,
[286] = 106,
[287] = 106,
[288] = 106,
[289] = 87,
[290] = 87,
[291] = 41,

--_JANEMBA_--
[297] = 84,
[298] = 84,
[299] = 110,
[300] = 84,
[301] = 84,
[302] = 86,
[303] = 90,
[491] = 89,

--_TENSHINHAN_--
[307] = 107,
[308] = 107,

[310] = 107,
[312] = 85,
[313] = 84,
[314] = 108,
[315] = 108,

--_JENK_--
[322] = 109,
[325] = 84,
[326] = 87,
[327] = 98,

--_RADITZ_--
[332] = 85,

[333] = 106,
[334] = 106,
[335] = 106,
[336] = 85,
[337] = 84,
[338] = 89,
[339] = 90,

--_C16_--
[344] = 106,

[346] = 88,
[347] = 95,
[348] = 106,
[349] = 97,
[350] = 98,
[351] = 96,

--_TURLES_--
[355] = 106,
[356] = 87,

[358] = 94,
[360] = 106,
[361] = 84,
[362] = 89,
[363] = 90,

--_BULMA_--
[368] = 87,

[371] = 106,
[372] = 87,
[373] = 84,
[374] = 87,
[375] = 89,

--_SHENRON_--
[380] = 89,

[381] = 89,
[382] = 87,
[383] = 85,
[384] = 89,
[385] = 90,
[386] = 84,
[387] = 84,

--_VEGETTO_--
[390] = 106,
[392] = 85,

[393] = 106,
[394] = 106,
[395] = 85,
[396] = 85,
[397] = 84,
[398] = 89,
[399] = 244,

--_TAPION_--
[404] = 84,

[405] = 96,
[406] = 96,
[409] = 87,
[410] = 87,
[411] = 84,
[412] = 90,
[476] = 89,

--_KAME_--
[423] = 89,
[424] = 85,

--_KING VEGETA_--
[429] = 85,

[432] = 85,
[434] = 89,
[435] = 84,
[436] = 84,

--_KAGOME_--
[440] = 106,
[441] = 85,

[445] = 106,
[446] = 244,
[447] = 84,
[448] = 115,

--_ZAIKO_--
[451] = 106,
[452] = 106,
[453] = 98,

[455] = 85,
[456] = 85,
[457] = 106,
[458] = 88,
[459] = 96,
[460] = 96,
[477] = 90,

--_CHILLED_--
[466] = 84,
[467] = 84,
[468] = 84,
[469] = 84,
[470] = 105,
[471] = 96,
[472] = 86,
[492] = 89,

--_C8_--
[480] = 106,
[481] = 106,
[482] = 89,
[483] = 106,
[545] = 105,
[557] = 114,
[486] = 97,
[487] = 244,
[488] = 98,
[489] = 96,
[569] = 102,
[581] = 101,
[593] = 99,
[606] = 90,
[607] = 90,
[633] = 90,
[608] = 90,
[633] = 102,
[645] = 90,
[657] = 90,
[669] = 41,
[670] = 90,
[671] = 90,
[673] = 115,
[699] = 104,
[712] = 90,
[713] = 90,
[711] = 90,
[687] = 115,
[674] = 116,
[675] = 108,
[672] = 90,
[726] = 90,
[738] = 90,
[750] = 113,
[751] = 90,
[752] = 90,
[754] = 24,
[753] = 100,
[766] = 90,
[767] = 115,
[768] = 115,
[769] = 115,
[770] = 115,
[806] = 98,
[794] = 102,
[782] = 93,
[818] = 105,
[830] = 105,
[842] = 104,
[847] = 90,
[849] = 90,
[850] = 90,
[848] = 90,
[851] = 98,
[852] = 104,
[854] = 98,
[855] = 101,
[856] = 108,
[853] = 100,
[868] = 107,
[880] = 98,
[846] = 90,
[881] = 90,
[882] = 90,
[883] = 90,
[884] = 90,
[885] = 90,
[886] = 90,
[887] = 90,
[888] = 90,
[889] = 90,
[890] = 90,
[891] = 90,
[892] = 90,
[893] = 90,
[894] = 90,
[895] = 90,
[896] = 90,
[897] = 90,
[898] = 90,
[899] = 41,
[900] = 41,
[913] = 90,
[914] = 41,
[915] = 41,
[916] = 41,
[917] = 41,


--_Goku God_--
[521] = 24
}

function onThink(interval)
    for _, pid in ipairs(getPlayersOnline()) do
        local effect = effects[getPlayerVocation(pid)]
        if(effect) then

 

local position = {x=getCreaturePosition(cid).x, y=getCreaturePosition(cid).y-1, z=getCreaturePosition(cid).z}


            doSendMagicEffect(getCreaturePos(pid), effect)

 

     doSendMagicEffect(position, 3) -- tag que eu acrescentei 
        end
    end

    return true
end


Remova as que estão do lado do player da tabela e edite a tag que eu acrescentei

 

doSendMagicEffect(position, 3) 

Lembrando , onde está 3 é o magic effect que sairá

e Tambem para cada effect que está do lado errado você deverá criar uma nova tag

 

doSendMagicEffect(position, 3) 

 

Editado por PedroSTT (veja o histórico de edições)

giphy.gif

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.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

  • Conteúdo Similar

    • Por LeoTK
      Salve galera neste tópico irei postar algumas prints do mapa do servidor para quem queira acompanhar e quem sabe até utilizar de inspiração para mapear o seu NTO.
       
      #Att 11/08/2022

       
       
       
       
      Konoha (Em Desenvolvimento)
       
       
       
       
    • Por DiigooMix
      Como o título já diz, será que alguém possui sprite do hitto e se possível as transformações dele?
    • Por OmegaZero
      Olá gostaria que alguém me ajudasse com uma "scripting" não sei se é pela mesma, seria o seguinte uma determinada arma teria a chance de dar double hit e não sei oque fazer alguem poderia ajudar?

      OBS:não sei se é o local correto se não for mova, desculpe
    • Por Madarasenju
      Olá galera do Tibia King, queria por uns npc's no meu server que não tem função de trade nem nada do tipo, queria que eles só andassem como enfeite, Rep+ Pra quem me ajudar... grato desde já.
    • Por SilenceRoot
      A magia é assim o você usa a a magia e ela ficará ativado por 10 segundos, até que o inimigo lance a primeira magia ou todos de uma vez, quando ele lançar a primeira magia, ele não lhe acertará ou seja esquivando dela, e logo em seguida será teletransportado aleatoriamente ao redor do inimigo que usou.
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo