The World of Open Tibia
Hola bienvenido a word open-tibia si quieres pertenecer a esta comunidad solo registrate, es fácil y sencillo Gracias por tu preferencia.

Aqui encontraras cosas de calidad.
The World of Open Tibia
Hola bienvenido a word open-tibia si quieres pertenecer a esta comunidad solo registrate, es fácil y sencillo Gracias por tu preferencia.

Aqui encontraras cosas de calidad.
The World of Open Tibia
¿Quieres reaccionar a este mensaje? Regístrate en el foro con unos pocos clics o inicia sesión para continuar.


encontraras aquí todo sobre open-tibia
 
ÍndiceBuscarÚltimas imágenesRegistrarseConectarse
Afiliados
 [Action] Fishy Fishy Mini-Game Two10  [Action] Fishy Fishy Mini-Game Two110
Conectarse
Nombre de Usuario:
Contraseña:
Entrar automáticamente en cada visita: 
:: Recuperar mi contraseña
Miembros que empiezan más temas
Belloz
 [Action] Fishy Fishy Mini-Game I_vote_lcap [Action] Fishy Fishy Mini-Game I_voting_bar [Action] Fishy Fishy Mini-Game I_vote_rcap 
Darko0
 [Action] Fishy Fishy Mini-Game I_vote_lcap [Action] Fishy Fishy Mini-Game I_voting_bar [Action] Fishy Fishy Mini-Game I_vote_rcap 
Kiba
 [Action] Fishy Fishy Mini-Game I_vote_lcap [Action] Fishy Fishy Mini-Game I_voting_bar [Action] Fishy Fishy Mini-Game I_vote_rcap 
Cronox
 [Action] Fishy Fishy Mini-Game I_vote_lcap [Action] Fishy Fishy Mini-Game I_voting_bar [Action] Fishy Fishy Mini-Game I_vote_rcap 
Darkens
 [Action] Fishy Fishy Mini-Game I_vote_lcap [Action] Fishy Fishy Mini-Game I_voting_bar [Action] Fishy Fishy Mini-Game I_vote_rcap 
Falcón
 [Action] Fishy Fishy Mini-Game I_vote_lcap [Action] Fishy Fishy Mini-Game I_voting_bar [Action] Fishy Fishy Mini-Game I_vote_rcap 
Hazardous
 [Action] Fishy Fishy Mini-Game I_vote_lcap [Action] Fishy Fishy Mini-Game I_voting_bar [Action] Fishy Fishy Mini-Game I_vote_rcap 
angel.maclish
 [Action] Fishy Fishy Mini-Game I_vote_lcap [Action] Fishy Fishy Mini-Game I_voting_bar [Action] Fishy Fishy Mini-Game I_vote_rcap 
Alush
 [Action] Fishy Fishy Mini-Game I_vote_lcap [Action] Fishy Fishy Mini-Game I_voting_bar [Action] Fishy Fishy Mini-Game I_vote_rcap 
Kashort
 [Action] Fishy Fishy Mini-Game I_vote_lcap [Action] Fishy Fishy Mini-Game I_voting_bar [Action] Fishy Fishy Mini-Game I_vote_rcap 
Mejores posteadores
Belloz
 [Action] Fishy Fishy Mini-Game I_vote_lcap [Action] Fishy Fishy Mini-Game I_voting_bar [Action] Fishy Fishy Mini-Game I_vote_rcap 
Kiba
 [Action] Fishy Fishy Mini-Game I_vote_lcap [Action] Fishy Fishy Mini-Game I_voting_bar [Action] Fishy Fishy Mini-Game I_vote_rcap 
Darko0
 [Action] Fishy Fishy Mini-Game I_vote_lcap [Action] Fishy Fishy Mini-Game I_voting_bar [Action] Fishy Fishy Mini-Game I_vote_rcap 
Darkens
 [Action] Fishy Fishy Mini-Game I_vote_lcap [Action] Fishy Fishy Mini-Game I_voting_bar [Action] Fishy Fishy Mini-Game I_vote_rcap 
Alush
 [Action] Fishy Fishy Mini-Game I_vote_lcap [Action] Fishy Fishy Mini-Game I_voting_bar [Action] Fishy Fishy Mini-Game I_vote_rcap 
