LU

[Encerrado] [Pokemon] Dúvidas? - Pda

Por lucashgas, 10 de jan. de 2012 em Tópicos Sem Resposta

brun123
pokemon
otserv
tibia
12.4k
1.9M
SlicerS
08 de outubro de 2012 às 23:59

@matadorzim

pare de FLOODAR!

 

@pedrowarlock

o problema de fazer isso eh q tem coisas q funcionam usando a mana como base... n tem nd a ver com o client ;/

fico lgl sim.. soh q editar tanta img assim eh foda.. ;/ vo tentar por label aki amanha e ver como fica...

fellizF
09 de outubro de 2012 às 00:26

@All

Eu consigui +/- o npc da saffari, tipow ta assim o saffari.lua

 

focus = 0
talk_start = 0
target = 0
following = false
attacking = false

local saffari = {x=1145, y=1411, z=7}
function onThingMove(creature, thing, oldpos, oldstackpos)
end

function onCreatureAppear(creature)
end

function onCreatureDisappear(cid, pos)
if focus == cid then
selfSay('See ya.')
focus = 0
talk_start = 0
end
end

function onCreatureTurn(creature)
end
function msgcontains(txt, str)
return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)'))
end
function onCreatureSay(cid, type, msg)
msg = string.lower(msg)
if (msgcontains(msg, 'hi') and (focus == 0)) and getDistanceToCreature(cid) < 3 then
selfSay('Olá Eu posso deixa-lo entrar na Saffari Zone por um preço de 3000 Dollars, Aceita?')
focus = cid
talk_start = os.clock()
elseif (msgcontains(msg, 'yes') ) then
if getPlayerItemCount(cid,2391) >=1 or getPlayerItemCount(cid,2394) >=1 or getPlayerItemCount(cid,2392) >=1 or getPlayerItemCount(cid,2393) >=1 then
selfSay('Você não pode entrar na saffari portando Pokeballs para catch. Até logo.')
focus = 0
talk_start = 0
elseif getPlayerItemCount(cid,2152) < 30 and getPlayerItemCount(cid,2160) < 1 then
selfSay('Você não possui dinheiro suficiente. Até logo.')
focus = 0
talk_start = 0
elseif getPlayerStorageValue(cid, 98796) >= 1 or getPlayerStorageValue(cid, 98797) >=1 then
selfSay('Você Já está na saffari.')
focus = 0
talk_start = 0
else
setPlayerStorageValue(cid, 98796, 1)
setPlayerStorageValue(cid, 98797, 1)
doPlayerAddItem(cid, 2144, 30)
doPlayerRemoveMoney(cid, 300000)
doTeleportThing(cid, saffari)
talk_start = os.clock()
end

elseif (msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 3) then
selfSay('Sorry, Im busy at this moment.')
elseif (msgcontains(msg, 'bye') and focus == cid and getDistanceToCreature(cid) < 3) then
selfSay('Good bye then.')
focus = 0
talk_start = 0
end
end

function onCreatureChangeOutfit(creature)
end

function onThink()
if (os.clock() - talk_start) > 30 then
if focus > 0 then
selfSay('See ya.')
end
focus = 0
end
end

 

ai eu nao tinha a ball da saffari, ai eu pensei , saffari ball é a mesma coisa de great ai coloquei o id da great ball no lugar do da saffari.

 

setPlayerStorageValue(cid, 98796, 1)
setPlayerStorageValue(cid, 98797, 1)
doPlayerAddItem(cid, 2391, 30)
doPlayerRemoveMoney(cid, 300000)
doTeleportThing(cid, saffari)
talk_start = os.clock()
end

 

Obs: o id é 2391 (great ball)

 

só que depois nunca mais iria poder entrar na saffari denovo, pq o npc entende que eu ainda nao gastei as 30 saffari ball,

emfim queria botar esse npc pra me expulsar da saffari qnd desse 30 minutos.

 

Oq eu faço?

Editado Outubro 9 por felliz

StyloMaldosoS
09 de outubro de 2012 às 09:42

@all

achei alguns bug escroto no otClient..

1* você fala

/b Olá Xtibia
a Msg vermelha não apareçerá no meio da tela..

