Ir para conteúdo

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


lucashgas

Posts Recomendados

@otal2012 ja dei seu rep+ por me ajudar mas tem como me ajudar nisso? tipo eu fiz tudo igual ao tutorial do zerefshirou ai fiz tudo certinho! e quando abro o server aparece erros no console > [Error - LuaScriptInterface::loadFile] data/lib/configuration.lua:914: malformed number near '10dist'

[Warning - LuaScriptInterface::initState] Cannot load data/lib/

 

e esse outro! > data/creaturescripts/scripts/spawn.lua:38: attempt to call global 'isSummon' (a nil value)

stack traceback:

data/creaturescripts/scripts/spawn.lua:38: in function <data/creaturescripts/scripts/spawn.lua:32> ajuda porfavor!

Link para o comentário
Compartilhar em outros sites

@lordfog

vc tem que adiciona o pokemon em data\lib\configuration.lua

e tbm na level tables.lua

e tbm id do seu corpo no items.xml

ei manow me ensina a fazer isso :X dei uma olhada lah e fiquei consfuso..

 

 

Da uma luz aewwwww...

Link para o comentário
Compartilhar em outros sites

@lordfog

Aproveitei um post do Zeref que ensina como add shiny venomoth e shiny beedrill pra te ensinar mais ou menos como é... no configuration você muda os ataques e faz tudo do jeitoq ue você quiser e no levels table tu põe o nome do pokémon em qualquer chave que tenha nome de pokémons, espero ter ajudado.

 

 

DATA/LIB/CONFIGURATION.LUA:

["Shiny Beedrill"] = {move1 = {name = "Toxic Needle", level = 21, cd = 10, dist = 1, target = 1},

move2 = {name = "String Shot", level = 4, cd = 8, dist = 3, target = 1},

move3 = {name = "Fury Attack", level = 21, cd = 15, dist = 1, target = 1},

move4 = {name = "Pin Missile", level = 21, cd = 17, dist = 1, target = 1},

move5 = {name = "Mega Prick", level = 21, cd = 18, dist = 1, target = 1},

move6 = {name = "Sting Gun", level = 21, cd = 12, dist = 1, target = 1},

move7 = {name = "Poison Jab", level = 23, cd = 18, dist = 1, target = 1},

},

["Shiny Venomoth"] = {move1 = {name = "Tackle", level = 5, cd = 10, dist = 1, target = 1},

move2 = {name = "Disable", level = 7, cd = 24, dist = 1, target = 1},

move3 = {name = "Bug Bite", level = 10, cd = 14, dist = 1, target = 1},

move4 = {name = "Zen Headbutt", level = 15, cd = 16, dist = 1, target = 1},

move5 = {name = "Confusion", level = 15, cd = 18, dist = 1, target = 0},

move6 = {name = "Super Sonic", level = 15, cd = 22, dist = 4, target = 1},

move7 = {name = "Sleep Powder", level = 33, cd = 25, dist = 4, target = 0},

move8 = {name = "Psychic", level = 35, cd = 28, dist = 4, target = 0},

move9 = {name = "Stun Spore", level = 33, cd = 25, dist = 4, target = 0},

move10 = {name = "Psybeam", level = 28, cd = 26, dist = 4, target = 0},

move11 = {name = "Twister", level = 30, cd = 20, dist = 3, target = 1},

},

["Shiny Beedrill"] = {offense = 19.11, defense = 19.44, specialattack = 27.06, vitality = 21, agility = 1.53, exp = 207, level = 60, type = "bug", type2 = "poison"},

["Shiny Venomoth"] = {offense = 14.82, defense = 14.43, specialattack = 29.31, vitality = 27, agility = 1, exp = 294, level = 65, type = "bug", type2 = "poison"},

["Shiny Beedrill"] = 12428,

["Shiny Venomoth"] = 12429,

["Shiny Beedrill"] = {chance = 140, corpse = 12427},

["Shiny Venomoth"] = {chance = 150, corpse = 12430},

["Shiny Beedrill"] = {gender = 500, level = 60, storage = 10150},

["Shiny Venomoth"] = {gender = 500, level = 65, storage = 10490},

{"Shiny Beedrill", 60, 10150},

{"Shiny Venomoth", 65, 10490},

DATA/LIB/LEVEL TABLES.LUA:

"Shiny Beedrill", "Shiny Venomoth",

 

 

Link para o comentário
Compartilhar em outros sites

Alguem me ajuuuda urgente, tem pokeball (algumas) ficando inutil prestando pra nada D:

Graças a Deus dá erro no console, ta aqui a descrição, será que tem como alguem me ajudar?? :D

 

[11/01/2012 13:13:50] [Error - CreatureScript Interface]

[11/01/2012 13:13:50] data/creaturescripts/scripts/look.lua:onLook

[11/01/2012 13:13:50] Description:

[11/01/2012 13:13:50] data/lib/050-function.lua:107: attempt to index local 'str' (a nil value)

[11/01/2012 13:13:50] stack traceback:

[11/01/2012 13:13:50] data/lib/050-function.lua:107: in function 'getArticle'

[11/01/2012 13:13:50] data/creaturescripts/scripts/look.lua:15: in function <data/creaturescripts/scripts/look.lua:1>

 

É sempre esse mesmo erro :#

Editado por GMHareaOT
Link para o comentário
Compartilhar em outros sites

Alguem me ajuuuda urgente, tem pokeball (algumas) ficando inutil prestando pra nada D:

Graças a Deus dá erro no console, ta aqui a descrição, será que tem como alguem me ajudar?? :D

 

[11/01/2012 13:13:50] [Error - CreatureScript Interface]

[11/01/2012 13:13:50] data/creaturescripts/scripts/look.lua:onLook

[11/01/2012 13:13:50] Description:

[11/01/2012 13:13:50] data/lib/050-function.lua:107: attempt to index local 'str' (a nil value)

[11/01/2012 13:13:50] stack traceback:

[11/01/2012 13:13:50] data/lib/050-function.lua:107: in function 'getArticle'

[11/01/2012 13:13:50] data/creaturescripts/scripts/look.lua:15: in function <data/creaturescripts/scripts/look.lua:1>

 

É sempre esse mesmo erro :#

 

Vai na pasta data/creaturescripts/scripts/look.lua e subistitui o que tem la dentro por esse:

 

function onLook(cid, thing, position, lookDistance)

local str = ""

if not isCreature(thing.uid) then

local iname = getItemInfo(thing.itemid)

if isPokeball(thing.itemid) then

local owner = getItemAttribute(thing.uid, "firstpoke")

local pokename = getItemAttribute(thing.uid, "poke")
local item = getItemInfo(thing.itemid)
str = "You see "..item.article.." "..item.name..".\n"
str = str.."It contains "..getArticle(pokename).." "..pokename.." [level "..getItemAttribute(thing.uid, "level").."].\n"

if owner and owner ~= getCreatureName(cid) then
str = str.."It belongs to "..owner..".\nIt is an unique item."
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, str)
return false
end

local boost = getItemAttribute(thing.uid, "boost") or 0
local boostshow = ""

if boost > 0 then
str = str.."Boost level: +"..boost..".\n"
end

if getItemAttribute(thing.uid, "nick") then
str = str.."It's nickname is: "..getItemAttribute(thing.uid, "nick")..".\n"
end

if getItemAttribute(thing.uid, "gender") == SEX_MALE then
str = str.."It is male."
elseif getItemAttribute(thing.uid, "gender") == SEX_FEMALE then
str = str.."It is female."
else
str = str.."It is genderless."
end

str = str.."\n--- Status ---"
str = str.."\nOffense: "..math.floor(getItemAttribute(thing.uid, "offense")).." Defense: "..math.floor(getItemAttribute(thing.uid, "defense")).."\n"
str = str.."Agility: "..math.floor(getItemAttribute(thing.uid, "speed")).." Sp. Attack: "..math.floor(getItemAttribute(thing.uid, "specialattack")).."\n"
str = str.."Vitality: "..math.floor(getItemAttribute(thing.uid, "vitality"))..""

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, str)

return false

elseif string.find(iname.name, "fainted") or string.find(iname.name, "defeated") then

