irgendwie funktioniert bei mir die Pet Quest nicht
Hier die Quest:
PHP Code:
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._020_say ,0},
[53003] = { 34003, gameforge.pet_system._040_say ,0},
[53005] = { 34004, gameforge.pet_system._050_say, 1},
[53006] = { 34009, gameforge.pet_system._050_say, 1},
[53010] = { 34008, gameforge.pet_system._060_say, 0},
[53011] = { 34007, gameforge.pet_system._070_say, 0},
[53012] = { 34005, gameforge.pet_system._080_say, 0},
[53013] = { 34006, gameforge.pet_system._090_say, 0},
[53007] = { 34010, gameforge.pet_system._100_say, 0},
[53008] = { 34011, gameforge.pet_system._110_say, 0},
[53009] = { 34012, gameforge.pet_system._120_say, 0},
-- GF specials
[38200] = { 34006, gameforge.pet_system._090_say, 0},
[38201] = { 34006, gameforge.pet_system._090_say, 0},
[53014] = { 34013, gameforge.pet_system._130_say, 0},
[53015] = { 34014, gameforge.pet_system._140_say, 0},
[53016] = { 34015, gameforge.pet_system._150_say, 0},
[53017] = { 34016, gameforge.pet_system._160_say, 0},
[53020] = { 34017, gameforge.pet_system._170_say, 0},
[53021] = { 34018, gameforge.pet_system._180_say, 0},
[53019] = { 34019, gameforge.pet_system._190_say, 0},
[53018] = { 34020, gameforge.pet_system._200_say, 0},
[53022] = { 34021, gameforge.pet_system._210_say, 0},
[53023] = { 34022, gameforge.pet_system._220_say, 0},
[53024] = { 34023, gameforge.pet_system._230_say, 0},
[53025] = { 34024, gameforge.pet_system._240_say, 0},
[53026] = { 34025, gameforge.pet_system._250_say, 0},
[53223] = { 34026, gameforge.pet_system._260_say, 0},
[53222] = { 34027, gameforge.pet_system._270_say, 0},
[53224] = { 34028, gameforge.pet_system._280_say, 0},
[53225] = { 34029, gameforge.pet_system._290_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 38200.use or 38201.use or 53007.use or 53013.use or 53012.use or 53011.use or 53010.use or 53006.use or 53005.use or 53002.use or 53001.use or 53003.use or 53008.use or 53009.use or
53014.use or 53015.use or 53016.use or 53017.use or 53018.use or 53019.use or 53020.use or 53021.use or 53022.use or 53023.use or 53024.use or 53025.use or 53026.use or 53222.use or
53223.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._030_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
Hier Syserr in game/channel1:
SYSERR: Aug 8 13:57:34.341387 :: LoadSkillMotion: Motion: Skill exist but no motion data for index 0 mob 3596 skill 257
SYSERR: Aug 8 13:57:34.341410 :: LoadSkillMotion: Motion: Skill exist but no motion data for index 1 mob 3596 skill 258
SYSERR: Aug 8 13:58:51.797675 :: RunState: LUA_ERROR: locale/turkey/quest/object/state/pet_system:2: attempt to index field `pet_system' (a nil value)
SYSERR: Aug 8 13:58:51.797697 :: WriteRunningStateToSyserr: LUA_ERROR: quest pet_system.start click
SYSERR: Aug 8 13:58:52.637625 :: RunState: LUA_ERROR: locale/turkey/quest/object/state/pet_system:2: attempt to index field `pet_system' (a nil value)
SYSERR: Aug 8 13:58:52.637646 :: WriteRunningStateToSyserr: LUA_ERROR: quest pet_system.start click
SYSERR: Aug 8 13:58:53.198751 :: RunState: LUA_ERROR: locale/turkey/quest/object/state/pet_system:2: attempt to index field `pet_system' (a nil value)
SYSERR: Aug 8 13:58:53.198772 :: WriteRunningStateToSyserr: LUA_ERROR: quest pet_system.start click
SYSERR: Aug 8 13:57:34.341410 :: LoadSkillMotion: Motion: Skill exist but no motion data for index 1 mob 3596 skill 258
SYSERR: Aug 8 13:58:51.797675 :: RunState: LUA_ERROR: locale/turkey/quest/object/state/pet_system:2: attempt to index field `pet_system' (a nil value)
SYSERR: Aug 8 13:58:51.797697 :: WriteRunningStateToSyserr: LUA_ERROR: quest pet_system.start click
SYSERR: Aug 8 13:58:52.637625 :: RunState: LUA_ERROR: locale/turkey/quest/object/state/pet_system:2: attempt to index field `pet_system' (a nil value)
SYSERR: Aug 8 13:58:52.637646 :: WriteRunningStateToSyserr: LUA_ERROR: quest pet_system.start click
SYSERR: Aug 8 13:58:53.198751 :: RunState: LUA_ERROR: locale/turkey/quest/object/state/pet_system:2: attempt to index field `pet_system' (a nil value)
SYSERR: Aug 8 13:58:53.198772 :: WriteRunningStateToSyserr: LUA_ERROR: quest pet_system.start click
Wäre nett wenn mir jmd. helfen könnte.
P.s ist die Quest aus den Viruzdev Files und dort funktioniert sie ohne Probleme






