OTPearl
¿Quieres reaccionar a este mensaje? Regístrate en el foro con unos pocos clics o inicia sesión para continuar.
Noticias!
07-02-10: El chat siempre esta abierto entren.
Últimos temas
» [8.54] Alissow Ots 3.7
Talkaction Freeze Player Icon_minitimeSáb Dic 21, 2013 10:41 am por LuisXorr

»  Servidor TIBIA OT en español y con sonido
Talkaction Freeze Player Icon_minitimeDom Sep 22, 2013 10:20 am por bombero

» BUSCO MODERADOSRES
Talkaction Freeze Player Icon_minitimeSáb Mayo 11, 2013 4:17 pm por joedwin

» Armada Azteca Map By God Shaotick - Helpserver
Talkaction Freeze Player Icon_minitimeMiér Mayo 16, 2012 7:31 pm por Fargos

» 8.60 Tibianosmx.sytes.net Servidor Dedicado
Talkaction Freeze Player Icon_minitimeMar Feb 14, 2012 2:37 pm por tibianosmx

» [8.54] The Forgotten Server 0.3.6 (Crying Damson)
Talkaction Freeze Player Icon_minitimeMiér Dic 14, 2011 10:08 pm por maikel

» abrir puertos de tibia con thomson tg585 v8
Talkaction Freeze Player Icon_minitimeDom Jun 05, 2011 11:15 am por God Yoter

» [8.54] Yurots By Miguelito
Talkaction Freeze Player Icon_minitimeMar Abr 05, 2011 9:24 pm por Onyx

» Gesior Account Maker for TFS 0.3.6
Talkaction Freeze Player Icon_minitimeJue Feb 10, 2011 10:57 am por CacheroXx

Navegación
 Portal
 Índice
 Miembros
 Perfil
 FAQ
 Buscar
¿Quién está en línea?
En total hay 1 usuario en línea: 0 Registrados, 0 Ocultos y 1 Invitado

Ninguno

[ Ver toda la lista ]


El record de usuarios en línea fue de 21 durante el Jue Feb 01, 2024 7:28 am
Compañeros
Crear foro
OH

Talkaction Freeze Player

2 participantes

Ir abajo

Talkaction Freeze Player Empty Talkaction Freeze Player

Mensaje por GoD GoGal Jue Feb 18, 2010 11:30 am

Bueno esta es una talkaction para que un player no se pueda mover cuando digas el comando aqui les dejo una imagen
[Tienes que estar registrado y conectado para ver este vínculo]
bueno se van a data/talkactions/scripts copian un archivo lo pegan y le borran todo y de name le ponen stop y ponen esto adentro

local condition1 = createConditionObject(CONDITION_INFIGHT)
local condition2 = createConditionObject(CONDITION_EXHAUST)
local condition3 = createConditionObject(CONDITION_MUTED)
setConditionParam(condition1, CONDITION_PARAM_TICKS, -1)
setConditionParam(condition2, CONDITION_PARAM_TICKS, -1)
setConditionParam(condition3, CONDITION_PARAM_TICKS, -1)

function onSay(cid, words, param)
if(param == "") then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Name required.")
return TRUE
end

local player = getPlayerByNameWildcard(param)
local pos = getCreaturePosition(player)

local nha = {x = pos.x, y = pos.y - 3, z = pos.z, stackpos = 255}
local sha = {x = pos.x, y = pos.y + 3, z = pos.z, stackpos = 255}
local wha = {x = pos.x - 3, y = pos.y, z = pos.z, stackpos = 255}
local eha = {x = pos.x + 3, y = pos.y, z = pos.z, stackpos = 255}
local nwa = {x = pos.x - 2, y = pos.y - 2, z = pos.z, stackpos = 255}
local nea = {x = pos.x + 2, y = pos.y - 2, z = pos.z, stackpos = 255}
local sea = {x = pos.x + 2, y = pos.y + 2, z = pos.z, stackpos = 255}
local swa = {x = pos.x - 2, y = pos.y + 2, z = pos.z, stackpos = 255}
if getPlayerGroupId(cid) >= getPlayerGroupId(player) then
if getPlayerStorageValue(player, 12346) < 0 then
if((doCreatureSetNoMove(player, 1))== LUA_ERROR) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Error.")
end
setPlayerStorageValue(player, 12346, 1)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player can now not move.")
doSendAnimatedText(getCreaturePosition(player), "Frozen", 64)
doSendDistanceShoot(nha, pos, 28)
doSendDistanceShoot(sha, pos, 28)
doSendDistanceShoot(wha, pos, 28)
doSendDistanceShoot(eha, pos, 28)
doSendDistanceShoot(nwa, pos, 28)
doSendDistanceShoot(nea, pos, 28)
doSendDistanceShoot(sea, pos, 28)
doSendDistanceShoot(swa, pos, 28)
doSendMagicEffect(pos, 52)
doAddCondition(player, condition1)
doAddCondition(player, condition2)
doAddCondition(player, condition3)
elseif getPlayerStorageValue(player, 12346) >= 0 then
if((doCreatureSetNoMove(player, 0))== LUA_ERROR) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Error.")
end
setPlayerStorageValue(player, 12346, -1)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player can now move again.")
doSendAnimatedText(getCreaturePosition(player), "Can Move", 168)
doSendDistanceShoot(pos, nha, 37)
doSendDistanceShoot(pos, sha, 37)
doSendDistanceShoot(pos, wha, 37)
doSendDistanceShoot(pos, eha, 37)
doSendDistanceShoot(pos, nwa, 37)
doSendDistanceShoot(pos, nea, 37)
doSendDistanceShoot(pos, sea, 37)
doSendDistanceShoot(pos, swa, 37)
doSendMagicEffect(pos, 49)
doRemoveCondition(cid, CONDITION_INFIGHT)
doRemoveCondition(cid, CONDITION_EXHAUST)
doRemoveCondition(cid, CONDITION_MUTED)
end
end
return TRUE
end


y despues se van a talkactions.xml y ponen esto
<talkaction log="yes" access="3" words="/stop" event="script" value="stop.lua"/>

By Admin Jontz
GoD GoGal
GoD GoGal

Mensajes : 5
Fecha de inscripción : 18/02/2010

Volver arriba Ir abajo

Talkaction Freeze Player Empty Re: Talkaction Freeze Player

Mensaje por Darks Jue Feb 18, 2010 2:56 pm

Muy Bueno jeje, sigue asi !!
Darks
Darks
XMOD
XMOD

Mensajes : 130
Fecha de inscripción : 07/02/2010
Edad : 28
Localización : Venezuela

http://www.wc3latino.forosactivos.net

Volver arriba Ir abajo

Volver arriba


 
Permisos de este foro:
No puedes responder a temas en este foro.