Help with an error in the questlib.lua

02/15/2013 21:18 tazbunny#1
I need a little help with a problem I have in questlib.lua fails, and I think it's because I have tucked functions .. but as I say I think that's

could you tell me where you put the lua functions?

because I get this error:
locale / germany / quest / questlib.lua: 1558: attempt to index field '?' (a nil value)

and the line to which it refers is:
{['type'] = apply.MAX_HP, ['name'] = "Sangue Vitale", ['max_points'] = 30, ['min_level'] = PetSystem [1]. StartingLevel, ['desc'] = "HP +100 ", ['mult'] = 100, ['tag'] =" HP "},

can you tell me how I can fix?
02/15/2013 21:20 DasKuchen#2
Maybe like this:

PHP Code:
{'type' apply.MAX_HP'name' "Sangue Vitale"'max_points' 30'min_level' PetSystem [1]. StartingLevel'desc' "HP +100 "'mult' 100'tag' =" HP "}, 
And its the wrong section you need to post it here:
[Only registered and activated users can see links. Click Here To Register...]
02/15/2013 23:04 tazbunny#3
Quote:
Originally Posted by DasKuchen View Post
Maybe like this:

PHP Code:
{'type' apply.MAX_HP'name' "Sangue Vitale"'max_points' 30'min_level' PetSystem [1]. StartingLevel'desc' "HP +100 "'mult' 100'tag' =" HP "}, 
And its the wrong section you need to post it here:
[Only registered and activated users can see links. Click Here To Register...]
No friend .. I works with that now I get an error:
PHP Code:
connectConnection refused
locale
/germany/quest/questlib.lua:1557: `}' expected near `=
02/16/2013 00:04 GunnerMBT#4
Would help if you post the code near the line it refers the error to.
02/16/2013 00:07 tazbunny#5
Quote:
Originally Posted by GunnerMBT View Post
Would help if you post the code near the line it refers the error to.
PHP Code:
-- Classe
PetSystem 
= {['Folder'] = QuestFolder.."io/pet/", ['Flag'] = "active_pet"}
-- 
Pet 1
PetSystem
[1] =
   {[
'Name'] = "Fenice Rossa", ['Level'] = 22, ['Item'] = 50512, ['StartingLevel'] = 50, ['FinalLevel'] = 210, ['WindowSize'] = 395,
        [
'Skill']= {
          {[
'type']=apply.MAX_HP,['name']="Sangue Vitale",['max_points']=30,['min_level']=PetSystem[1].StartingLevel,['desc']="+100HP",['mult']=100,['tag']=" HP"},
          {[
'type']=apply.INT,['name']="Inteligencia",['max_points']=15,['min_level']=PetSystem[1].StartingLevel,['desc']="+1 INT",['mult']=1,['tag']=" Inteligencia"},
          {[
'type']=apply.STR,['name']="Fuerza",['max_points']=15,['min_level']=PetSystem[1].StartingLevel,['desc']="+1 STR",['mult']=1,['tag']=" Fuerza"},
          {[
'type']=apply.DEX,['name']="Dextresa",['max_points']=15,['min_level']=PetSystem[1].StartingLevel,['desc']="+1 DEX",['mult']=1,['tag']=" Dextresa"},
          {[
'type']=apply.STEAL_HP,['name']="Absorver HP ",['max_points']=15,['min_level']=75,['desc']="+1% ass. HP",['mult']=1,['tag']="% Absorver HP"},
          {[
'type']=apply.ATT_GRADE_BONUS,['name']="Valor de Ataque",['max_points']=20,['min_level']=100,['desc']="+10 de valor de ataque",['mult']=20,['tag']=" Valor de Ataque"},
          {[
'type']=apply.CRITICAL_PCT,['name']="Criticos",['max_points']=20,['min_level']=125,['desc']="+1% posibilidad de golpes criticos",['mult']=1,['tag']="% Criticos"},
          {[
'type']=apply.ATTBONUS_MONSTER,['name']="Fuerza Moustros",['max_points']=20,['min_level']=150,['desc']="+1% Fuerza contra moustros",['mult']=1,['tag']="% Fuerza contra moustros"},
          {[
'type']=apply.BLOCK,['name']="Bloqueo al cuerpo",['max_points']=10,['min_level']=175,['desc']="+1% posibilidad de Bloqueo al cuerpo",['mult']=1,['tag']="% Bloqueo al cuerpo"}
          } 
02/16/2013 10:15 Metin2 Team#6
You have to make this folder

io/pet ( inside quest )