angel.maclish
 [Action] Fishy Fishy Mini-Game I_vote_lcap [Action] Fishy Fishy Mini-Game I_voting_bar [Action] Fishy Fishy Mini-Game I_vote_rcap 
Hazardous
 [Action] Fishy Fishy Mini-Game I_vote_lcap [Action] Fishy Fishy Mini-Game I_voting_bar [Action] Fishy Fishy Mini-Game I_vote_rcap 
Falcón
 [Action] Fishy Fishy Mini-Game I_vote_lcap [Action] Fishy Fishy Mini-Game I_voting_bar [Action] Fishy Fishy Mini-Game I_vote_rcap 
Cronox
 [Action] Fishy Fishy Mini-Game I_vote_lcap [Action] Fishy Fishy Mini-Game I_voting_bar [Action] Fishy Fishy Mini-Game I_vote_rcap 
Maniatiko™
 [Action] Fishy Fishy Mini-Game I_vote_lcap [Action] Fishy Fishy Mini-Game I_voting_bar [Action] Fishy Fishy Mini-Game I_vote_rcap 
Últimos temas
» afililiacion Tibiaguys
 [Action] Fishy Fishy Mini-Game EmptyMar Mayo 20, 2014 12:50 am por fernando1027

» Mi segundo spite :)
 [Action] Fishy Fishy Mini-Game EmptySáb Dic 08, 2012 9:54 pm por icaros

» New Aggrox ot 8.60 Edited
 [Action] Fishy Fishy Mini-Game EmptySáb Nov 03, 2012 4:42 pm por <Fercho>

» Afiliación a Stylez Records
 [Action] Fishy Fishy Mini-Game EmptyMar Oct 30, 2012 5:23 pm por Darko0

» [Sugerencia]Colocar una radio online por el foro
 [Action] Fishy Fishy Mini-Game EmptyJue Oct 25, 2012 6:56 am por Carlos Reguera DJ

» Server Map Rl 8.60
 [Action] Fishy Fishy Mini-Game EmptyDom Oct 07, 2012 6:28 pm por Vizellzhs

» Instalar Contenido Pago en tu Web
 [Action] Fishy Fishy Mini-Game EmptyJue Ago 30, 2012 8:34 pm por Darko0

» [Herramienta] Remere's Map Editor 3.0 [BETA]
 [Action] Fishy Fishy Mini-Game EmptyLun Ago 27, 2012 11:02 am por Darko0

» War map 8.60
 [Action] Fishy Fishy Mini-Game EmptyLun Ago 27, 2012 10:57 am por Darko0

Argumentos más vistos
Paquete de Nuevas Armas , Outfits , Granadas etc. [GOW] FREE!
New Aggrox ot 8.60 Edited
[BIBLIOTECA]Todas Las Versiones De Open Tibia
Concurso Mapping !
Mis sprites :Darko0
[8.60] AtomicsOT [CUSTOM]
Angel.Maclish Sprites
Como agregar Efectos a tu cliente!
Comandos Guild channel
Mi segundo spite :)

 

  [Action] Fishy Fishy Mini-Game

Ir abajo 
3 participantes
AutorMensaje
angel.maclish
Moderador Global
Moderador Global
angel.maclish


Posts : 40
Points : 54
Reputation : 0
Join date : 13/07/2012
Location : LPZ

 [Action] Fishy Fishy Mini-Game Empty
MensajeTema: [Action] Fishy Fishy Mini-Game    [Action] Fishy Fishy Mini-Game EmptyVie Jul 13, 2012 11:36 pm

Introducción
Este sistema trata de un miní-juego donde tienes que pescar;
En pocas palabras el juego consiste en pescar el mayor número de peces (obvio) posible, de preferencia de acuerdo sus puntuaciones, en un tiempo configurado en
el script, Algunos Items también te remueven puntos. Al final un BroadCast es enviado a todos los players del servidor con la puntuación del jugador.

Instalación:
Crean un .lua en suserver/data/actions/scripts
Código:
local config = {
fromPos = {x=92, y=115, z=6}, -- Posicao de cima da esquerda da area onde aparecerao os peixes
toPos = {x=97, y=120, z=6}, -- Posicao de baixo da direita
succEff = 30, -- Efeito ao acertar um peixe
failEff = 29, -- Efeito ao acertar um item
missEff = 2, -- Efeito ao peixe sumir
fishEff = 1, -- Efeito ao peixe aparecer
startTBS = 3500, -- Tempo de delay entre a criacao de peixes (diminui 200 por rodada)
fishingTime = 60, -- Tempo em que o player jogará em segundos
storageRunning = 29311, -- Uma storage que esteja livre
countdownTime = 5, -- in seconds -- Tempo em segundos antes do comeco do jogo
}


fishes_remove, points, fishuid, fishUser = {}, 0, 1000, 0

local fishes = {
[2009] = {pt=-5, ch={1,15}, sp=3},
[2667] = {pt=1, ch={16,65}, sp=4},
[2669] = {pt=5, ch={66,84}, sp=3},
[7159] = {pt=10, ch={95,100}, sp=2},
[7158] = {pt=20, ch={85,94}, sp=1}
}

function doRemoveItemByPosIdUid(pos, itemid, uid)
                local itempos = pos
                for stackpos=1,255 do
                                itempos.stackpos, i = stackpos, getThingFromPos(itempos)
if i.itemid == itemid then
if getItemAttribute(i.uid, 'uid') == uid then
if doRemoveItem(i.uid, i.type) then
return true
end
end
                                end
                end
return false
end

function doSpawnFish(time, lasttbs)
local t = {{1,2},{3,4}}
local chance = math.random(1,100)
local spawn_pos = {x=math.random(config.fromPos.x, config.toPos.x),y=math.random(config.fromPos.y, config.toPos.y),z=config.fromPos.z}
for id,v in pairs(fishes) do
if(chance >= v.ch[1] and chance <= v.ch[2]) then
doSendMagicEffect(spawn_pos, config.fishEff)
local fish = doCreateItem(id, spawn_pos)
if doItemSetAttribute(fish, 'uid', fishuid) == false then end
table.insert(fishes_remove, {spawn_pos, fishuid, os.time(), id})
fishuid = fishuid+1
end
end

if (time + config.fishingTime) > os.time() then
return addEvent(function () doSpawnFish(time, math.max(math.random(600,800), lasttbs-200)) end, lasttbs)
end
end

function doRemoveFishes()
for i,v in pairs(fishes_remove) do
if (v[3] + fishes[v[4]].sp) < os.time() then
if doRemoveItemByPosIdUid(v[1], v[4], v[2]) then
doSendMagicEffect(v[1], config.missEff)
table.remove(fishes_remove, i)
elseif getGlobalStorageValue(config.storageRunning) == -1 then
table.remove(fishes_remove, i)
end
end
end
if(#fishes_remove > 0 or getGlobalStorageValue(config.storageRunning) == 1)then
return addEvent(function () doRemoveFishes() end, 500)
end
doBroadcastMessage('The player '.. getCreatureName(fishUser)..' scored '.. points ..' in fishy fishy game.')
doSendAnimatedText(getThingPos(fishUser), "FINISH!", TEXTCOLOR_RED)
points, fishuid, fishUser = 0, 1000, nil
end

function doCountdown(cid, t, msg, type)
local pos = getThingPos(cid)
if t == 0 then
doSendAnimatedText(pos, msg, type)
else
doSendAnimatedText(pos, t, type)
addEvent(function ()
doCountdown(cid, t-1, msg, type)
end, 1000)
end
end

function doCleanFishArea()
for x=config.fromPos.x, config.toPos.x do
for y = config.fromPos.y, config.toPos.y do
local cleanpos = {x=x,y=y,z=config.toPos.z, stackpos=1}
local i = getThingFromPos(cleanpos)
if i.itemid > 0 then
if doRemoveItem(i.uid) then
doSendMagicEffect(cleanpos, 2)
return doCleanFishArea()
end
end
end
end
end

function onUse(cid, item, pos, item2, topos)
if item2.uid == cid then
if getGlobalStorageValue(config.storageRunning) == -1 then
doCountdown(cid, 5, "START!", TEXTCOLOR_WHITE)
addEvent(function ()
doCleanFishArea()
doSpawnFish(os.time(), config.startTBS)
setGlobalStorageValue(config.storageRunning, 1)
doRemoveFishes()
addEvent(setGlobalStorageValue, (config.fishingTime*1000), config.storageRunning, -1)
fishUser = cid
end, config.countdownTime*1000)
else
if getCreatureName(cid) == 'Uissu' then
setGlobalStorageValue(config.storageRunning, -1)
doPlayerSendCancel(cid, "Storage reseted.")
return true
end
end
else
if getGlobalStorageValue(config.storageRunning) == -1 then return true end
if cid ~= fishUser then return true end
local f = fishes[item2.itemid]
if f then
local c = item2.type > 0 and item2.type or 1
local pts = (f.pt * c)
doRemoveItem(item2.uid)
doSendMagicEffect(topos, pts > 0 and config.succEff or config.failEff)
doSendAnimatedText(topos, pts, f.pt > 0 and TEXTCOLOR_BLUE or TEXTCOLOR_RED)
points = points + pts
doSendAnimatedText(pos, points, points > 0 and TEXTCOLOR_GREEN or TEXTCOLOR_RED)
end
end
return false
end

Configuración:
Código:
local config = {
fromPos = {x=92, y=115, z=6}, -- Posición del área donde aparecerán los pescados, Arriba a la izquierda
toPos = {x=97, y=120, z=6}, -- Posición de abajo a la derecha
succEff = 30, -- Efecto al acertar al pez
failEff = 29, -- Efecto al acertar un item
missEff = 2, -- Efecto al perder un pez
fishEff = 1, -- Efecto cuando aparece un pez
startTBS = 3500, -- Tiempo de delay entre la creación de peces (diminuir 200 por ronda)
fishingTime = 60, -- Tiempo en que el player jugará en segundos
storageRunning = 29311, -- Un storage que es gratis
countdownTime = 5, -- in seconds -- Tempo en segundos antes del comienzo del juego
}

Vídeo:
[Tienes que estar registrado y conectado para ver este vínculo]

Créditos:
Byerne 99.995% (Xtibia)(por creación del script)
Angel.Maclish 00.005% (Por traducir de Portugués a Español)


Última edición por angel.maclish el Vie Jul 13, 2012 11:38 pm, editado 1 vez (Razón : Creditos)
Volver arriba Ir abajo
Darkens
Administrador
Administrador
Darkens


Premios Premios : medalla del administrador

Posts : 52
Points : 163
Reputation : 2
Join date : 09/07/2012
Location : Two

 [Action] Fishy Fishy Mini-Game Empty
MensajeTema: Re: [Action] Fishy Fishy Mini-Game    [Action] Fishy Fishy Mini-Game EmptySáb Jul 14, 2012 10:11 am

aprobado - créditos y traducción
gracias ademas que pones créditos
Volver arriba Ir abajo
https://world-ots.forumotion.com
Belloz
Moderators
Moderators
Belloz


Premios Premios : MD

Posts : 70
Points : 159
Reputation : 1
Join date : 13/07/2012

 [Action] Fishy Fishy Mini-Game Empty
MensajeTema: Re: [Action] Fishy Fishy Mini-Game    [Action] Fishy Fishy Mini-Game EmptySáb Jul 14, 2012 1:35 pm

Aprobado.
Volver arriba Ir abajo
Contenido patrocinado





 [Action] Fishy Fishy Mini-Game Empty
MensajeTema: Re: [Action] Fishy Fishy Mini-Game    [Action] Fishy Fishy Mini-Game Empty

Volver arriba Ir abajo
 
[Action] Fishy Fishy Mini-Game
Volver arriba 
Página 1 de 1.
 Temas similares
-
» [Action] Surprise Bag
» [Action] Casino!!
» [Action] Amuleto de Exp
» [Action] Football
» [Action] Bomba by Cronox

Permisos de este foro:No puedes responder a temas en este foro.
The World of Open Tibia :: OT'S En General :: Scripts-
Cambiar a: