Poketibia Script
Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.

[Talkaction] Love system para Poketibia

Ir para baixo

[Talkaction] Love system para Poketibia Empty [Talkaction] Love system para Poketibia

Mensagem por Matheus Sáb Jun 04, 2011 3:18 pm

Autor: ThedevilZ

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.
Matheus
Matheus
Administrador
Administrador

Mensagens : 61
Placar : 207
Data de inscrição : 25/04/2011
Idade : 28
Localização : Campinas - SP

https://pokescript.forumeiros.com

Ir para o topo Ir para baixo

Ir para o topo

- Tópicos semelhantes

 
Permissões neste sub-fórum
Não podes responder a tópicos