local msgunicago1, msgunicaback1 = "Go, doka!", "Come back, doka!"
local msgunicago2, msgunicaback2 = "Let's do it, doka!", "Thanks for helping, doka!"
local msgunicago3, msgunicaback3 = "I choose you, doka!", "That's enough, come back!"
local msgunicago4, msgunicaback4 = "I need your help, doka!", "You were great, doka!"
local msgunicago5, msgunicaback5 = "Let's fight, doka!", "Excellent work, doka!"
local msgunicago6, msgunicaback6 = "It's battle time, doka!", "Well done, doka!"
function onUse(cid, item, frompos, item2, topos)
setPlayerStorageValue(cid,9506,-1)
if #getCreatureSummons(cid) >= 1 and getPlayerStorageValue(getCreatureSummons(cid)[1], 33) >= 1 then
return true
end
local random2 = math.random(1,6)
if random2 == 1 then
msgunicaback = msgunicaback1
elseif random2 == 2 then
msgunicaback = msgunicaback2
elseif random2 == 3 then
msgunicaback = msgunicaback3
elseif random2 == 4 then
msgunicaback = msgunicaback4
elseif random2 == 5 then
msgunicaback = msgunicaback5
elseif random2 == 6 then
msgunicaback = msgunicaback6
end
local random = math.random(1,6)
if random == 1 then
msgunicago = msgunicago1
elseif random == 2 then
msgunicago = msgunicago2
elseif random == 3 then
msgunicago = msgunicago3
elseif random == 4 then
msgunicago = msgunicago4
elseif random == 5 then
msgunicago = msgunicago5
elseif random == 6 then
msgunicago = msgunicago6
end
if item.itemid == 2222 or item.itemid == 2223 then
gobackeff = 188
elseif item.itemid == 8775 or item.itemid == 8996 then
gobackeff = 188
elseif item.itemid == 2220 or item.itemid == 2221 then
gobackeff = 191
elseif item.itemid == 11438 or item.itemid == 11439 then
gobackeff = 189
elseif item.itemid == 11442 or item.itemid == 11443 then
gobackeff = 190
elseif item.itemid == 11446 or item.itemid == 11447 then
gobackeff = 195
elseif item.itemid == 11449 or item.itemid == 11450 then
gobackeff = 194
elseif item.itemid == 11452 or item.itemid == 11453 then
gobackeff = 192
elseif item.itemid == 11455 or item.itemid == 11456 then
gobackeff = 193
elseif item.itemid == 11458 or item.itemid == 11459 then
gobackeff = 196
end
local effect = gobackeff
if item.itemid == 2223 or item.itemid == 2221 or item.itemid == 11439 or item.itemid == 11443 or item.itemid == 11447 or item.itemid == 11450 or item.itemid == 11453 or item.itemid == 11456 or item.itemid == 11459 then
if #getCreatureSummons(cid) >= 1 then
local z = getCreatureSummons(cid)[1]
local pokename = getCreatureName(z)
local mbk = msgunicaback:gsub("doka", pokename)
if getItemAttribute(item.uid, "poke"):find(getCreatureName(z)) then
doTransformItem(item.uid, item.itemid-1)
doCreatureSay(cid, mbk, TALKTYPE_SAY)
local summom = getCreatureSummons(cid)
local maxh = pokes[getCreatureName(summom[1])].vida
local pct2 = ((getCreatureHealth(summom[1])) / (getCreatureMaxHealth(summom[1])))
elseif item.itemid == 2222 or item.itemid == 8775 or item.itemid == 8996 or item.itemid == 2220 or item.itemid == 11438 or item.itemid == 11442 or item.itemid == 11446 or item.itemid == 11449 or item.itemid == 11452 or item.itemid == 11455 or item.itemid == 11458 then
if item.uid ~= getPlayerSlotItem(cid, CONST_SLOT_FEET).uid then
doPlayerSendCancel(cid, "You must put your pokeball in the correct place!")
info
Grupo: Campones
Registrado: 06/12/10
Posts: 14
Reputação: 0
Achei esse script aqui no forum : http://www.xtibia.co...cone-nas-balls/
Mas é para o Pokemon Dash Adventures, eu tenho um server antigo q não tem na pasta lib o Configurations.lua e os arquivos são diferentes...
Queria que alguem me ajudasse a implantar esse sistema no meu server , vou postar alguns scripts...
data\actions\scripts\goback.lua
data\actions\scripts\catch.lua
data\talkactions\scripts\createpokeball.lua
Esse script é um comando que faz o pokemon
Se presisar de mais algum script eu passo...
Me ajudem por favorrr ;s