Cod: Selectaţi tot
must start with 'quest'
PetSystem.lua:4:Abort (core dumped)Arata cam asa:
Inceputul:
Cod: Selectaţi tot
QuestFolder = get_locale_base_path().."/quest/"
PetSystem = {
['Folder'] = QuestFolder.."pet/",
['ItemExp'] = 4000000,
['UpdateFrequency'] = 30,
['Flag'] = "active_pet",
['ExpFlag'] = "exp_blocked"
}
PetSystem[1] =
{
['Name'] = "Phoenix de Foc",
['File'] = "Phoenix_de_Foc",
['Summon'] = "Ai invocat un Phoenix de Foc!",
['Level'] = 22,
['Item'] = 53001,
['MaxLevel'] = 99,
['WindowSize'] = 395,
['Skill']= {Cod: Selectaţi tot
function PetSystem.ShowMenu(PetIndex)
if horse.is_mine() then
local pet_menu
if pc.getqf("exp_blocked") == 0 then
pet_menu = {"Informaþii","Gestionare abilitãþi","Blocare experienþã","Status abilitãþi","Alungã ","Închide"}
else
pet_menu = {"Informaþii","Gestionare abilitãþi","Deblocare experienþã","Status abilitãþi","Alungã ","Închide"}
end
say(""..pc.get_name().." - "..PetSystem[PetIndex].Name.."")
local skill_points, liv, ex = PetSystem.ReadStatus(PetIndex)
say_reward("Nivelul "..liv.." cu "..skill_points.." punct(e) de abilitate ºi")
say_reward(ex.."/"..PetSystem[PetIndex].ExpTable[liv].." puncte de experienþã." )
say ( "" )
local s = select_table(pet_menu)
Cod: Selectaţi tot
--** Retrurneaza experienta dupa deblocare
function PetSystem.IsExpBlocked()
return (pc.getqf(PetSystem.ExpFlag) == 1)
end
--**
--** Culori
--**
function say_light_yellow(str)
say(color256(255,255,128)..str..color256(196, 196, 196))
end
function say_yellow(str)
say(color256(255,255,53)..str..color256(196, 196, 196))
end
function say_orange(str)
say(color256(255,191,24)..str..color256(196, 196, 196))
end
function say_light_blue(str)
say(color256(130, 192, 255)..str..color256(196, 196, 196))
end
function say_bonus(str)
say(color256(167, 255, 212)..str..color256(196, 196, 196))
end
P.S: Nu vreau sa fac public tot questul, de aceea am pus fragmente.




