Solutions
-
Yugami's post in (Resolvido)[Pedido] Script Dimensão was marked as the answerlocal c = { cooldown = 25, -- tempo em segundos para usar novamente effect = 200, -- efeito que vai sair quando for utilizado a spell storage = 32598, -- storage do cooldown pos_user = { x = 1509, y = 1261, z = 7}, pos_target = { x = 1509, y = 1255, z = 7}, time_back = 15, -- tempo em segundos para retornar points = 70, -- pontos de skills que o usuario terar a mais spell_room = {from = {x = 1, y = 1, z = 1}, to = {x = 1, y = 1, z = 1}}, restricted_zones = { [1] = {from = {x = 1483, y = 1110, z = 7}, to = {x = 1648, y = 1275, z = 7}}, [2] = {from = {x = 1054, y = 910, z = 7}, to = {x = 1069, y = 925, z = 7}} } } local function teleportPlayer(cid, pos, time) addEvent(doTeleportThing, time, cid, getCreaturePosition(cid)) doTeleportThing(cid, pos) end local condition = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(condition, CONDITION_PARAM_TICKS, c.time_back*1000) setConditionParam(condition, CONDITION_PARAM_STAT_MAGICLEVEL, c.points) setConditionParam(condition, CONDITION_PARAM_SKILL_FIST, c.points) setConditionParam(condition, CONDITION_PARAM_SKILL_SWORD, c.points) setConditionParam(condition, CONDITION_PARAM_SKILL_AXE, c.points) setConditionParam(condition, CONDITION_PARAM_SKILL_CLUB, c.points) setConditionParam(condition, CONDITION_PARAM_SKILL_DISTANCE, c.points) setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELD, c.points) function onCastSpell(cid, var) local spellRoom = c.spell_room local restrictZones = c.restricted_zones local target = getCreatureTarget(cid) if (isInRange(getCreaturePosition(cid), spellRoom.from, spellRoom.to)) then doPlayerSendCancel(cid, "You are already within the dimension of this spell.") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) return false end for _, zone in ipairs(restrictZones) do if (isInRange(getCreaturePosition(cid), zone.from, zone.to)) then doPlayerSendCancel(cid, "It is impossible to use this spell here.") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) return false end end if (isPlayer(cid)) and (exhaustion.check(cid, c.storage)) then doPlayerSendCancel(cid, "Wait ".. exhaustion.get(cid, c.storage) .. " seconds.") return false end if (not isPlayer(target)) then doPlayerSendCancel(cid, "This spell can only be used in Player.") return false end teleportPlayer(target, c.pos_target, c.time_back*1000) teleportPlayer(cid, c.pos_user, c.time_back*1000) exhaustion.set(cid, c.storage, c.cooldown) doSendMagicEffect(getCreaturePosition(target), c.effect) return TRUE end testa
-
Yugami's post in (Resolvido)Tp que só teleporta se tiver o storage was marked as the answerOla amigo, se for oque eu entendi, aqui esta:
Passo a passo:
vá em data/movements e abra o movements.xml e cole a seguinte linha
<movevent type="StepIn" actionid="ACTIONID_DO_TP" event="script" value="nome_do_arquivo.lua"/> em seguida vá em data/movements/scripts e copie qualquer arquivo.lua e cole e faça a substituição de nome para o "nome_do_arquivo" o mesmo que você colocou no passo anterior.
em seguida abra o arquivo e cole o seguinte código:
local c = { pos = {x = 1, y = 1, z = 1}, -- posição que sera levado sem storage storage = 20000, -- storage value = 1, -- valor que ele precisa ter pos_storage = {x = 1, y = 1, z = 1} -- posição que sera levado com storage } function onStepIn(cid, item, position, fromPosition) if getCreatureStorage(cid, c.storage) == c.value then doTeleportThing(cid, c.pos_storage) else doTeleportThing(cid, c.pos) end return true end
-
Yugami's post in (Resolvido)[AJUDA] Outfits Por Vocations {Sources} was marked as the answervai pasta do ot/data/creaturescripts/scripts copie qualquer arquivo.lua e cole e depois coloke isso dentro
va em login.lua e add éssa tag registerCreatureEvent(cid, "Outfit") va na pasta do seu ot/data/creaturescripts e abre o creaturescripts.xml em bloco de notas e coloke isso
<event type="login" name="Outfit" event="script" value="nome do arquivo.lua"/> -
Yugami's post in (Resolvido)2 Scripts de storage, acho que é facil rep+ was marked as the answernão sei se vai funciona mas tenta assim
1.
function onUse(cid, item, frompos, item2, topos) local win = storage que ele vai ganha local los = storage que ele precisa ter if getPlayerStorageValue(cid, los) < 1 then doPlayerSendTextMessage(cid,22,"MSG QUE VAI APARECE QUANDO ELE GANHA") setPlayerStorageValue(cid, win, 1) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "MSG QUE VAI APARECE SE ELE JA TIVE.") end return TRUE end 2.
function onUse(cid, item, frompos, item2, topos) local storage1 = STORAGE 1 local storage2 = STORAGE 2 local storage3 = STORAGE 3 local storage4 = STORAGE 4 local storage5 = STORAGE 5 local storage6 = STORAGE 6 pos = {x=1030, y=912, z=6} -- Onde Levara se ele tivér a storage if getPlayerStorageValue(cid, storage1) < 1 and getPlayerStorageValue(cid, storage2) < 1 and getPlayerStorageValue(cid, storage3) < 1 and getPlayerStorageValue(cid, storage4) < 1 and getPlayerStorageValue(cid, storage5) < 1 and getPlayerStorageValue(cid, storage6) < 1 then doPlayerSendTextMessage(cid,22,"MSG Que Aparece Se Ele é TP") doTeleportThing(cid, pos) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "MSG Que Aparece Se ele Não tem Storage") end return TRUE end -
Yugami's post in (Resolvido)Ajuda servidor B&W NTO. was marked as the answertenta usa o ip 127.0.0.1 pra você entrar nele
-
Yugami's post in (Resolvido)Script de Transform [Me explique!] was marked as the answeraté onde eu me lembre de DBO é +- assim
outfit = {lookType=280} ID Da Outfit da 1 Transform outfit1 = {lookType=120} ID Da Outfit da 2 Transform outfit2 = {lookType=110} ID Da Outfit da 3 Transform outfit3 = {lookType=134} ID Da Outfit da 4 Transform outfits = {lookType=280} ID Da Outfit da 1 Transform RB outfits1 = {lookType=120} ID Da Outfit da 2 Transform RB outfits2 = {lookType=401} ID Da Outfit da 3 Transform RB outfits3 = {lookType=334} ID Da Outfit da 4 Transform RB aconselhavel coloca o 1 nome da voca e um numero no outfit porexemplo: kame1,kame2 até o numero final.
essa parte aki é a parte que se configura a Transformação com o ID da vocation e o Effect que vai aparece na hora da Transformação e o level dela.
quando você for fazer a da trans rb lembre de coloca o Numero neutro porexemplo se o ultimo trans sem rb foi com o ID 318 você precisara coloca o ID 319 para que quem não seje o RB não possa fica na trans do Reborn. somente isso que eu me lembre. -
Yugami's post in (Resolvido)Bug Spell Transform ( Narutibia 8.54 ) was marked as the answerpelo que entendi vc esta criando 2 spell com a msm função só que os effect estão semelhantes mesmo fazendo Modificação certo?
se foi isso que esta falando só basta você muda essas 2 linha
function magicEffect2(tempo2,tempo3,cid)
addEvent(magicEffect2, tempo2, tempo2, tempo*1000, cid)
deixando assim
function magicEffect22(tempo2,tempo3,cid)
addEvent(magicEffect22, tempo2, tempo2, tempo*1000, cid)
a cada nova spell com a mesma função do script de buff para que os effects não buguem precisa modifica o numero apois o "magicEffect" entretanto o da função e o de addevent precisa ter o msm numero após o magiceffect
-
Yugami's post in (Resolvido)TP monster was marked as the answertenta esse.
local tps = { ["Bazir"] = {pos = {x=1851, y=642, z=8}, toPos = {x=1866, y=642, z=8}, time = 30}, } local function removeTp(tp) local t = getTileItemById(tp.pos, 5023).uid return t > 0 and doRemoveItem(t) and doSendMagicEffect(tp.pos, CONST_ME_POFF) end function onDeath(cid) local tp = tps[getCreatureName(cid)] if tp then doCreateTeleport(5023, tp.toPos, tp.pos) doCreatureSay(cid, "O teleport irá sumir em "..tp.time.." segundos.", TALKTYPE_ORANGE_1) addEvent(removeTp, tp.time*1000, tp) end return true end -
Yugami's post in (Resolvido)LookType Por Vocation ( Narutibia 8.54 ) was marked as the answerva na pasta do seu ot/data/creaturescripts e abra o creaturescript.xml e coloke essa tag
<event type="login" name="Outfit" event="script" value="outfit.lua"/> salve,agora va na pasta do seu ot/data/creaturescript/script e copie qualque arquivo.lua e renomeie para "Outfit" e cole isso dentro
function onLogin(cid) local config = { -- naruto -- [1] = {839}, -- dentro do [ ] coloque o numero da vocaçao e { } coloque o numero da looktype -- sasuke -- [17] = {688} } local voc = config[getPlayerVocation(cid)] if voc then if getPlayerStorageValue(cid, 13000) < 0 then local newtype = {lookType = voc[1]} doCreatureChangeOutfit(cid, newtype) setPlayerStorageValue(cid, 13000, 1) end end return TRUE end salve,e va na pasta do seu ot/data/creaturescript/scripts e procure o "Login.lua" e coloke essa tag.
registerCreatureEvent(cid, "Outfit") -
Yugami's post in (Resolvido)Ajuda Com Script de Transform ( Narutibia 8.54 ) was marked as the answertente assim.
local tempo = 60 -- tempo em segundos. local effect = {208} -- effect no player, caso queira apenas 1, basta remover os outros numeros. local outfit = {lookType = 608} -- outfit que ira dar local ml = 35 -- quantos ira aumentar o skill de ML local skillfist = 35 -- quantos ira aumentar o skill de Fist local skillsword = 35 -- quantos ira aumentar o skill de Sword local skillaxe = 35 -- quantos ira aumentar o skill de Axe local skillclub = 35 -- quantos ira aumentar o skill de Club local skilldistance = 35 -- quantos ira aumentar o skill de Distance local skillshield = 35 -- quantos ira aumentar o skill de Shield local health = 80 -- A cada 1 segundo quantos aumentar de vida local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0) local condition = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000) setConditionParam(condition, CONDITION_PARAM_STAT_MAGICLEVEL, ml) setConditionParam(condition, CONDITION_PARAM_SKILL_FIST, skillfist) setConditionParam(condition, CONDITION_PARAM_SKILL_SWORD, skillsword) setConditionParam(condition, CONDITION_PARAM_SKILL_AXE, skillaxe) setConditionParam(condition, CONDITION_PARAM_SKILL_CLUB, skillclub) setConditionParam(condition, CONDITION_PARAM_SKILL_DISTANCE, skilldistance) setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELD, skillshield) setConditionParam(condition, CONDITION_PARAM_OUTFIT, outfit) setCombatCondition(combat, condition) local condition = createConditionObject(CONDITION_OUTFIT) setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000) addOutfitCondition(condition, outfit) setCombatCondition(combat, condition) local condition = createConditionObject(CONDITION_HASTE) setConditionParam(condition, CONDITION_PARAM_SPEED, 250) setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000) setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE) setCombatCondition(combat, condition) local condition = createConditionObject(CONDITION_REGENERATION) setConditionParam(condition, CONDITION_PARAM_SUBID, 1) setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE) setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000) setConditionParam(condition, CONDITION_PARAM_HEALTHGAIN, health) setConditionParam(condition, CONDITION_PARAM_HEALTHTICKS, 1000) setCombatCondition(combat, condition) function magicEffect2(tempo2,tempo3,cid) if (isCreature(cid)) then if getPlayerStorageValue(cid, 102053) > 0 and getCreatureCondition(cid, CONDITION_REGENERATION, 1) then for i=1, #effect do local position = {x=getPlayerPosition(cid).x, y=getPlayerPosition(cid).y, z=getPlayerPosition(cid).z} doSendMagicEffect(position, effect[i]) end end end end function onCastSpell(cid, var) local position129 = {x=getPlayerPosition(cid).x+2, y=getPlayerPosition(cid).y, z=getPlayerPosition(cid).z} if getPlayerStorageValue(cid, 102053) ~= 1 or getCreatureCondition(cid, CONDITION_REGENERATION, 1) == false then doCombat(cid, combat, var) tempo2 = 0 while (tempo2 ~= (tempo*1000)) do addEvent(magicEffect2, tempo2, tempo2, tempo*1000, cid) tempo2 = tempo2 + 300 end setPlayerStorageValue(cid, 102053,1) -- storage verifica transformado, quando = 1 player esta transformado. doCreatureSay(cid, "Kyuubi Furie", TALKTYPE_MONSTER) doSendMagicEffect(position129, 130) else doPlayerSendCancel(cid, "Sorry, you are transformed.") end end -
Yugami's post in (Resolvido)Arrumar o Comando De Teleport was marked as the answerIrei Test,logo editarei aki
--Edited--
não funcionou amigo :'C
--New--
podem Fechar o topico ai fis uma coisa aki que deu certinho Rep+ por tentarem ajuda