petmen021 0 Posted September 26, 2022 Share Posted September 26, 2022 (edited) Hello guys I drop my server this pet system (Lua only + gui) and my pet not summoned I Trying 2day the fixing .. Sorry my bad english My syserr : Ch1 Db : 0 Client : 0 I create GUI and etc... (Client syserr 0) Quote RR: Sep 26 21:46:59.190468 :: RunState: LUA_ERROR: [string "pet_rendszer"]:2: attempt to index field `?' (a nil value) SYSERR: Sep 26 21:46:59.190596 :: WriteRunningStateToSyserr: LUA_ERROR: quest pet_rendszer.start click My Quest : Spoiler quest pet_rendszer begin state start begin when 53001.use begin local v = item.get_vnum() local petName, mobVnum, effect = pet_info[v][2], pet_info[v][1], pet_info[v][3] local petName if pet.is_named() then petName = " - "..pet.get_name(mobVnum).."" else petName = pet_info[v][2] end if pet.get_level() == 0 then pc.give_pet(v) return end if true == pet.is_summon(mobVnum) then pet.seal_menu() return end if pet.count_summoned() < 1 then pet.summon(mobVnum, petName, false) pc.setqf("pet_spawn", mobVnum) pc.setqf("pet_spawn_id", v) pet.spawn_effect(mobVnum, effect_table[pet_info[v][6]]) pet.give_bonus() pet.summon_log() loop_timer("refresh_pet_stats", 0.5) else syschat(pet_text.cantsummonmore) end end when refresh_pet_stats.timer with pc.getqf("pet_spawn") != 0 begin if pc.is_dead() then pet.remove_bonus() pet.delete_infos() end pet.gui_info() end when kill with not npc.is_pc() and pet.count_summoned() >= 1 and pet.get_level() < 150 begin pet.level_up() end when login begin cmdchat("SetPetIncreaseBoniButtonIndex "..q.getcurrentquestindex()) end when info or button begin pet.remove_bonus() pet.increase_stats() pet.give_bonus() end when logout with pc.getqf("pet_spawn") != 0 and pet.count_summoned() > 0 begin pet.remove_bonus() pet.delete_infos() end when 302.use or 303.use or 304.use with pc.getqf("pet_spawn") ~= 0 begin pet.set_item(item.get_vnum()) end when 21000.click begin if pet.is_mine() == true then pet.gui_info() cmdchat("ShowPet") end end end end And my funcion.. Spoiler https://pastebin.com/SdinBbLX Thanks the help me Edited September 26, 2022 by petmen021 Hát van ilyen Link to comment Share on other sites More sharing options...
petmen021 0 Posted September 27, 2022 Author Share Posted September 27, 2022 UP Hát van ilyen Link to comment Share on other sites More sharing options...
peaceofficial2021 2 Posted December 16, 2022 Share Posted December 16, 2022 did you fixed it? Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now