[Talkaction] Love system para Poketibia
Poketibia Script :: OPTS - Open Poketibia Server :: Zona do Scripter :: Actions, Talkactions & Moveevents
Página 1 de 1
[Talkaction] Love system para Poketibia
Autor: ThedevilZ
Love.lua
Tag no Talkactions.xml
Como funciona?
Diga !love com seu pokémon sumonado e o sangue dele vai aumentando aos poucos.
Love.lua
- Código:
function onSay(cid,param,words)
if #getCreatureSummons(cid) == 0 then
doPlayerSendCancel(cid, "You need a pokemon to Love.")
return true
end
function Say()
local jui = getCreatureSummons(cid)[1]
max = (2*getCreatureMaxHealth(jui))--Life em porcentagem que ira curar 2*
hp = (max/100)
doCreatureAddHealth(jui,hp)
doSendMagicEffect(getThingPos(jui), 180)--Effect no poke
doSendAnimatedText(getCreaturePosition(jui), "I Also.", math.random(1, 110)) local summons = getCreatureSummons(cid)--Fala que o poke ira falar
return true
end
if exhaustion.check(cid, 25680) then---exhausted storage
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have to wait ".. exhaustion.get(cid, 25680) .." seconds.")---exhausted msg
return true
end
doSendAnimatedText(getCreaturePosition(cid), "Love You.", math.random(1, 110))--Fala que o player era dizer
doSendMagicEffect(getThingPos(cid), 180)--effect
exhaustion.make(cid, 25680, 250)--tempo exhausted
addEvent(Say,3000)--Tempo em seg que depois retornara para mostrar effect no poke e healar ele
return true
end
Tag no Talkactions.xml
- Código:
<talkaction words="!love" event="script" value="love.lua" />
Como funciona?
Diga !love com seu pokémon sumonado e o sangue dele vai aumentando aos poucos.
Tópicos semelhantes
» [Talkaction] Advanced reset System
» [Talkaction] Ranking de treinadores
» [Talkaction] Proibir player de xingar GOD
» [Talkaction] Pokemon Falando
» [talkaction] sistema de ataque (m1,m2,m3...)
» [Talkaction] Ranking de treinadores
» [Talkaction] Proibir player de xingar GOD
» [Talkaction] Pokemon Falando
» [talkaction] sistema de ataque (m1,m2,m3...)
Poketibia Script :: OPTS - Open Poketibia Server :: Zona do Scripter :: Actions, Talkactions & Moveevents
Página 1 de 1
Permissões neste sub-fórum
Não podes responder a tópicos
|
|