Poke-Tibia
¿Quieres reaccionar a este mensaje? Regístrate en el foro con unos pocos clics o inicia sesión para continuar.


Aqui encontraras todo para tu server de pokemon
 
ÍndiceÚltimas imágenesBuscarRegistrarseConectarse
Conectarse
Nombre de Usuario:
Contraseña:
Entrar automáticamente en cada visita: 
:: Recuperar mi contraseña
Últimos temas
» Nuevo server de pokemon tibia !
[Mod] Lottery Sytem I_icon_minitimeSáb Nov 17, 2012 6:50 pm por sebaseba0

» [8.7] Servidor LaTibia: La mejor forma de jugar TIBIA en Español y con Sonido
[Mod] Lottery Sytem I_icon_minitimeMar Abr 24, 2012 3:05 am por latibia

» Se Ocupa Gente Responsable
[Mod] Lottery Sytem I_icon_minitimeLun Abr 16, 2012 7:39 pm por yoshi0012

» AyudaxDxdxdxdxdxdxdxd
[Mod] Lottery Sytem I_icon_minitimeVie Feb 24, 2012 3:23 am por Rigby

» Pokemon V6 Revisado
[Mod] Lottery Sytem I_icon_minitimeVie Ene 27, 2012 1:27 am por GOD Ekiizde

» Mi serv Crashea!
[Mod] Lottery Sytem I_icon_minitimeVie Ene 27, 2012 1:22 am por GOD Ekiizde

» Una duda sobre este foro
[Mod] Lottery Sytem I_icon_minitimeVie Ene 27, 2012 1:13 am por GOD Ekiizde

» Nuevo Ot Pokemon Dedicado 24/7
[Mod] Lottery Sytem I_icon_minitimeVie Nov 11, 2011 12:46 pm por Psycho

» Move System 90%
[Mod] Lottery Sytem I_icon_minitimeVie Oct 14, 2011 1:27 am por demon088

MegaUpload
Mejores posteadores
Psycho
[Mod] Lottery Sytem Vote_lcap[Mod] Lottery Sytem Voting_bar[Mod] Lottery Sytem Vote_rcap 
Admin Yerenix
[Mod] Lottery Sytem Vote_lcap[Mod] Lottery Sytem Voting_bar[Mod] Lottery Sytem Vote_rcap 
GOD Ekiizde
[Mod] Lottery Sytem Vote_lcap[Mod] Lottery Sytem Voting_bar[Mod] Lottery Sytem Vote_rcap 
god joker
[Mod] Lottery Sytem Vote_lcap[Mod] Lottery Sytem Voting_bar[Mod] Lottery Sytem Vote_rcap 
demon088
[Mod] Lottery Sytem Vote_lcap[Mod] Lottery Sytem Voting_bar[Mod] Lottery Sytem Vote_rcap 
Rigby
[Mod] Lottery Sytem Vote_lcap[Mod] Lottery Sytem Voting_bar[Mod] Lottery Sytem Vote_rcap 
yoshi0012
[Mod] Lottery Sytem Vote_lcap[Mod] Lottery Sytem Voting_bar[Mod] Lottery Sytem Vote_rcap 
latibia
[Mod] Lottery Sytem Vote_lcap[Mod] Lottery Sytem Voting_bar[Mod] Lottery Sytem Vote_rcap 
sebaseba0
[Mod] Lottery Sytem Vote_lcap[Mod] Lottery Sytem Voting_bar[Mod] Lottery Sytem Vote_rcap 
Afiliados...
dpchos | Soluciones Virtuales
dpchost | Soluciones Virtuales

 

 [Mod] Lottery Sytem

Ir abajo 
2 participantes
AutorMensaje
Admin Yerenix
Admin
Admin



Mensajes : 7
Reputación : 1
Fecha de inscripción : 13/09/2011

[Mod] Lottery Sytem Empty
MensajeTema: [Mod] Lottery Sytem   [Mod] Lottery Sytem I_icon_minitimeMiér Sep 14, 2011 9:25 pm

Esto sirve para Tibia y Pokemon

Primero vayan a Tuserver/Mods/Crean un archivo Xml con el nombre que quieran y adentro Ponen esto

Código:
<mod name="Lottery System" version="1.0" author="Chojrak" contact="chojrak@otland.net" enabled="no">
  <config name="lottery">
  <![CDATA[
      config = {
        broadcast = true,
        rewards = {
            -- Item ID[, count]
            {2160, 5},
            {5958, 1},
            {2335, 1},
            {2336, 1},
            {2337, 1},
            {2338, 1},
            {2339, 1},
            {2340, 1},
            {5942, 1},
            {5953, 1},
            {6103, 1},
            {8266, 1},
            {5792, 1},
            {2361, 1},
            {6571, 1},
            {2374, 1},
            {6572, 1},
            {2260, 10},
            {3960, 1},
            {5875, 1},
            {5958, 1}
        }
      }
  ]]>
  </config>
  <globalevent name="lottery" interval="5400" event="script">
  <![CDATA[
      domodlib("lottery")
      function onThink(interval, lastExecution)
        local list = getPlayersOnline()
        if (#list == 0) then
            return true
        end

        local winner = list[math.random(#list)]
        local item = config.rewards[math.random(#config.rewards)]

        doPlayerAddItem(winner, item[1], item[2] or 1)
        if (config.broadcast) then
            doBroadcastMessage(".: Lottery System :.\nWinner: ".. getCreatureName(winner) .."\nReward: ".. getItemNameById(item[1]) .."\nNext lottery in ".. interval / 60 .." minutes.")
        end
        return true
      end
  ]]>
</globalevent>
</mod>

Se puede Variar Los Item cambiandoles Esto
{6571, 1},
{ID de Item, Cantidad},
Volver arriba Ir abajo
https://poke-tibia.activo.mx
Psycho
Spriter
Spriter



Mensajes : 8
Reputación : 2
Fecha de inscripción : 13/09/2011
Edad : 39
Localización : Peru

[Mod] Lottery Sytem Empty
MensajeTema: Re: [Mod] Lottery Sytem   [Mod] Lottery Sytem I_icon_minitimeJue Sep 15, 2011 11:11 am

Muy buen trabajo man Rep++
Volver arriba Ir abajo
http://po-psycho.sytes.net
 
[Mod] Lottery Sytem
Volver arriba 
Página 1 de 1.

Permisos de este foro:No puedes responder a temas en este foro.
Poke-Tibia :: Tus Trabajos :: Scripts :: Mods-
Cambiar a: