OTServ
¿Quieres reaccionar a este mensaje? Regístrate en el foro con unos pocos clics o inicia sesión para continuar.
Dirección Ip
[Movement] Anti AFK 3
Conectarse

Recuperar mi contraseña

Buscar
 
 

Resultados por:
 

 


Rechercher Búsqueda avanzada

Mejores posteadores
XxStroksxX (463)
[Movement] Anti AFK Vote1111[Movement] Anti AFK Vote2111[Movement] Anti AFK Vote3111 
~*~[:Đαяќ:]~[:тιβια:]~*~ (366)
[Movement] Anti AFK Vote1111[Movement] Anti AFK Vote2111[Movement] Anti AFK Vote3111 
spoor (83)
[Movement] Anti AFK Vote1111[Movement] Anti AFK Vote2111[Movement] Anti AFK Vote3111 
Dj Pacos (73)
[Movement] Anti AFK Vote1111[Movement] Anti AFK Vote2111[Movement] Anti AFK Vote3111 
God Skit (68)
[Movement] Anti AFK Vote1111[Movement] Anti AFK Vote2111[Movement] Anti AFK Vote3111 
GoD MexicanSoul (40)
[Movement] Anti AFK Vote1111[Movement] Anti AFK Vote2111[Movement] Anti AFK Vote3111 
fuzzy (35)
[Movement] Anti AFK Vote1111[Movement] Anti AFK Vote2111[Movement] Anti AFK Vote3111 
Eddie (31)
[Movement] Anti AFK Vote1111[Movement] Anti AFK Vote2111[Movement] Anti AFK Vote3111 
GOD Chimito (30)
[Movement] Anti AFK Vote1111[Movement] Anti AFK Vote2111[Movement] Anti AFK Vote3111 
conalep1996 (23)
[Movement] Anti AFK Vote1111[Movement] Anti AFK Vote2111[Movement] Anti AFK Vote3111 

Últimos temas
» [???] [Super Naruto OT]
[Movement] Anti AFK Icon_m10Lun Jun 08, 2015 12:08 pm por keishmer91

» [ACTION] God/GM da item a un player
[Movement] Anti AFK Icon_m10Mar Dic 02, 2014 12:53 pm por hecmanos

» [8.60] Nuevo War Thais By TheRobertxon
[Movement] Anti AFK Icon_m10Vie Jun 20, 2014 10:56 am por luismc

» [7.92]Naruto Final Story!
[Movement] Anti AFK Icon_m10Dom Mayo 26, 2013 2:40 am por ricardotuck

» [9.1] Fun Server
[Movement] Anti AFK Icon_m10Mar Mayo 14, 2013 5:32 pm por skifer

» [9.1] The Forgotten Server v0.2.11pl2 (Mystic Spirit)
[Movement] Anti AFK Icon_m10Mar Mayo 14, 2013 5:29 pm por skifer

» New Map 8.60 (Darksystem) By: Turock & Gilio LIsto Arreglado El
[Movement] Anti AFK Icon_m10Mar Mayo 07, 2013 5:27 pm por tonyso

» Ocean Clasic Global Map 8.6
[Movement] Anti AFK Icon_m10Miér Mayo 01, 2013 11:19 pm por maganiua

» ayuda a abrir puertos
[Movement] Anti AFK Icon_m10Lun Abr 29, 2013 5:58 pm por XxStroksxX

» [8.60] Speedy War
[Movement] Anti AFK Icon_m10Dom Abr 28, 2013 5:51 pm por Sunnade'Audio

Upload Images
ImagesHack
Scanner
VirusTotal

[Movement] Anti AFK

2 participantes

Ir abajo

[Movement] Anti AFK Empty [Movement] Anti AFK

Mensaje por XxStroksxX Jue Ene 20, 2011 9:44 am

como siempre partamos por lo creditos y no no son mios :B
Script by Maestrial (99.9%)
XxStroksxX (0.1%) por traerlo nota: de todas manero meresco rep++ Sad

Explicación:
Cuando el jugador pisa en piso,el envío de un mensaje que dice que si
él no se movió en unos minutos, se le enviara al templo y será
automáticamente kikado.

en Data/movements crea un archivo.lua llamado autokic
Código:
--[[ Script by Maestrial ]]--
--[[ Updated by Vodkart And MatheusMkalo ]]--

local config = { 
tempo = 15 , -- Tempo em minutos 
storage = 20000, -- não mexa aqui 
teleport = {x=160, y=54, z=7} -- coordenadas do seu templo 

 
function onStepIn(cid, item, frompos, topos) 
if getPlayerStorageValue(cid, config.storage) <= 0 then 
kick1 = addEvent(setPlayerStorageValue, config.tempo*60*1000-1000, cid, config.storage, -1) 
kick2 = addEvent(doTeleportThing, config.tempo*60*1000-500, cid, config.teleport) 
kick = addEvent(doRemoveCreature, config.tempo*60*1000, cid) 
doPlayerSendTextMessage(cid,
22, "[Trainer]: Movimente-se a cada " .. config.tempo .. " minutos,
caso contrário, seu char será deslogado.") 
setPlayerStorageValue(cid, config.storage, 1) 
end 
end 
 
function onStepOut(cid, item, frompos, topos) 
if getPlayerStorageValue(cid, config.storage) >= 1 then 
setPlayerStorageValue(cid, config.storage, -1) 
doPlayerSendTextMessage(cid, 23, "System kick off!") 
stopEvent(kick) 
stopEvent(kick1) 
stopEvent(kick2) 
end 
end

movements.xml add tag:
Código:
<movevent type="StepIn" actionid="25000" event="script" value="autokick.lua"/>
<movevent type="StepOut" actionid="25000" event="script" value="autokick.lua"/>
XxStroksxX
XxStroksxX

+ Administrador +
+ Administrador +

¡Sorcerer Rapero!
Masculino España Géminis Cerdo
Chrome
Edad Edad : 28
Mensajes Mensajes : 463
Localización Localización : Barcelona
Fecha de inscripción Fecha de inscripción : 01/08/2010

Hoja de personaje
Personaje: Khail Phount
Vocation: Knight
Mundo: Infernia

http://www.otserv.biz/

Volver arriba Ir abajo

[Movement] Anti AFK Empty Re: [Movement] Anti AFK

Mensaje por ~*~[:Đαяќ:]~[:тιβια:]~*~ Sáb Ene 29, 2011 4:14 pm

buena we pero ya te di maximo rep XDDDD
~*~[:Đαяќ:]~[:тιβια:]~*~
~*~[:Đαяќ:]~[:тιβια:]~*~

+ Moderador +
+ Moderador +

*~Elder Wolf~*
Masculino Mexico Virgo Cerdo
Chrome
Edad Edad : 28
Mensajes Mensajes : 366
Localización Localización : :O ala versh XD
Fecha de inscripción Fecha de inscripción : 29/01/2011

http://www.chaosserv.no-ip.info

Volver arriba Ir abajo

Volver arriba

- Temas similares

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