ai você fala

/b green Olá Xtibia
apareçe a msg verde no meio da tela..

 

@Slicer

como faço pra muda a cor vermelha para branca na condown bar? e.e

Session StartS
09 de outubro de 2012 às 09:46

@Stylo/ Mods/cbbar.lua

 

procura por button:setColor('#FF0000')

 

E muda o ('#FF0000') pra ('#FF')

 

 

tenta ai...

SlicerS
09 de outubro de 2012 às 09:51

@stylo

tem muita coisa a ser feita ainda nesse cliente.. mas vm q vm ^^

e branco fica quase impercepitivel ;/

StyloMaldosoS
09 de outubro de 2012 às 10:01

@Slicer

é possível cria algum comando que dá promotion pra você?

porque ví que tenhu clan não é por vocation.xml.. se houver alguma maneira, me fala ai u-u.

SlicerS
09 de outubro de 2012 às 10:07

@stylo

tem essa function...

setPlayerClan(cid, clan)

o param clan, pode ser o numero do clan, ou o nome dele...

e podes usar isso tb..

setPlayerClanRank(cid, rank)

para setar o rank, lembrando q o maximo eh 5 '--'...

soh q tpw.. n use esses comandos caso vc tenha pego alguma missao dos npcs! se n vai da meuda...

 

dai eh soh fazer uma talk com eles...

Editado Outubro 9 por Slicer

StyloMaldosoS
09 de outubro de 2012 às 10:19

Vlw slicer, vo manda pra um amigo aqui tentar faze.. xD

outro bug ridiculo do OtCliet (eu acho que é bug).

você da move com um poke de speed alta, ele vai lento.. hehe

fellizF
09 de outubro de 2012 às 10:33

Responde alguem la em cima minha pergunta ;D

LendreoL
09 de outubro de 2012 às 10:59

@OFF ja lanço a nova versão e nem vi e.e

 

@ALL alguem ja conseguiu mudar a cor da fala dos npcs ? =/

Editado Outubro 9 por Lendreo

StyloMaldosoS
09 de outubro de 2012 às 11:02

/\ igual slicer disse, acho que nem teria como hehe..

HolyMaNH
09 de outubro de 2012 às 11:19

@all,

alguem pode testar pra mim pra ver se eh bugg, quando clica no PC e vai algumas das opções... no OtClient não abre nenhum deles...

Obs.: usando versão 1.7 e 2.7 todo original com OtClient...

SlicerS
09 de outubro de 2012 às 11:37

/\

eh n vai abrir ms.. pq no OTClient a function doPlayerPopupFYI n esta feita... ;/ tem q ir em..

creatuerscripts/scripts/tvsys.lua e alterar tudo q ta com essa function para outra coisa.... ;/ -como a da pokedex-

Session StartS
09 de outubro de 2012 às 11:37

@Slicer

 

 

 

 

Error - Action Interface]

[09/10/2012 11:35:53] data/actions/scripts/goback.lua:onUse

[09/10/2012 11:35:53] Description:

[09/10/2012 11:35:53] data/lib/newStatusSyst.lua:625: attempt to index field '?' (a nil value)

[09/10/2012 11:35:53] stack traceback:

[09/10/2012 11:35:53] data/lib/newStatusSyst.lua:625: in function 'doBuff2'

[09/10/2012 11:35:53] data/lib/newStatusSyst.lua:658: in function 'doCondition2'

[09/10/2012 11:35:53] data/lib/level system.lua:353: in function 'adjustStatus'

[09/10/2012 11:35:53] data/actions/scripts/goback.lua:199: in function <data/actions/scripts/goback.lua:8>

 

 

 

 

Como arrumo? D=

SlicerS
09 de outubro de 2012 às 12:05

/\

vc pos a skill Ancient Fury, em algum poke sem ser o shiny charizard ou o shiny blastoise? ou alterou o nome deles no .xml? -por exemplo coloco Elder Charizard...-

se for isso.. vai em lib/newStatusSyst.lua e ache isso..

local outFurys = {
["Shiny Charizard"] = {outFury = 1073},  
["Shiny Blastoise"] = {outFury = 1074},    
}

e mude ae tb...