stie cineva cum pot sa rezolv aceasta eroare?
syserr ch1 :
SYSERR: May 3 06:25:01 :: RunState: LUA_ERROR: [string "horse_summon"]:1: attempt to index global `PetSystem' (a nil value)
SYSERR: May 3 06:25:01 :: WriteRunningStateToSyserr: LUA_ERROR: quest horse_summon.start leave
Rezolvare eroare
"LUA_ERROR: [string "horse_summon"]:1: attempt to index global `PetSystem' (a nil value)": hope a zis "pet system si horse summon sunt combinate.. ai gresit ceva in pet.lua sau in horse_summon [IMG] incearca sa le iei de pe net calumea si sa fii mai atent cand modifici". Găești pe internet un horse_summon, sper sa te ajute cu ce va raspunsul meu
[ Postat de pe Android ]
[ Postat de pe Android ]

- [RaffaeL]
-

- Mesaje: 3223
- Membru din: 19 Mar 2016, 12:58
- Server: ...
- Aprecieri: 15
- Mulţumiri: 2502
- Rezolvări prob.: 2
- Discord: Copiază ID
- Contact:
Aici ai :horse_summon functionalnicunicu26 scrie:stie cineva cum pot sa rezolv aceasta eroare?
syserr ch1 :
SYSERR: May 3 06:25:01 :: RunState: LUA_ERROR: [string "horse_summon"]:1: attempt to index global `PetSystem' (a nil value)
SYSERR: May 3 06:25:01 :: WriteRunningStateToSyserr: LUA_ERROR: quest horse_summon.start leave
quest horse_summon begin
state start begin
function get_horse_summon_prob_pct()
local skill_level=pc.get_skill_level(131)
if skill_level==1 then
return 15
elseif skill_level==2 then
return 20
elseif skill_level==3 then
return 30
elseif skill_level==4 then
return 40
elseif skill_level==5 then
return 50
elseif skill_level==6 then
return 60
elseif skill_level==7 then
return 70
elseif skill_level==8 then
return 80
elseif skill_level==9 then
return 90
elseif skill_level>=10 then
return 100
end
end
when 20349.chat."Imaginea calului pierduta. " with horse.get_grade()==1 and pc.countitem("50051")<1 begin
say_title("Grajdar: ")
say("Dupa cum vad, ")
say("ti-ai pierdut Imaginea Calului. ")
local b=select("Vreau alta noua ", "Nu ma intereseaza ")
if 1==b then
if pc.money>=10000 then
pc.changemoney(-10000)
say_title("Grajdar: ")
say("Aici este noua ta imagine de cal. ")
say("Sper sa nu o mai pierzi. ")
pc.give_item2("50051", 1)
else
say_title("Grajdar: ")
say("Nu ai destui Yang. ")
end
elseif 2==b then
else
say("UNKNOWN BUTTON ["..b.."]")
end
end
when 20349.chat."Cartea Arme si Cai pierduta. " with horse.get_grade()==2 and pc.countitem("50052")<1 begin
say_title("Grajdar: ")
say("Dupa cum vad, ")
say("ti-ai pierdut Cartea Arme si Cai. ")
local b=select("Vreau alta noua ", "Nu ma intereseaza ")
if 1==b then
if pc.money>=50000 then
pc.changemoney(-50000)
say_title("Grajdar: ")
say("Aici este noua ta Carte Arme si Cai. ")
say("Sper sa nu o mai pierzi. ")
pc.give_item2("50052", 1)
else
say_title("Grajdar: ")
say("Nu ai destui Yang. ")
end
elseif 2==b then
else
say("UNKNOWN BUTTON ["..b.."]")
end
end
when 20349.chat."Cartea Armata si Cai pierduta. " with horse.get_grade()==3 and pc.countitem("50053")<1 begin
say_title("Grajdar: ")
say("Dupa cum vad,")
say("ti-ai pierdut Cartea Armata si Cai.")
local b=select("Vreau alta noua ", "Nu ma intereseaza ")
if 1==b then
if pc.money>=100000 then
pc.changemoney(-100000)
say_title("Grajdar: ")
say("Aici este noua ta Carte Armata si Cai. ")
say("Sper sa nu o mai pierzi. ")
pc.give_item2("50053", 1)
else
say_title("Grajdar: ")
say("Nu ai destui Yang. ")
end
elseif 2==b then
else
say("UNKNOWN BUTTON ["..b.."]")
end
end
when 50051.use with horse.get_grade()==0 begin
say_title("Grajdar: ")
say("Nu detii un cal! ")
end
when 50051.use with horse.get_grade()==1 begin
if pc.getsp()>=100 then
if number(1, 100)<=horse_summon.get_horse_summon_prob_pct() then
horse.summon()
else
chat("[Info]:Armasarul nu a putut fi strigat.")
end
pc.change_sp(-100)
else
say_title("Informatie: ")
say("Nu ai destule MP. Îti trebuie minim 100 MP")
say("pentru a chema calul. ")
end
end
when 50051.use with horse.get_grade()==2 begin
say_title("Informatie: ")
say("Ai folosit imaginea de chemare a calului gresita. ")
end
when 50051.use with horse.get_grade()==3 begin
say_title("Informatie: ")
say("Ai folosit imaginea de chemare a calului gresita. ")
end
when 50052.use with horse.get_grade()==0 begin
say_title("Informatie: ")
say("Ai folosit imaginea de chemare a calului gresita. ")
end
when 50052.use with horse.get_grade()==1 begin
say_title("Informatie: ")
say("Ai folosit imaginea de chemare a calului gresita. ")
end
when 50052.use with horse.get_grade()==2 begin
if pc.getsp()>=200 then
if number(1, 100)<=horse_summon.get_horse_summon_prob_pct() then
horse.summon()
else
chat("[Info]:Armasarul nu a putut fi strigat.")
end
pc.change_sp(-200)
else
say_title("Informatie: ")
say("Nu ai destule MP. Îti trebuie minim 200 MP")
say("pentru a chema calul. ")
end
end
when 50052.use with horse.get_grade()==3 begin
say_title("Informatie: ")
say("Ai folosit imaginea de chemare a calului gresita. ")
end
when 50053.use with horse.get_grade()==0 begin
say_title("Informatie: ")
say("Ai folosit imaginea de chemare a calului gresita. ")
end
when 50053.use with horse.get_grade()==1 begin
say_title("Informatie: ")
say("Ai folosit imaginea de chemare a calului gresita. ")
end
when 50053.use with horse.get_grade()==2 begin
say_title("Informatie: ")
say("Ai folosit imaginea de chemare a calului gresita. ")
end
when 50053.use with horse.get_grade()==3 begin
if pc.getsp()>=300 then
if number(1, 100)<=horse_summon.get_horse_summon_prob_pct() then
horse.summon()
else
chat("Armasarul nu a putut fi strigat.")
end
pc.change_sp(-300)
else
say_title("Informatie: ")
say("Nu ai destule MP. Îti trebuie minim 300 MP")
say("pentru a chema calul. ")
end
end
end
state __COMPLETE__ begin
when enter begin
q.done()
end
end
end
Si pet_system, de asemeni functional
quest pet_system begin
state start begin
function get_pet_info(itemVnum)
pet_info_map = {
-- [ITEM VNUM] MOB_VNUM, DEFAULT NAME
[53001] = { 34001, gameforge.pet_system._010_say , 0},
[53002] = { 34002, gameforge.pet_system._011_say , 0},
[53003] = { 34003, gameforge.pet_system._012_say , 0},
[53004] = { 34001, gameforge.pet_system._013_say , 0},
[53005] = { 34004, gameforge.pet_system._014_say , 1},
[53006] = { 34009, gameforge.pet_system._015_say , 1},
[53007] = { 34010, gameforge.pet_system._016_say , 0},
[53008] = { 34011, gameforge.pet_system._017_say , 0},
[53009] = { 34012, gameforge.pet_system._018_say , 0},
[53010] = { 34008, gameforge.pet_system._019_say , 0},
[53011] = { 34007, gameforge.pet_system._020_say , 0},
[53012] = { 34005, gameforge.pet_system._021_say , 0},
[53013] = { 34006, gameforge.pet_system._022_say , 0},
[53014] = { 34031, gameforge.pet_system._023_say , 0},
[53015] = { 34032, gameforge.pet_system._024_say , 0},
[53016] = { 34033, gameforge.pet_system._025_say , 0},
[53017] = { 34030, gameforge.pet_system._026_say , 0},
[53021] = { 34013, gameforge.pet_system._027_say , 0},
[53022] = { 34015, gameforge.pet_system._028_say , 0},
[53023] = { 34016, gameforge.pet_system._029_say , 0},
[53024] = { 34014, gameforge.pet_system._030_say , 0},
[53025] = { 34017, gameforge.pet_system._031_say , 0},
[53026] = { 34019, gameforge.pet_system._032_say , 0},
[53027] = { 34020, gameforge.pet_system._033_say , 0},
[53028] = { 34018, gameforge.pet_system._034_say , 0},
[53029] = { 34021, gameforge.pet_system._035_say , 0},
[53030] = { 34023, gameforge.pet_system._036_say , 0},
[53031] = { 34024, gameforge.pet_system._037_say , 0},
[53032] = { 34022, gameforge.pet_system._038_say , 0},
[53033] = { 34025, gameforge.pet_system._039_say , 0},
[53034] = { 34027, gameforge.pet_system._040_say , 0},
[53035] = { 34028, gameforge.pet_system._041_say , 0},
[53036] = { 34026, gameforge.pet_system._042_say , 0},
[53080] = { 53080, gameforge.pet_system._043_say , 0},
[53081] = { 53081, gameforge.pet_system._044_say , 0},
[53082] = { 53082, gameforge.pet_system._045_say , 0},
[53083] = { 53083, gameforge.pet_system._046_say , 0},
[53224] = { 53224, gameforge.pet_system._047_say , 0},
[53225] = { 53225, gameforge.pet_system._048_say , 0},
}
itemVnum = tonumber(itemVnum)
return pet_info_map[itemVnum]
end
function get_spawn_effect_file(idx)
effect_table = {
[0] = nil,
[1] = "d:\\\\ymir work\\\\effect\\\\etc\\\\appear_die\\\\npc2_appear.mse",
}
return effect_table [idx]
end
when 53001.use or 53002.use or 53003.use or 53004.use or 53005.use or 53006.use or 53007.use or 53008.use or 53009.use or
53010.use or 53011.use or 53012.use or 53013.use or 53014.use or 53015.use or 53016.use or 53017.use or 53021.use or
53022.use or 53023.use or 53024.use or 53025.use or 53026.use or 53027.use or 53028.use or 53029.use or 53030.use or
53031.use or 53032.use or 53033.use or 53034.use or 53035.use or 53036.use or 53080.use or 53081.use or 53082.use or
53083.use or 53224.use or 53225.use begin
local pet_info = pet_system.get_pet_info(item.vnum)
if null != pet_info then
local mobVnum = pet_info[1]
local petName = pet_info[2]
local spawn_effect_file_name = pet_system.get_spawn_effect_file(pet_info[3])
if true == pet.is_summon(mobVnum) then
if spawn_effect_file_name != nil then
pet.spawn_effect (mobVnum, spawn_effect_file_name)
end
pet.unsummon(mobVnum)
else
if pet.count_summoned() < 1 then
pet.summon(mobVnum, petName, false)
else
syschat(gameforge.pet_system._99_chat)
end
if spawn_effect_file_name != nil then
pet.spawn_effect (mobVnum, spawn_effect_file_name)
end
end -- if pet.is_summon
end -- if null != pet_info
end -- when
end -- state
end -- quest
Inainte insa de a instala questurile, ai grija sa stergi tot ce tine de horse_summon, si pet_system,existent in acest moment, in object/state, notarget, si folderele peturilor respective.
-
- Informaţie
-
Cine este conectat
Utilizatori ce ce navighează pe acest forum: Bing [Bot], sanducatalin1 și 35 vizitatori