str = "You see a "..string.lower(iname.name).." ["..getItemAttribute(thing.uid, "level").."].\n"

if getItemAttribute(thing.uid, "gender") == SEX_MALE then
str = str.."It is male."
elseif getItemAttribute(thing.uid, "gender") == SEX_FEMALE then
str = str.."It is female."
else
str = str.."It is genderless."
end
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, str)

return false

else

return true

end
end

local npcname = getCreatureName(thing.uid)
local l = string.len(npcname)
if not isPlayer(thing.uid) and not isMonster(thing.uid) then
--string.sub(npcname, l - 1, l) == "  " then
local article = getPlayerStorageValue(thing.uid, 9891) == 1 and "He is" or "She is"
local nname = string.sub(npcname, 1, l - 2)
if nname == getCreatureName(cid) then
nname = "yourself"
article = "You are"
end
str = "You see "..nname..". "..article.." a pokemon trainer."
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, str)
return false
end

if not isMonster(thing.uid) then
return true
end

if getCreatureName(thing.uid) == "Evolution" then return false end

if not isSummon(thing.uid) then
local str = "You see a wild "..string.lower(getCreatureName(thing.uid)).." [level "..getPokemonLevel(thing.uid).."].\n"
if getPokemonGender(thing.uid)  == SEX_MALE then
str = str.."It is male."
elseif getPokemonGender(thing.uid)  == SEX_FEMALE then
str = str.."It is female."
else
str = str.."It is genderless."
end
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, str)
return false
elseif isSummon(thing.uid) and not isPlayer(thing.uid) then

local boostlevel = getItemAttribute(getPlayerSlotItem(getCreatureMaster(thing.uid), 8).uid, "boost") or 0
local boostshow = " + "..boostlevel.."]"

if showBoostSeparated then
boostshow = "] [+"..boostlevel.."]"
end

local levelinfo = "["..getPokemonLevel(thing.uid)..""..boostshow..""

if getCreatureMaster(thing.uid) == cid then
local myball = getPlayerSlotItem(cid, 8).uid
local nexp = getItemAttribute(myball, "nextlevelexp")

local string = "You see your "..string.lower(getCreatureName(thing.uid)).." "..levelinfo.."."
string = string.."\nHit points: "..getCreatureHealth(thing.uid).."/"..getCreatureMaxHealth(thing.uid).."."
string = string.."\n"..getPokemonHappinessDescription(thing.uid)
if getItemAttribute(myball, "level") <= 99 then
string = string.."\nExperience needed to level up: "..nexp.."."
end
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, string)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You see a "..string.lower(getCreatureName(thing.uid)).." "..levelinfo..".\nIt belongs to "..getCreatureName(getCreatureMaster(thing.uid))..".")
end


return false
end

return true
end

 

Espero ter ajudado.

Editado por Taiger
Link para o comentário
Compartilhar em outros sites

@lordfog

 

poe isso tudo em spoiler =D

 

entao vamos la!

vc poes assim ne

 

<monster name="shiny Venusaur" file="pokes/Shinys/shiny venusaur"/>

 

mais o correto seria assim com o xml no final

 

<monster name="shiny Venusaur" file="pokes/Shinys/shiny venusaur.xml"/>

 

por isso nao esta dando serto, nao esta localisando o arquivo pq o arquivo e xml =D

 

ABRASS

Editado por Fagundes14
Link para o comentário
Compartilhar em outros sites

@GMHareaOT

troca seu look por esse

 

function onLook(cid, thing, position, lookDistance)
local str = ""
if not isCreature(thing.uid) then
local iname = getItemInfo(thing.itemid)
if isPokeball(thing.itemid) then
local owner = getItemAttribute(thing.uid, "firstpoke")
local pokename = getItemAttribute(thing.uid, "poke")
local item = getItemInfo(thing.itemid)
str = "You see "..item.article.." "..item.name..".\n"
str = str.."It contains "..getArticle(pokename).." "..pokename.." [level "..getItemAttribute(thing.uid, "level").."].\n"
if owner and owner ~= getCreatureName(cid) then
str = str.."It belongs to "..owner..".\nIt is an unique item."
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, str)
return false
end
local boost = getItemAttribute(thing.uid, "boost") or 0
local boostshow = ""
if boost > 0 then
str = str.."Boost level: +"..boost..".\n"
end
if getItemAttribute(thing.uid, "nick") then
str = str.."It's nickname is: "..getItemAttribute(thing.uid, "nick")..".\n"
end
if getItemAttribute(thing.uid, "gender") == SEX_MALE then
str = str.."It is male."
elseif getItemAttribute(thing.uid, "gender") == SEX_FEMALE then
str = str.."It is female."
else
str = str.."It is genderless."
end
str = str.."\n--- Status ---"
str = str.."\nOffense: "..math.floor(getItemAttribute(thing.uid, "offense")).." Defense: "..math.floor(getItemAttribute(thing.uid, "defense")).."\n"
str = str.."Agility: "..math.floor(getItemAttribute(thing.uid, "speed")).." Sp. Attack: "..math.floor(getItemAttribute(thing.uid, "specialattack")).."\n"
str = str.."Vitality: "..math.floor(getItemAttribute(thing.uid, "vitality"))..""
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, str)
return false
elseif string.find(iname.name, "fainted") or string.find(iname.name, "defeated") then
str = "You see a "..string.lower(iname.name).." ["..getItemAttribute(thing.uid, "level").."].\n"
if getItemAttribute(thing.uid, "gender") == SEX_MALE then
str = str.."It is male."
elseif getItemAttribute(thing.uid, "gender") == SEX_FEMALE then
str = str.."It is female."
else
str = str.."It is genderless."
end
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, str)
return false
else
return true
end
end
local npcname = getCreatureName(thing.uid)
local l = string.len(npcname)
if not isPlayer(thing.uid) and not isMonster(thing.uid) then
--string.sub(npcname, l - 1, l) == "  " then
local article = getPlayerStorageValue(thing.uid, 9891) == 1 and "He is" or "She is"
local nname = string.sub(npcname, 1, l - 2)
if nname == getCreatureName(cid) then
nname = "yourself"
article = "You are"
end
str = "You see "..nname..". "..article.." a pokemon trainer."
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, str)
return false
end
if not isMonster(thing.uid) then
return true
end
if getCreatureName(thing.uid) == "Evolution" then return false end
if not isSummon(thing.uid) then
local str = "You see a wild "..string.lower(getCreatureName(thing.uid)).." [level "..getPokemonLevel(thing.uid).."].\n"
if getPokemonGender(thing.uid)  == SEX_MALE then
str = str.."It is male."
elseif getPokemonGender(thing.uid)  == SEX_FEMALE then
str = str.."It is female."
else
str = str.."It is genderless."
end
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, str)
return false
elseif isSummon(thing.uid) and not isPlayer(thing.uid) then
local boostlevel = getItemAttribute(getPlayerSlotItem(getCreatureMaster(thing.uid), 8).uid, "boost") or 0
local boostshow = " + "..boostlevel.."]"
if showBoostSeparated then
boostshow = "] [+"..boostlevel.."]"
end
local levelinfo = "["..getPokemonLevel(thing.uid)..""..boostshow..""
if getCreatureMaster(thing.uid) == cid then
local myball = getPlayerSlotItem(cid, 8).uid
local nexp = getItemAttribute(myball, "nextlevelexp")
local string = "You see your "..string.lower(getCreatureName(thing.uid)).." "..levelinfo.."."
string = string.."\nHit points: "..getCreatureHealth(thing.uid).."/"..getCreatureMaxHealth(thing.uid).."."
string = string.."\n"..getPokemonHappinessDescription(thing.uid)
if getItemAttribute(myball, "level") <= 99 then
string = string.."\nExperience needed to level up: "..nexp.."."
end
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, string)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You see a "..string.lower(getCreatureName(thing.uid)).." "..levelinfo..".\nIt belongs to "..getCreatureName(getCreatureMaster(thing.uid))..".")
end

return false
end
return true
end

 

realmente os créditos é do lucashgas

mais não sei que diferença isso mais dizer ou não hehehe

o importante que ajudo o amigo ai em cima :D

Editado por otal2012
Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...