Cara Esse System Da Nos Server Do Thalia?
- Fórum
- OTServ
- Recursos
- Scripting
- Actions e Talkactions
- Go/back Com Pokelevel System
Go/back Com Pokelevel System
Por vitorszvitim, 03 de jan. de 2011 em Actions e Talkactions
info
Grupo: Campones
Registrado: 13/01/10
Posts: 74
Reputação: +3
Char no Tibia: Hunter Lokinho

tb quero saber se funciona no Flash e saber se tá todas as pokebola ja...(ultra, super, master, great)
![]()
info
Grupo: Campones
Registrado: 02/01/11
Posts: 13
Reputação: +9

Cara Esse System Da Nos Server Do Thalia?
se for igual me desculpe, mais te garanto que no meu próximo Script eu vou pesquisar bastante antes de postar para ter Serteza que não terá nenhum Igual
Cara Esse System Da Nos Server Do Thalia?
se for igual me desculpe, mais te garanto que no meu próximo Script eu vou pesquisar bastante antes de postar para ter Serteza que não terá nenhum Igual
Nao, nao. Ele quis dizer "O sistema funciona no Server do Thalia?" ![]()
@GMHareaOT
esse script só tem a pokeball pois o vitorszvitim só copiou o script do MatheusMkalo e colocou mais pokes só isso...
e o level pra usa os poke ja tinha no script
info
Grupo: Campones
Registrado: 06/12/10
Posts: 4
Reputação: 0
Char no Tibia: Não Tenho

aqui não funcionou, testei no do thalia e no do flash, as poke balls, estão com sprite acesa e apagada, só que estão como boots e helmets!
Editado Janeiro 3 por KuchiikiByakuya
info
Grupo: Visconde
Registrado: 03/01/11
Posts: 303
Reputação: +47

no meu tambem nao funciounou, se possivel tenta faze um pro server do thalia ou pro flash.
grato
info
Grupo: Campones
Registrado: 02/01/11
Posts: 13
Reputação: +9

no meu tambem nao funciounou, se possivel tenta faze um pro server do thalia ou pro flash.
grato
Bom. Poste o Download do Server da Thalia que eu posso dar uma revizada nele e arrumar o Script
@camcam
me desculpe se entendi errado sua pergunta...
Bom... ainda não foi testado no Server Da Thalia!
@MaGoDaNeT
Sim você está serto, por enquanto só funciona com Pokeball, e quanto ao Pokelevel System é 100% meu ainda não estava na Script Go/Back
@RicardoSohnn
Sim Ierei fazer pois os IDs de itens são Diferentes caso você tiver um conhecimento Básico em Script conseguirá modificar sem problema nenhum.
Caso não consigua poste o Download do Server da Thalia
info
Grupo: Visconde
Registrado: 03/01/11
Posts: 303
Reputação: +47

vitor me add no msn que eu te passo pra tu arrumar
-----------
vo posta os scripts de go/back e catch do thalia, ai tu edita e arruma pra min plx
go / back
function onUse(cid, item, fromPosition, itemEx, toPosition)
function getPokemonMaxLife(name)
local file = io.open('data/monster/monsters.xml','r')
local arquivo = file:read(-1):lower():match('<monster name="'..name:lower()..'" file="(.-)"/>')
file:close()
local data = io.open('data/monster/'..(arquivo or ''),'r')
if not data then
return 100
end
local maximo = data:read(-1):match('max%s*=%s*"(%d+)"')
data:close()
return maximo
end
----- Config -----
local MaximoSummon = 1
local nome = getItemName(item.uid)
local poke_name = nome:match('(.-) Pokeball')
local summons = getCreatureSummons(cid)
local action_id = getItemAttribute(item.uid, "aid")
----- Config -----
if getItemAttribute(item.uid, "aid") == -1 then
return doPlayerSendCancel(cid, "Your Pokemon Is Dead.")
end
if getPlayerStorageValue(cid, 25000) == 5 then
return doPlayerSendCancel(cid, "You are riding.")
end
if getPlayerStorageValue(cid, 23000) == 5 then
return doPlayerSendCancel(cid, "You are flying.")
end
local summons = getCreatureSummons(cid)
if item.uid ~= getPlayerSlotItem(cid, CONST_SLOT_FEET).uid then
doPlayerSendCancel(cid, "Sorry, you must put your pokeball in the pokeball place.")
return TRUE
end
if(table.maxn(summons) < MaximoSummon) then -- no summons
creature = doSummonCreature(poke_name, getCreaturePosition(cid))
doConvinceCreature(cid, creature)
registerCreatureEvent(creature, "DiePoke")
registerCreatureEvent(cid, "PlayerPokeDeath")
registerCreatureEvent(cid, "LogoutPoke")
doPlayerSay(cid, poke_name .. " eu escolho você!!")
doSendMagicEffect(getCreaturePosition(creature), 188)
doTransformItem(getPlayerSlotItem(cid,8).uid, 2531, 1)
doItemSetAttribute(getPlayerSlotItem(cid,8).uid,"name", poke_name .." Pokeball")
if action_id ~= 0 then
doCreatureAddHealth(creature, -(tonumber(getPokemonMaxLife(poke_name) - action_id)))
else
doCreatureAddHealth(creature, getPokemonMaxLife(poke_name))
end
else
for _, pid in ipairs(summons) do
if (table.maxn(summons) >= 1) then
doItemSetAttribute(item.uid, "aid", getCreatureHealth(summons[1]))
doSendMagicEffect(getCreaturePosition(getCreatureSummons(cid)[1]), 188)
doPlayerSay(cid,"Back, "..poke_name.."")
doRemoveCreature(pid)
doTransformItem(getPlayerSlotItem(cid,8).uid, 2532, 1)
doItemSetAttribute(getPlayerSlotItem(cid,8).uid,"name", poke_name .." Pokeball")
end
end
end
return true
end
catch
-- CAPTURE SYSTEM BY RAMZA (RICARDO IANELLI) - DO NOT COPY WITHOUT PERMISSION --
local chance = {
['abra'] = 100,
['shiny abra'] = 100,
['shiny abra'] = 100,
['aerodactyl'] = 30,
['kadabra'] = 100,
['alakazam'] = 50,
['grimer'] = 50,
['machop'] = 200,
['machoke'] = 100,
['machamp'] = 50,
['bellsprout'] = 200,
['weepinbell'] = 200,
['victreebel'] = 100,
['tentacool'] = 200,
['shiny tentacool'] = 200,
['tentacruel'] = 100,
['shiny tentacruel'] = 100,
['geodude'] = 200,
['graveler'] = 100,
['golem'] = 50,
['ponyta'] = 100,
['rapidash'] = 50,
['slowpoke'] = 200,
['slowbro'] = 50,
['magnemite'] = 200,
['magneton'] = 100,
['farfetchd'] = 200,
['shiny farfetchd'] = 200,
['duduo'] = 200,
['dodrio'] = 100,
['seel'] = 200,
['dewgong'] = 100,
['grimmer'] = 100,
['muk'] = 50,
['shiny muk'] = 50,
['shellder'] = 100,
['cloyster'] = 50,
['gastly'] = 100,
['haunter'] = 100,
['gengar'] = 50,
['onix'] = 50,
['crystal onix'] = 50,
['drownzee'] = 100,
['hypno'] = 50,
['krabby'] = 170,
['shiny krabby'] = 170,
['kingler'] = 100,
['shiny kingler'] = 100,
['voltorb'] = 130,
['shiny voltorb'] = 130,
['electrode'] = 110,
['shiny electrode'] = 110,
['exeggcute'] = 80,
['exeggutor'] = 50,
['cubone'] = 130,
['marowak'] = 50,
['hitmonlee'] = 50,
['shiny hitmonlee'] = 50,
['hitmonchan'] = 50,
['shiny hitmonchan'] = 50,
['lickitung'] = 55,
['koffing'] = 150,
['weezing'] = 150,
['rhyhorn'] = 100,
['rhydon'] = 100,
['chansey'] = 100,
['tangela'] = 100,
['kangaskhan'] = 75,
['horsea'] = 200,
['shiny horsea'] = 200,
['seadra'] = 150,
['shiny seadra'] = 150,
['goldeen'] = 170,
['seaking'] = 100,
['staryu'] = 80,
['starmie'] = 50,
['mr.Mime'] = 100,
['scyther'] = 80,
['shiny scyther'] = 80,
['jynx'] = 75,
['shiny jynx'] = 75,
['electabuzz'] = 30,
['shiny electabuzz'] = 30,
['magmar'] = 100,
['pinsir'] = 120,
['tauros'] = 110,
['magikarp'] = 150,
['shiny magikarp'] = 150,
['gyarados'] = 50,
['shiny gyarados'] = 50,
['lapras'] = 20,
['ditto'] = 40,
['eevee'] = 140,
['vaporeon'] = 100,
['flareon'] = 100,
['jolteon'] = 100,
['porygon'] = 50,
['omanyte'] = 10,
['omastar'] = 10,
['kabuto'] = 110,
['kabutops'] = 50,
['snorlax'] = 50,
['articuno'] = 10,
['zapdos'] = 900,
['moltres'] = 10,
['dratini'] = 100,
['shiny dratini'] = 100,
['dragonair'] = 80,
['dragonite'] = 50,
['mew'] = 1,
['mewtwo'] = 1,
['beedrill'] = 180,
['shiny beedrill'] = 180,
['bulbasaur'] = 190,
['ivysaur'] = 100,
['venusaur'] = 55,
['charmander'] = 150,
['charmeleon'] = 100,
['charizard'] = 50,
['elder charizard'] = 1,
['squirtle'] = 180,
['wartortle'] = 100,
['blastoise'] = 85,
['shiny blastoise'] = 85,
['caterpie'] = 900,
['metapod'] = 180,
['butterfree'] = 130,
['shiny butterfree'] = 130,
['weedle'] = 200,
['kakuna'] = 150,
['pidgey'] = 200,
['pidgeotto'] = 100,
['pidgeot'] = 65,
['rattata'] = 200,
['shiny rattata'] = 200,
['raticate'] = 100,
['shiny raticate'] = 100,
['spearow'] = 100,
['fearow'] = 80,
['ekans'] = 200,
['arbok'] = 100,
['pikachu'] = 80,
['raichu'] = 50,
['shiny raichu'] = 50,
['sandshrew'] = 100,
['sandslash'] = 80,
['nidoranFE'] = 150,
['nidorina'] = 100,
['nidoqueen'] = 80,
['nidoranMA'] = 150,
['nidorino'] = 100,
['nidoking'] = 80,
['clefairy'] = 100,
['clefable'] = 80,
['vulpix'] = 120,
['ninetales'] = 65,
['jigglypuff'] = 100,
['wigglytuff'] = 50,
['zubat'] = 150,
['shiny zubat'] = 150,
['golbat'] = 100,
['oddish'] = 200,
['gloom'] = 120,
['vileplume'] = 50,
['paras'] = 200,
['parasect'] = 100,
['shiny parasect'] = 100,
['venonat'] = 150,
['venomoth'] = 100,
['shiny venomoth'] = 100,
['diglett'] = 180,
['dugtrio'] = 100,
['meowth'] = 100,
['persian'] = 100,
['psyduck'] = 80,
['golduck'] = 55,
['mankey'] = 180,
['primeape'] = 100,
['growlithe'] = 100,
['shiny growlithe'] = 100,
['arcanine'] = 80,
['shiny arcanine'] = 80,
['poliwag'] = 200,
['poliwhirl'] = 140,
['poliwrath'] = 90,
}
local ID_GREATBALL = 2146
local ID_SUPERBALL = 2147
local ID_ULTRABALL = 2150
local ID_MASTERBALL = 2554
local ID_CAPTUROU = 24
local ID_NAO_CAPTUROU = 23
local pokebolas = {
[2149] = {2532,"Pokeball"},
[2147] = {2653,"Superball"},
[2146] = {2652,"Greatball"},
[2150] = {2654,"Ultraball"},
[2521] = {2195,"Masterball"},
}
local level = {
['abra'] = 15,
['shiny abra'] = 15,
['kadabra'] = 45,
['alakazam'] = 80,
['machop'] = 20,
['machoke'] = 45,
['machamp'] = 70,
['bellsprout'] = 5,
['weepinbell'] = 25,
['victreebel'] = 50,
['tentacool'] = 15,
['tentacruel'] = 75,
['shiny tentacool'] = 15,
['shiny tentacruel'] = 75,
['geodude'] = 15,
['graveler'] = 40,
['golem'] = 65,
['ponyta'] = 20,
['rapidash'] = 55,
['slowpoke'] = 15,
['slowbro'] = 45,
['magnemite'] = 15,
['magneton'] = 35,
['farfetchd'] = 40,
['shiny farfetchd'] = 40,
['duduo'] = 15,
['dodrio'] = 45,
['seel'] = 20,
['dewgong'] = 65,
['grimmer'] = 15,
['shiny grimmer'] = 15,
['muk'] = 35,
['shiny muk'] = 35,
['shellder'] = 10,
['cloyster'] = 60,
['gastly'] = 20,
['haunter'] = 45,
['gengar'] = 80,
['onix'] = 50,
['crystal onix'] = 50,
['drownzee'] = 25,
['hypno'] = 55,
['krabby'] = 10,
['shiny krabby'] = 10,
['klinger'] = 40,
['shiny klinger'] = 40,
['voltorb'] = 10,
['shiny voltorb'] = 10,
['electrode'] = 35,
['shiny electrode'] = 35,
['exeggcute'] = 10,
['exeggutor'] = 55,
['cubone'] = 20,
['marowak'] = 55,
['hitmonlee'] = 60,
['shiny hitmonlee'] = 60,
['hitmonchan'] = 75,
['shiny hitmonchan'] = 75,
['lickitung'] = 55,
['koffing'] = 15,
['weezing'] = 35,
['rhyhorn'] = 30,
['rhydon'] = 70,
['chansey'] = 60,
['tangela'] = 40,
['kangaskhan'] = 75,
['horsea'] = 10,
['shiny horsea'] = 10,
['seadra'] = 45,
['shiny seadra'] = 45,
['goldeen'] = 10,
['seaking'] = 35,
['staryu'] = 15,
['starmie'] = 35,
['mr.Mime'] = 60,
['scyther'] = 80,
['shiny scyther'] = 80,
['jynx'] = 75,
['shiny jynx'] = 75,
['electabuzz'] = 80,
['shiny electabuzz'] = 80,
['magmar'] = 80,
['pinsir'] = 45,
['tauros'] = 45,
['magikarp'] = 5,
['shiny magikarp'] = 5,
['gyarados'] = 85,
['shiny gyarados'] = 85,
['lapras'] = 80,
['ditto'] = 40,
['eevee'] = 20,
['vaporeon'] = 55,
['flareon'] = 55,
['jolteon'] = 55,
['porygon'] = 40,
['omanyte'] = 20,
['omastar'] = 80,
['kabuto'] = 20,
['kabutops'] = 80,
['snorlax'] = 85,
['articuno'] = 100,
['zapdos'] = 100,
['moltres'] = 100,
['dratini'] = 20,
['shiny dratini'] = 20,
['dragonair'] = 60,
['dragonite'] = 90,
['mew'] = 150,
['mewtwo'] = 160,
['beedrill'] = 3,
['shiny beedrill'] = 3,
['bulbasaur'] = 20,
['ivysaur'] = 40,
['venusaur'] = 85,
['charmander'] = 20,
['charmeleon'] = 40,
['charizard'] = 85,
['elder charizard'] = 150,
['squirtle'] = 20,
['wartortle'] = 40,
['blastoise'] = 85,
['shiny blastoise'] = 85,
['caterpie'] = 1,
['metapod'] = 10,
['butterfree'] = 30,
['shiny butterfree'] = 30,
['weedle'] = 1,
['kakuna'] = 10,
['pidgey'] = 5,
['pidgeotto'] = 20,
['pidgeot'] = 65,
['rattata'] = 1,
['raticate'] = 20,
['shiny rattata'] = 1,
['shiny raticate'] = 20,
['spearow'] = 5,
['fearow'] = 50,
['ekans'] = 15,
['arbok'] = 30,
['pikachu'] = 20,
['raichu'] = 45,
['shiny raichu'] = 45,
['sandshrew'] = 20,
['sandslash'] = 55,
['nidoranFE'] = 10,
['nidorina'] = 30,
['nidoqueen'] = 65,
['nidoranMA'] = 10,
['nidorino'] = 25,
['nidoking'] = 65,
['clefairy'] = 20,
['clefable'] = 35,
['vulpix'] = 15,
['ninetales'] = 65,
['jigglypuff'] = 20,
['wigglytuff'] = 45,
['zubat'] = 10,
['golbat'] = 30,
['oddish'] = 5,
['gloom'] = 25,
['vileplume'] = 50,
['paras'] = 5,
['parasect'] = 50,
['shiny paras'] = 5,
['shiny parasect'] = 50,
['venonat'] = 20,
['venomoth'] = 50,
['shiny venomoth'] = 50,
['diglett'] = 10,
['dugtrio'] = 35,
['meowth'] = 15,
['persian'] = 25,
['psyduck'] = 20,
['golduck'] = 55,
['mankey'] = 15,
['primeape'] = 50,
['growlithe'] = 25,
['shiny growlithe'] = 25,
['arcanine'] = 80,
['shiny arcanine'] = 80,
['poliwag'] = 5,
['poliwhirl'] = 25,
['poliwrath'] = 65,
}
-- Vá adicionando mais acima, como está ali ""
local function capturou(params)
doSendMagicEffect(getCreaturePosition(params.cid), 173)
doPlayerSendTextMessage(params.cid, 25, 'You cath a Pokemon! ('..params.monster..').')
item = doCreateItemEx(params.ball)
doItemSetAttribute(item, "name", ""..params.monster.." "..params.ball2)
doItemSetAttribute(item, "level", params.level)
doItemSetAttribute(item, "aid", params.hp)
doPlayerAddItemEx(params.cid, item, true)
end
local function naocapturou(params)
end
function onUse(cid, item, fromPosition, itemEx, toPosition)
local monster = getItemName(itemEx.uid):match("dead (.*)")
if item.itemid == ID_GREATBALL then
chances = (chance[monster]) * 2
elseif item.itemid == ID_SUPERBALL then
chances = (chance[monster]) * 3
elseif item.itemid == ID_ULTRABALL then
chances = (chance[monster]) * 4
elseif item.itemid == 2521 then
chances = (chance[monster]) * 25
else
chances = chance[monster]
end
if not chance[monster] then
return doPlayerSendTextMessage(cid, 23, 'You captured pokemon defeated!')
end
if math.random(1,1000) <= chances then
if item.itemid == 2149 then
doSendMagicEffect(toPosition, 24)
elseif item.itemid == 2147 then
doSendMagicEffect(toPosition, 202)
elseif item.itemid == 2146 then
doSendMagicEffect(toPosition, 198)
elseif item.itemid == 2150 then
doSendMagicEffect(toPosition, 200)
elseif item.itemid == 2521 then
doSendMagicEffect(toPosition, 24)
end
local hpmax = 0
local ball = pokebolas[item.itemid]
addEvent(capturou, 4000, {cid = cid, monster = monster, ball = ball[1], ball2 = ball[2], level = level[monster], hp = hpmax})
doRemoveItem(itemEx.uid, 1)
doRemoveItem(item.uid, 1)
else
if item.itemid == 2149 then
doSendMagicEffect(toPosition, 23)
elseif item.itemid == 2147 then
doSendMagicEffect(toPosition, 201)
elseif item.itemid == 2146 then
doSendMagicEffect(toPosition, 197)
elseif item.itemid == 2150 then
doSendMagicEffect(toPosition, 199)
elseif item.itemid == 2521 then
doSendMagicEffect(toPosition, 23)
end
doRemoveItem(itemEx.uid, 1)
doRemoveItem(item.uid, 1)
end
return TRUE
end
Editado Janeiro 4 por RicardoSohnn
info
Grupo: Campones
Registrado: 02/01/11
Posts: 13
Reputação: +9

@RicardoSohnn
Antes de tudo me explique o que você quer que eu edite
:smile_positivo:
info
Grupo: Visconde
Registrado: 03/01/11
Posts: 303
Reputação: +47

@RicardoSohnn
Antes de tudo me explique o que você quer que eu edite
:smile_positivo:
eu quero que voce faca funcionar no servidor da thalia, cujos scripts de go back e catch eu postei antes.
vou passar os ids das balls:
poke balls: 2531, 2532
2653;2557 superball
2652;2524 greatball
2654;2525 ultraball
2195;2523 masterball
info
Grupo: Campones
Registrado: 02/01/11
Posts: 13
Reputação: +9

eu quero que voce faca funcionar no servidor da thalia, cujos scripts de go back e catch eu postei antes.vou passar os ids das balls:
poke balls: 2531, 2532
2653;2557 superball
2652;2524 greatball
2654;2525 ultraball
2195;2523 masterball
bom... posso te mandar este link aki que contem um server com todos meus Scripts
vitorszvitim posta o client tb
Ei Test No Thalia e no flash,nao pegaram e as pokemon inicial buga,ajeita isso pow ai vai fica not 10,por encanto nao do :button_ok: ![]()
pesquisei no :google_lt: e chaeio um server ingau a esse so que ta todo bugado e muito virus.




info
Grupo: Campones
Registrado: 02/01/11
Posts: 13
Reputação: +9
SALVE GALERA XTIBIANA AKI EU DENOVO COM MAIS UM TUTORIAL
Primeiro os créditos
50% MatheusMkalo (go/back System)
50% vitorszvitim (pokelevel System)
Vamos lá!
Primeiro vá em PastadoServer/Data/Actions/Script, copie um arquivo qualquer e renomeie-o com o nome goback.lua, abra-o com o Bloco de Notas e apague tudos o que estiver escrito, depois digite:
Salve e Fexe
Agora vá em PastadoServer/Data/Actions, abra o arquivo Actions.xml e em qualque lugar digite:
Salve e Fexe
Bom Não Esplicarei as Tags Pois o Sistema é Semelhante ao Go/back (MatheusMkalo), a única diferença é o PokeLevel System facil de Entender
Caso Eu Tenha Esquicido Algum Crédito Me Aviza Ae ! ! !
Ajudei? REP+ não custa nada :button_ok: