Eroare script

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Închis
Avatar utilizator
KriTecK
Fost Helper

Fost Helper
Mesaje: 520
Membru din: 28 Iul 2013, 11:05
Aprecieri: 9  
Mulţumiri: 11  
 Contact:
Medalii

Salut.

La scriptul acesta imi da core dumped ce sa modific in questu asta sa nu-mi mai dea eroare?
Eroarea:
QUEST : roua_quest_lv1
STATE : start
WHEN : login or
WHEN : levelup
with pc . level >= 1 and pc . level <= 50
expecting 'state'
rouapermanenta.quest:7:Abort trap: 6 (core dumped)
QEUST:
quest roua_quest_lv1 begin
state start begin
when login or levelup with pc.level >= 1 and pc.level <= 50 begin
set_state(information)
end
end
say_title("Ca recompensa vei primi:")
say_reward("Bonus Viteza de miscare +10% (Permanent).")
say_reward("Bonus Viteza de atac +10% (Permanent).")
say_reward("Valoarea atacului +120% (Permanent).")
say_reward("Rezistenta la magie +20% (Permanent).")
say_reward("Aparare +200% (Permanent).")
say_reward("Sansa de lov. Critica +20% (Permanent).")
say_reward("Sansa de lov. Patrunzatoare +20% (Permanent).")
affect.add_collect(apply.MOV_SPEED, 10, 60*60*24*365*60) --60年
affect.add_collect(apply.ATT_SPEED, 10, 60*60*24*365*60) --60年
affect.add_collect(apply.CRITICAL_PCT, 20, 60*60*24*365*60) --60年
affect.add_collect(apply.PENETRATE_PCT, 20, 60*60*24*365*60) --60年
affect.add_collect(apply.ATT_GRADE_BONUS, 120, 60*60*24*365*60) --60年
affect.add_collect(apply.DEF_GRADE_BONUS, 200, 60*60*24*365*60) --60年
affect.add_collect(apply.RESIST_MAGIC, 20, 60*60*24*365*60) --60年
pc.give_item2(50109, 1)
clear_letter()
set_state(__complete)
end
end
state __complete begin
end
end
Questu as vrea sa-l primeasca la lvl 50 sau sa apara ca si quest si atat. Ma poate ajuta cineva va rog ?:D
Avatar utilizator
Darius112
Nivel 3

Nivel 3
Mesaje: 316
Membru din: 16 Iun 2014, 17:05
Server: Metin2
Regat: Jinno
Aprecieri: 1  
Mulţumiri: 2  
Medalii

Ia incearca asta:

Cod: Selectaţi tot

quest roua_quest_lv1  begin
   state start begin
      when login or levelup with pc.level >= 1 and pc.level <= 50 begin
         set_state(information)
      end   
   end
say_title("Ca recompensa vei primi:")
         say_reward("Bonus Viteza de miscare +10% (Permanent).")
         say_reward("Bonus Viteza de atac +10% (Permanent).")
         say_reward("Valoarea atacului +120% (Permanent).")
         say_reward("Rezistenta la magie +20% (Permanent).")
         say_reward("Aparare +200% (Permanent).")
         say_reward("Sansa de lov. Critica +20% (Permanent).")
         say_reward("Sansa de lov. Patrunzatoare +20% (Permanent).")
         affect.add_collect(apply.MOV_SPEED, 10, 60*60*24*365*60) --60¦~   
         affect.add_collect(apply.ATT_SPEED, 10, 60*60*24*365*60) --60¦~   
         affect.add_collect(apply.CRITICAL_PCT, 20, 60*60*24*365*60) --60¦~
         affect.add_collect(apply.PENETRATE_PCT, 20, 60*60*24*365*60) --60¦~   
         affect.add_collect(apply.ATT_GRADE_BONUS, 120, 60*60*24*365*60) --60¦~
         affect.add_collect(apply.DEF_GRADE_BONUS, 200, 60*60*24*365*60) --60¦~
         affect.add_collect(apply.RESIST_MAGIC, 20, 60*60*24*365*60) --60¦~
         pc.give_item2(50109, 1)
         clear_letter()
         set_state(__complete)
      end
   end
   state __complete begin
   end
 end
end
Avatar utilizator
KriTecK
Fost Helper

Fost Helper
Mesaje: 520
Membru din: 28 Iul 2013, 11:05
Aprecieri: 9  
Mulţumiri: 11  
 Contact:
Medalii

TOt nu merge..
Avatar utilizator
AdrianC
Nivel 4

Nivel 4
Mesaje: 676
Membru din: 30 Noi 2014, 20:37
Server: #.#
Regat: Chunjo
Aprecieri: 0
Mulţumiri: 47  
Medalii

Dacă vrei direct, poți să îmi postezi give_weapons.quest și îți pun eu să le de-a direct bonusurile pentru rouă.
Avatar utilizator
KriTecK
Fost Helper

Fost Helper
Mesaje: 520
Membru din: 28 Iul 2013, 11:05
Aprecieri: 9  
Mulţumiri: 11  
 Contact:
Medalii

Quest:
if pc . getqf ( "basicweapon" ) == 0 then local klasse
if pc . job == 0 then
pc . give_item2 ( 11259 , 1 )
pc . give_item2 ( 19 , 1 )
pc . give_item2 ( 12209 , 1 )
klasse = "Razboinic"
notice_all ( "Un nou jucator cu rasa: Razboinic s-a alaturat pe server.Numele lui este: " .. pc . get_name ( ) .. "" )
notice_all ( "El/Ea Apartine regatului: " .. ( { "Rosu" , "Galben" , "Albastru" } ) [ pc . get_empire ( ) ] .. "" )
elseif pc . job == 1 then
pc . give_item2 ( 11459 , 1 )
pc . give_item2 ( 2009 , 1 )
pc . give_item2 ( 1009 , 1 )
pc . give_item2 ( 12349 , 1 )
klasse = "Ninja"
notice_all ( "Un nou jucator cu rasa: Ninja s-a alaturat pe server.Numele lui este: " .. pc . get_name ( ) .. "" )
notice_all ( "El/Ea Apartine regatului: " .. ( { "Rosu" , "Galben" , "Albastru" } ) [ pc . get_empire ( ) ] .. "" )
elseif pc . job == 2 then
pc . give_item2 ( 19 , 1 )
pc . give_item2 ( 12489 , 1 )
pc . give_item2 ( 11659 , 1 )
klasse = "Sura"
notice_all ( "Un nou jucator cu rasa: Sura s-a alaturat pe server.Numele lui este: " .. pc . get_name ( ) .. "" )
notice_all ( "El/Ea Apartine regatului: " .. ( { "Rosu" , "Galben" , "Albastru" } ) [ pc . get_empire ( ) ] .. "" )
elseif pc . job == 3 then
pc . give_item2 ( 7009 , 1 )
pc . give_item2 ( 12629 , 1 )
pc . give_item2 ( 11859 , 1 )
klasse = "Saman"
notice_all ( "Un nou jucator cu rasa: Shaman s-a alaturat pe server.Numele lui este: " .. pc . get_name ( ) .. "" )
notice_all ( "El/Ea Apartine regatului: " .. ( { "Rosu" , "Galben" , "Albastru" } ) [ pc . get_empire ( ) ] .. "" )
end
local empire = pc . get_empire ( )
if pc . empire == 1 then
pc . give_item2 ( 27112 , 10 )
pc . give_item2 ( 71050 , 200 )
elseif pc . empire == 2 then
pc . give_item2 ( 27112 , 10 )
pc . give_item2 ( 71050 , 200 )
elseif pc . empire == 3 then
pc . give_item2 ( 27112 , 10 )
pc . give_item2 ( 71050 , 200 )
end
pc . give_item2 ( 70038 , 1 )
pc . give_item2 ( 72702 , 1 )
pc . give_item2 ( 13009 , 1 )
pc . give_item2 ( 17009 , 1 )
pc . give_item2 ( 14009 , 1 )
pc . give_item2 ( 15009 , 1 )
pc . give_item2 ( 72501 , 1 )
pc . give_item2 ( 50053 , 1 )
pc . give_item2 ( 16009 , 1 )
pc . change_money ( 50000000 )
say_title ( "Nume" )
say ( "" )
say_verde ( "Bun venit pe Metin2" )
say_verde ( "Ai primit echipament +9 pentru caracterul tau." )
say_verde ( "Pentru orice problema luati legatura cu membrii staffului" )
say_verde ( "Va multumim ca ati ales Nume" )
say_verde ( "Team @ Nume" )
pc . setqf ( "basicweapon" , 1 )
set_state ( "__complete" )
return end
Avatar utilizator
AdrianC
Nivel 4

Nivel 4
Mesaje: 676
Membru din: 30 Noi 2014, 20:37
Server: #.#
Regat: Chunjo
Aprecieri: 0
Mulţumiri: 47  
Medalii

Basic
Închis

Înapoi la “Arhivă Probleme şi Întrebări”

  • Informaţie