Ir para conteúdo
  • 0

Script Que Leve Até Tal Lugar


Tiagone

Pergunta

ai pessoal queria um spells que levase para tal luga que quando o player q usou a magia fosse para esse tal luga seus skills aumentase e target que foi junto n possa anda e nem q seus skills suma e que quando um player tive la dentro otro player n possa usa esse spells e que tenha otra magia q saia de dentro dessa tal area

Link para o comentário
https://xtibia.com/forum/topic/216006-script-que-leve-at%C3%A9-tal-lugar/
Compartilhar em outros sites

2 respostass a esta questão

Posts Recomendados

tenta isso:

function onCastSpell(cid, var)

local pos = getCreaturePosition(cid)
local target = getCreatureTarget(cid)
local targetpos = getCreaturePosition(target)

local Tile1 = {x=?, y=?, z=?} -- position onde o player sera teleportado
local Tile2 = {x=?, y=?, z=?} -- position onde o target sera teleportado
local from,to = {x=?, y=?, z=?},{x=?, y=?, z=?} -- ponto 1 ao ponto 2 da area em que ele sera teleportado
local time = 15 -- tempo em segundos para voltar
local points = 80 -- o tanto de skills ele ficara mais forte

local condition = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition, CONDITION_PARAM_TICKS, time*1000)
setConditionParam(condition, CONDITION_PARAM_STAT_MAGICLEVEL, points)
setConditionParam(condition, CONDITION_PARAM_SKILL_FIST, points)
setConditionParam(condition, CONDITION_PARAM_SKILL_SWORD, points)
setConditionParam(condition, CONDITION_PARAM_SKILL_AXE, points)
setConditionParam(condition, CONDITION_PARAM_SKILL_CLUB, points)
setConditionParam(condition, CONDITION_PARAM_SKILL_DISTANCE, points)
setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELD, points)
setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE)

if isInRange(pos, from, to) then
doPlayerSendCancel(cid, "Você nao pode usar o Tsukuyomi World aqui!")
return FALSE
end

local function Teleport_Player(cid)
doTeleportThing(cid,pos)
end

local function Teleport_Target(target)
doCreatureSetNoMove(target, 0)
doTeleportThing(target,targetpos)
end

doAddCondition(cid, condition)
doCreatureSetNoMove(target, 1)
doTeleportThing(cid,Tile1)
doTeleportThing(target,Tile2)
doSendMagicEffect(targetpos, 182)
addEvent(Teleport_Player, time*1000, cid)
addEvent(Teleport_Target, time*1000, target)
return TRUE
end

 

eu fiz meio que correndo esse script, caso nao dar avisa porque eu nem testei por falta de tempo

Link para o comentário
https://xtibia.com/forum/topic/216006-script-que-leve-at%C3%A9-tal-lugar/#findComment-1530914
Compartilhar em outros sites

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

×
×
  • Criar Novo...