Ir para conteúdo

Featured Replies

Postado

sempre que ligo meu server de poketibia com base dash aparece esse erro repetidamente e o sv nao liga

[20/08/2012 20:34:20] [Error - CreatureScript Interface]

[20/08/2012 20:34:20] data/creaturescripts/scripts/spawn.lua:OnSpawn

[20/08/2012 20:34:20] Description:

[20/08/2012 20:34:20] data/creaturescripts/scripts/spawn.lua:77: attempt to call global 'isSummon' (a nil value)

[20/08/2012 20:34:21] stack traceback:

[20/08/2012 20:34:21] data/creaturescripts/scripts/spawn.lua:77: in function <data/

/creaturescripts/scripts/spawn.lua:71>

ajudem pfv

  • Respostas 11
  • Visualizações 2.3k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Isso aê é problema no arquivo configuração que fica na pasta lib, posta ele aqui no forúm, irei te ajudar ! OPS : Posta seu arquivo spawm que pode ser ele também.. na pasta data/creaturescript/scripts

  • Bom... estou com um arquivo para te passar para que você atualize e seu ot volte ao normal poreém ele é muito grande é o arquivo da pasta data/lib/configuracao.lua peço que me add no msn para te ajuda

Postado

Isso aê é problema no arquivo configuração que fica na pasta lib, posta ele aqui no forúm, irei te ajudar ! OPS : Posta seu arquivo spawm que pode ser ele também.. na pasta data/creaturescript/scripts/spawm.lua

                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Assinatura~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                pmnz1.jpg

Postado
  • Autor

eu dei uns espaços onde tinha o nome issummon

agora o erro é assim [20/08/2012 21:38:31] [Warning - Monster::Monster] Unknown event name - Spawn

e aqui ta todo meu spawn

local shinys = {

"Bulbasaur", "Ivysaur", "Venusaur", "Charmander", "Charmeleon", "Charizard", "Squirtle", "Wartortle", "Blastoise",

"Caterpie", "Metapod", "Butterfree", "Weedle", "Kakuna", "Beedrill", "Pidgey", "Pidgeotto", "Pidgeot", "Rattata",

"Raticate", "Spearow", "Fearow", "Ekans", "Arbok", "Pikachu", "Raichu", "Sandshrew", "Sandslash", "Nidoran Female",

"Nidorina", "Nidoqueen", "Nidoran Male", "Nidorino", "Nidoking", "Clefairy", "Clefable", "Vulpix", "Ninetales",

"Jigglytuff", "Wigglytuff", "Zubat", "Golbat", "Odish", "Gloom", "Vileplume", "Paras", "Parasect", "Venonat", "Venomoth",

"Diglett", "Dugtrio", "Mewoth", "Persian", "Psyduck", "Golduck", "Mankey", "Primeape", "Growlithe", "Arcanine",

"Poliwag", "Poliwhirl", "Poliwrath", "Abra", "Kadabra", "Alakazam", "Machop", "Machoke", "Machamp", "Bellsprout",

"Weepinbell", "Victreebel", "Tentacool", "Tentacruel", "Geodude", "Graveler", "Golem", "Ponyta", "Rapidash", "Slowpoke",

"Slowbro", "Magnamite", "Magneton", "Farfetch'd", "Doduo", "Dodrio", "Seel", "Dewgong", "Grimer", "Muk", "Shellder",

"Cloyster", "Gastly", "Haunter", "Gengar", "Onix", "Drowzee", "Hypno", "Krabby", "Kingler", "Voltorb", "Electrode",

"Exeggcute", "Exeggutor", "Cubone", "Marowak", "Hitmonlee", "Hitmonchan", "Lickitung", "Koffing", "Weezing", "Rhyhorn",

"Rhydon", "Chansey", "Tangela", "Kangaskhan", "Horsea", "Seadra", "Goldeen", "Seaking", "Staryu", "Starmie", "Mr. Mime",

"Scyther", "Jynx", "Electabuzz", "Magmar", "Pinsir", "Tauros", "Magikarp", "Gyarados", "Lapras", "Ditto", "Eevee", "Vaporeon",

"Jolteon", "Flareon", "Porygon", "Omanyte", "Omastar", "Kabuto", "Kabutops", "Snorlax", "Dragonair", "Dratini"

}

local raros = {"Articuno", "Zapdos", "Moltreas", "Mew", "Mewtwo", "Dragonite", "Aerodactyl"}

local function doPokemonRegisterLevel(cid)

if not isCreature(cid) then return true end

if getWildPokemonLevel(cid) == -1 then

setWildPokemonLevel(cid)

end

end

local function doSetRandomGender(cid)

if not isCreature(cid) then return true end

local gender = 0

local name = getCreatureName(cid)

if not newpokedex[name] then return true end

local rate = newpokedex[name].gender

if rate == 0 then

gender = 4

elseif rate == 1000 then

gender = 5

elseif rate == -1 then

gender = 1

elseif math.random(1, 1000) <= rate then

gender = 4

else

gender = 5

end

doCreatureSetSkullType(cid, gender)

end

local function doShiny(cid)

if isCreature(cid) then

if is Summon(cid) then return true end

if getPlayerStorageValue(cid, 74469) >= 1 then return true end

if isInArray(shinys, getCreatureName(cid)) then

transform = math.random(1, 100) --1% chance

elseif isInArray(raros, getCreatureName(cid)) then

transform = math.random(1, 1000) --0.1% chance

elseif not isInArray(raros, getCreatureName(cid)) and not isInArray(shinys, getCreatureName(cid)) then

return true

end

if transform == 10 then

doSendMagicEffect(getThingPos(cid), 18)

local shi = doCreateMonster("Shiny ".. getCreatureName(cid) .."", getThingPos(cid))

setPlayerStorageValue(shi, 74469, 1)

setPlayerStorageValue(cid, 74469, 1)

doRemoveCreature(cid)

else

setPlayerStorageValue(cid, 74469, 1)

end

else

return true

end

end

function onSpawn(cid)

registerCreatureEvent(cid, "GeneralConfiguration")

registerCreatureEvent(cid, "DirectionSystem")

registerCreatureEvent(cid, "CastSystem")

if is Summon(cid) then

registerCreatureEvent(cid, "SummonDeath")

return true

end

registerCreatureEvent(cid, "Experience")

addEvent(doPokemonRegisterLevel, 5, cid)

addEvent(doSetRandomGender, 5, cid)

addEvent(doShiny, 10, cid)

return true

end

tudo isso começo quando eu comecei a criar um absol quando eu tentei add as info dele e corpse dele ai começaram os erros

Postado

nao sei mas axo q sua lib nao suporta o comando isSummon

como nosso colega disse poste a lib e o arquivo, voce tem os seguintes erros:

[20/08/2012 20:34:20] data/creaturescripts/scripts/spawn.lua:77: attempt to call global 'isSummon' (a nil value)

nesta linha ele esta informando que na linha 77 do spawn.lua ocorreu uma tentativa de chamar global 'isSummon' tem um valor nulo, verifique o conteudo desta linha

[20/08/2012 20:34:21] data/creaturescripts/scripts/spawn.lua:77: in function <data/

/creaturescripts/scripts/spawn.lua:71>

aqui ele indica erro na função que esta sendo executada na linha 71

nao tenhu crtza... mas verifique os conteudos nas linhas 71 e 77.

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo