-
-
-
-
-
(Resolvido)Alanvanca tp
É mesmo eu errei kkkkkkk
-
(Resolvido)Alanvanca tp
Não testei local config = { tpos = {x=885, y=1460, z=5}, -- Posição para onde o player será teleportado. } function onUse(cid, item, frompos, item2, topos) if isCreature(cid) then doTeleportThing(cid, config.tpos) doPlayerSendTextMessage(cid,20,"You have been teleported.") -- Menssagem que aparecerá para o player ao ser teleportado. end return true end /\ Acredito que funcione agora /\
-
-
Secure Mode Pvp não funciona
Acredito que isso não tenha nenhuma relação com o script já que a única função dele é evitar os ataques a jogadores sem pk caso o fightmode esteja desativado
-
Secure Mode Pvp não funciona
function onCombat(cid, target) if isPlayer(target) and getPlayerSecureMode(cid) == 0 and getCreatureSkullType(target) == 0 then return false end return true end
-
-
-
[action] Edo Tensei
Provavelmente tem algo de errado nas flags desse monster deve ser essa aqui <flag convinceable="1"/> tenta deixar assim no xml desse monster se não tiver isso add
-
-
[Action] Hiraishin Kunai
Fiz essa versão diferente que pode ser útil pois onde você colocava o id da vocation você coloca o nome agora function onUse(cid, item, fromPosition, itemEx, toPosition) local pos = fromPosition local aqui = getPlayerPosition(cid) local vocs = {"Minato", "Tobirama"} local agua = {4610, 4612, 4611, 4664, 4613, 4666, 4646, 4654, 4609, 4665, 4608, 4625, 4665, 4666, 4645} local parede = {1030, 1029, 1025, 1026, 1027, 1259, 1028, 1032, 1034, 1033, 1536, 1533, 873, 919, 874, 1037, 2700, 2708, 4472, 4475, 4471, 3388, 3373, 3363, 3398, 3408, 3417, 3420, 3407, 3368, 2701, 5130, 6170, 6166, 1596, 3361, 3362, 3363, 3364, 3365, 3366, 3367, 3368, 3369, 3370, 3371, 3372, 3373, 3374, 3375, 3376, 3377, 3378, 3379, 3380, 3381, 3382, 3383, 3384, 3385, 3386, 3387, 3388, 3389, 3390, 3391, 3392, 3393, 3394, 3395, 3396, 3397, 3398, 3399, 3400, 3401, 3402, 3403, 3404, 3405, 3406, 3407, 3408, 3409, 3410, 3411, 3412, 3413, 3414, 3415, 3416, 3417, 3418, 3419, 3420, 3421, 3422} local pedra = {874, 919, 873, 2707, 2784, 2778, 3330, 4471, 4475, 4473, 4472, 4474, 4468, 4478, 4469, 4470, 4479, 2703, 2704, 1534, 2739, 3867, 5324, 5316, 5315, 5317, 1600, 1597, 1601} if getDistanceBetween(aqui, toPosition) >= 8 then return doPlayerSendTextMessage(cid, 27, "Está muito longe.") elseif(not(isSightClear(aqui, toPosition, 1))) then return doPlayerSendTextMessage(cid, 27, "Isso é impossivel.") elseif(getTilePzInfo(aqui)) then return doPlayerSendCancel(cid, "Não pode usar a tecnica Deus Dragão em casas ou areas protegidas.") elseif(getTilePzInfo(toPosition)) then return doPlayerSendCancel(cid, "Não pode usar a tecnica Deus Dragão em casas ou areas protegidas.") elseif(isInArray(agua, itemEx.itemid)) then return doPlayerSendTextMessage(cid, 27, "voce nao pode usar em agua") elseif(isInArray(parede, itemEx.itemid)) then return doPlayerSendTextMessage(cid, 27, "voce nao pode usar em paredes") elseif(isInArray(pedra, itemEx.itemid)) then return doPlayerSendTextMessage(cid, 27, "voce nao pode usar em pedras") elseif(not(isInArray(vocs, getPlayerVocationName(cid)))) then return doPlayerSendTextMessage(cid, 27, "Desculpe, Você não pode usar a tecnica Deus Dragão.") end if(doTeleportThing(cid, toPosition, false)) then doSendMagicEffect(pos, 24) doSendMagicEffect(toPosition, 24) doCreatureSay(cid, "Shunshin", 19) return doSendDistanceShoot(pos, toPosition, 16) end return doPlayerSendCancel(cid, "Desculpe nao foi possivel.") end
-
-
-
ManoTobira alterou sua foto pessoal
-
-
Fabiano Alberto reagiu a uma resposta no tópico: [HELP ME +REP] Função para comparar se o player ta atacando monstro ou outro player
-
[HELP ME +REP] Função para comparar se o player ta atacando monstro ou outro player
se me lembro bem é isso isMonster(getCreatureTarget(cid)) -- se for monstro o alvo isPlayer(getCreatureTarget(cid)) -- se for player o alvo
-
-
[PEDIDO] Spell De Soco
tenta mudar isso em seu vocation.xml meleeDamage="0" para meleeDamage="1.0" e attackspeed="-1" para attackspeed="1000"
-
Scripts
acho q isso nao é na script e sim nos itens de uma olhada no item editor e se a opçao useable tiver ativada desmarca ela
-
Premium Free
se premium é free nao tem dias de vip
-
Hiraishin Kunai nao Gasta Mana PLX
local config = { percent = 2, --- porcentagem de mana que perde } function onUse(cid, item, fromPosition, itemEx, toPosition) local pos = fromPosition local topos = toPosition local position1 = {x=getPlayerPosition(cid).x+1, y=getPlayerPosition(cid).y+1, z=getPlayerPosition(cid).z} local position2 = {x=toPosition.x+1, y=toPosition.y+1, z=toPosition.z} local aqui = getPlayerPosition(cid) local vocs = {265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279} local agua = {4610, 4612, 4611, 4664, 4613, 4666, 4646, 4654, 4609, 4665, 4608, 4625, 4665, 4666, 4645} local parede = {1030, 1029, 1025, 1026, 1027, 1259, 1028, 1032, 1034, 1033, 1536, 1533, 873, 919, 874, 1037, 2700, 2708, 4472, 4475, 4471, 3388, 3373, 3363, 3398, 3408, 3417, 3420, 3407, 3368, 2701, 5130, 6170, 6166, 1596, 3361, 3362, 3363, 3364, 3365, 3366, 3367, 3368, 3369, 3370, 3371, 3372, 3373, 3374, 3375, 3376, 3377, 3378, 3379, 3380, 3381, 3382, 3383, 3384, 3385, 3386, 3387, 3388, 3389, 3390, 3391, 3392, 3393, 3394, 3395, 3396, 3397, 3398, 3399, 3400, 3401, 3402, 3403, 3404, 3405, 3406, 3407, 3408, 3409, 3410, 3411, 3412, 3413, 3414, 3415, 3416, 3417, 3418, 3419, 3420, 3421, 3422} local pedra = {874, 919, 873, 2707, 2784, 2778, 3330, 4471, 4475, 4473, 4472, 4474, 4468, 4478, 4469, 4470, 4479, 2703, 2704, 1534, 2739, 3867, 5324, 5316, 5315, 5317, 1600, 1597, 1601} if getDistanceBetween(aqui, toPosition) >= 8 then doPlayerSendTextMessage(cid, 26, "Não pode usar a tecnica Deus Dragão nesse local.") return true end if(not(isSightClear(aqui, toPosition, 1))) then doPlayerSendTextMessage(cid, 26, "Não pode usar a tecnica Deus Dragão nesse local.") return true end if(getTilePzInfo(aqui)) then doPlayerSendCancel(cid, "Não pode usar a tecnica Deus Dragão em casas ou areas protegidas.") return true end if(getTilePzInfo(toPosition)) then doPlayerSendCancel(cid, "Não pode usar a tecnica Deus Dragão em casas ou areas protegidas.") return true end if(isInArray(agua, itemEx.itemid)) then doPlayerSendTextMessage(cid, 26, "Não pode usar a tecnica Deus Dragão nesse local.") return true end if(isInArray(parede, itemEx.itemid)) then doPlayerSendTextMessage(cid, 26, "you cannot throw there.") return true end if(isInArray(pedra, itemEx.itemid)) then doPlayerSendTextMessage(cid, 26, "Não pode usar a tecnica Deus Dragão nesse local.") return true end if(not(isInArray(vocs, getPlayerVocation(cid)))) then return true end if(doTeleportThing(cid, toPosition, false)) then doSendMagicEffect(position1, 82) doSendMagicEffect(position2, 186) doCreatureSay(cid, "Shunshin", 19) doSendDistanceShoot(pos, toPosition, 46) if isCreature(cid) then if getCreatureMaxMana(cid) then local lifedraw = math.ceil(getCreatureMaxMana(cid) * (config.percent)/100) doCreatureAddMana(cid, -lifedraw, 1) end end return true end doPlayerSendCancel(cid, "Desculpe nao foi possivel.") return true end
-
-
-
-
-
(Resolvido)[bug] npc não aceita novo din din
procura no items.xml o item q vc qer q eles aceitem e depois coloque isso <attribute key="worth" value="10000" /> no lugar de 10000 vc coloca o valor q vc qer q vale o dinheiro
-
Matar monstro ganha storage que abre porta
crie um arquivo .lua em creaturescripts e cole isso dentro: registre essa tag no creaturescripts.xml: depois abra o login.lua e registre: agora na pasta actions crie outro arquivo .lua e cole: agora registre em actions.xml: agora coloque na porta o actionid 2164 e pronto
-
-
[Action] Hiraishin Kunai
o id da vocaçao minato do seu ot não é o mesmo da script ve o id da vocação minato e coloca ele nessa parte local vocs = {250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261} apaga todos os numeros e coloca o id da vocation minato do seu ot se tiver mais de 1 vocation minato por causa das transformações como é o caso da configuração da script vc deixa tipo assim local vocs = {idum, iddois, etc}
-
[action] Edo Tensei
atualizei mais uma vez acho q agora ja ta identico ao nto ultimate tirando a parte que precisa de 2 itens mais se eu lembrar de mais uma coisa do sistema deles eu arrumo aqui