Problema quest

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

Nivel 4
Mesaje: 566
Membru din: 01 Mar 2014, 14:08
Aprecieri: 2  
Mulţumiri: 483  
Medalii

Salut j4m am si eu o eroare cand instalez un quest, ma puteti ajuta?

Quest:
quest cal_militar begin
state start begin
when 20349.chat."Cal militar" with horse.get_grade()==1 and horse.get_level()==10 begin
if horse.is_dead() then
say("Calul tau e mort!")
say("Readul la viata intai.")
say("")
elseif pc.level<=54 then
say("Nivelul tau este prea mic.")
say("")
elseif horse.get_level()<=9 then
say("Calul tau este prea mic!")
say("Antreneaza-ti calul mai intai.")
say("")
elseif pc.countitem("50050")<1 then
say("Nu ai nici o medalie!")
say("Fa rost de una intai.")
say("")
setstate(need_item50050)
elseif pc.countitem("50051")<1 then
say("Nu ai niic o imagine de cal !")
say("")
elseif horse.get_level()==10 and not horse.is_dead() and pc.countitem("50050")>=1 and pc.level>=55 then
say("Trebuie sa omori 200 de Arcas Demon")
say("in 30 de Minute.")
say("Doar asa pot fi sigur ca esti calificat")
say("pentru a primi un cal militar!")
say("")
say("Vrei sa incepi testul?")
say("")
local b=select("Da", "Ehm, nu.")
if 1==b then
if pc.countitem("50050")>=1 then
pc.removeitem("50050", 1)
setstate(test)
end
elseif 2==b then
say("Revino cand esti pregatit.")
else
say("UNKNOWN BUTTON ["..b.."]")
end
else
say("")
say("Mult noroc.")
say("")
end
end
end
state need_item50050 begin
when letter begin
setskin(NOWINDOW)
makequestbutton("Medalie de Calarit")
q.set_title("Medalie de Calarit")
q.start()
end
when button begin
say(locale.NOTICE_COLOR.."Medalie de Calarit"..locale.NORMAL_COLOR)
say("Fa rost de o Medalie de Calarit!")
setstate(start)
q.done()
end
when info begin
say(locale.NOTICE_COLOR.."Medalie de Calarit"..locale.NORMAL_COLOR)
say("Fa rost de o Medalie de Calarit!")
setstate(start)
q.done()
end
end
state test begin
when letter begin
q.set_counter("1002 ", 200-pc.getqf("kill_count"))
end
when 2105.party_kill begin
pc.setqf("kill_count", pc.getqf("kill_count")+1)
q.set_counter("1002 ", 200-pc.getqf("kill_count"))
if get_time()>=pc.getqf("limit_time") then
setstate(failure)
end
end
when 2107.party_kill begin
pc.setqf("kill_count", pc.getqf("kill_count")+1)
q.set_counter("1002 ", 200-pc.getqf("kill_count"))
if get_time()>=pc.getqf("limit_time") then
setstate(failure)
q.done()
end
end
when letter begin
q.set_clock("Timp ramas:", pc.getqf("limit_time")-get_time())
end
when enter begin
pc.setqf("limit_time", get_time()+30*60)
pc.setqf("kill_count", 0)
end
when leave begin
q.done()
end
when letter begin
setskin(NOWINDOW)
makequestbutton("Omoara Demoni Arcas")
q.set_title("Omoara Demoni Arcas")
q.start()
end
when button begin
say(locale.NOTICE_COLOR.."Omoara Demoni Arcas"..locale.NORMAL_COLOR)
say("Trebuie sa omori 200 de Arcas Demon")
say("in 30 de Minute.")
say("Membrii grupei te pot ajuta.")
end
when info begin
say(locale.NOTICE_COLOR.."Omoara Demoni Arcas"..locale.NORMAL_COLOR)
say("Trebuie sa omori 200 de Arcas Demon")
say("in 30 de Minute.")
say("Membrii grupei te pot ajuta.")
end
when 2105.party_kill with pc.getqf("kill_count") >= 100 and pc.getqf("kill_count") >= 100 and pc.getqf("limit_time")>=get_time() begin
setstate(report)
end
when 2107.party_kill with pc.getqf("kill_count") >= 100 and pc.getqf("kill_count") >= 100 and pc.getqf("limit_time")>=get_time() begin
setstate(report)
end
when 20349.chat."Cal Militar" begin
say("Trebuie sa omori 200 de Arcas Demon")
say("in 30 de Minute.")
say("Membrii grupei te pot ajuta.")
end
end
state report begin
when letter begin
setskin(NOWINDOW)
makequestbutton("Ai reusit")
q.set_title("Ai reusit")
q.start()
end
when button begin
say(locale.NOTICE_COLOR.."Ai reusit"..locale.NORMAL_COLOR)
say("Intoarcete la grajdar.")
end
when info begin
say(locale.NOTICE_COLOR.."Ai reusit"..locale.NORMAL_COLOR)
say("Intoarcete la grajdar.")
end
when 20349.chat."HORSE QUEST STATE REPAIR" with horse.get_grade()!=1 begin
setstate(start)
q.done()
end
when 20349.chat."Am reusit!" with horse.get_grade()==1 begin
say("Felicitari!")
say("Acum am nevoie de timp pentru a face contractul!")
say("Revino in 10 minute.")
say("Si adu 500.000 Yang.")
if is_test_server() then
pc.setqf("make_time", get_time()+10)
else
pc.setqf("duration",get_time()+60*10*)
end
setstate(wait)
end
end

when 20349.chat."HORSE UPGRADE QUEST STATE REPAIR" with horse.get_grade()!=1 begin
setstate(start)
q.done()
end
when 20349.chat."Contractul?" with horse.get_grade()==1 begin
say("Inca nu am terminat contractul")
say("Revino mai tarziu.")
end
end
state buy begin
when letter begin
setskin(NOWINDOW)
makequestbutton("Contractul este gata!")
q.set_title("Contractul este gata!")
q.start()
end
when button begin
say(locale.NOTICE_COLOR.."Contractul este gata!"..locale.NORMAL_COLOR)
say("Dute la grajdar si ia-l!")
say("Si nu uita cei 500.000 Yang.")
end
when info begin
say(locale.NOTICE_COLOR.."Contractul este gata!"..locale.NORMAL_COLOR)
say("Dute la grajdar si ia-l!")
say("Si nu uita cei 500.000 Yang.")
end
when 20349.chat."HORSE UPGRADE QUEST STATE REPAIR" with horse.get_grade()!=1 begin
setstate(start)
q.done()
end
when 20349.chat."HORSE UPGRADE QUEST STATE REPAIR" with horse.get_grade()==1 and horse.get_level()!=10 begin
setstate(start)
q.done()
end
when 20349.chat."Contractul meu?" with horse.get_grade()==1 and horse.get_level()==10 begin
say("COntractul tau este pregatit.")
say("Te costa 500.000 Yang.")
local b=select("Cumpara", "Mai tarziu", "Anuleaza")
if 1==b then
if pc.money>=500000 then
if pc.countitem("50051")>=1 then
char_log(0, "HORSE_UPGRADE", "BEGIN")
pc.changemoney(-500000)
char_log(0, "HORSE_UPGRADE", "DEC money 500000")
pc.removeitem("50051", 1)
char_log(0, "HORSE_UPGRADE", "DEC 50051 1")
horse.unride()
horse.advance()
horse.ride()
char_log(0, "HORSE_UPGRADE", "INC horse_advance 1")
pc.give_item2("50052", 1)
char_log(0, "HORSE_UPGRADE", "INC 50052 1")
char_log(0, "HORSE_UPGRADE", "END")
say("Felicitari!")
say("Acum ai un cal militar.")
say("Hranestel mereu.")
say("")
setstate(start)
q.done()
else
say("")
end
else
say("")
end
elseif 2==b then
say("Ouk pe mai incolo.")
elseif 3==b then
say("Esti sigur ca vrei sa anulezi Questul?")
local b=select("Da", "Nu")
if 1==b then
setstate(start)
q.done()
elseif 2==b then
else
say("UNKNOWN BUTTON ["..b.."]")
end
else
say("UNKNOWN BUTTON ["..b.."]")
end
end
end
state failure begin
when letter begin
setskin(NOWINDOW)
makequestbutton("Misiune esuata")
q.set_title("Misiune esuata")
q.start()
end
when button begin
say(locale.NOTICE_COLOR.."Misiune esuata"..locale.NORMAL_COLOR)
say("Nu ai reusit sa treci testul")
say("")
say("Dute la grajdar, pentru a repeta misiunea!")
setstate(start)
q.done()
end
when info begin
say(locale.NOTICE_COLOR.."Misiune esuata"..locale.NORMAL_COLOR)
say("Nu ai reusit sa treci testul")
say("")
say("Dute la grajdar, pentru a repeta misiunea!")
setstate(start)
q.done()
end
end
state __COMPLETE__ begin
when enter begin
q.done()
end
end
end
Eroare:
callvl11.quest:162:syntax error : [string "reporthorse . get_grade ( ) == 1"]:8: unexpected symbol near `)'
Ai nevoie de support? Contacteaza-ma!

Contact!
Discord: Dragos001#6927
Afișează semnătura
Avatar utilizator
qFrumosu
Nivel 1

Nivel 1
Mesaje: 142
Membru din: 19 Iun 2015, 16:00
Server: Se Lucreaza.
Aprecieri: 2  
Mulţumiri: 0
Medalii

Acel quest poate nu este bun , incearca-l pe asta :

Cod: Selectaţi tot

quest horse begin
   state start begin
      when 20349.chat."Cumpãrã Cal" begin
         say_title("Grãjdar:")
         say("Salut tinere aventurier.")
         say("Vrei sã afli cum poþi avea un cal?")
         say("Ei bine eu te pot ajuta")
         say("însã trebuie sã faci ceva pentru mine.")
         say_reward("Deci esti deacord?")

         local anfrage = select("Da", "Nu")
         
         if anfrage == 1 then
            say_title("Grãjdar:")
            say("Mai jos ai niºte opþiuni ")
            say("din care poþi alege numai una.")
            say("Calul armat costã: 500.000 Yang.")
            say("Calul militar costã: 5.000.000.")
            say_reward("Care este calul pe care doriþi sã-l cumpãraþi?")

            local kaufen = select("Cal armat", "Cal militar" , "Închide")

            if kaufen == 1 then
               if pc.gold < 500000 then
                  say_title("Grãjdar:")
                  say("Calul nu este gratuit.")
                  say("Eu þi l-aº da pentru nimic,")
                  say("dar trebuie sã îmi întreþin familia")
               else
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  pc.give_item2(50052)
                  pc.change_money(-500000)
               end

            elseif kaufen == 2 then
               if pc.gold < 1000000 then
                  say_title("Grãjdar:")
                  say("Calul nu este gratuit.")
                  say("Eu þi l-aº da pentru nimic,")
                  say("dar trebuie sã îmi întreþin familia")
               else
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  pc.give_item2(50053)
                  pc.change_money(-1000000)
               end
            end
         end
      end
   end
end
Avatar utilizator
dragos001
Nivel 4

Nivel 4
Mesaje: 566
Membru din: 01 Mar 2014, 14:08
Aprecieri: 2  
Mulţumiri: 483  
Medalii

qFrumosu scrie:Acel quest poate nu este bun , incearca-l pe asta :

Cod: Selectaţi tot

quest horse begin
   state start begin
      when 20349.chat."Cumpãrã Cal" begin
         say_title("Grãjdar:")
         say("Salut tinere aventurier.")
         say("Vrei sã afli cum poþi avea un cal?")
         say("Ei bine eu te pot ajuta")
         say("însã trebuie sã faci ceva pentru mine.")
         say_reward("Deci esti deacord?")

         local anfrage = select("Da", "Nu")
         
         if anfrage == 1 then
            say_title("Grãjdar:")
            say("Mai jos ai niºte opþiuni ")
            say("din care poþi alege numai una.")
            say("Calul armat costã: 500.000 Yang.")
            say("Calul militar costã: 5.000.000.")
            say_reward("Care este calul pe care doriþi sã-l cumpãraþi?")

            local kaufen = select("Cal armat", "Cal militar" , "Închide")

            if kaufen == 1 then
               if pc.gold < 500000 then
                  say_title("Grãjdar:")
                  say("Calul nu este gratuit.")
                  say("Eu þi l-aº da pentru nimic,")
                  say("dar trebuie sã îmi întreþin familia")
               else
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  pc.give_item2(50052)
                  pc.change_money(-500000)
               end

            elseif kaufen == 2 then
               if pc.gold < 1000000 then
                  say_title("Grãjdar:")
                  say("Calul nu este gratuit.")
                  say("Eu þi l-aº da pentru nimic,")
                  say("dar trebuie sã îmi întreþin familia")
               else
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  horse.advance()
                  pc.give_item2(50053)
                  pc.change_money(-1000000)
               end
            end
         end
      end
   end
end
Nu vreau acest quest.
Edit: Nimeni?
Ai nevoie de support? Contacteaza-ma!

Contact!
Discord: Dragos001#6927
Afișează semnătura
Avatar utilizator
dragos001
Nivel 4

Nivel 4
Mesaje: 566
Membru din: 01 Mar 2014, 14:08
Aprecieri: 2  
Mulţumiri: 483  
Medalii

up
Ai nevoie de support? Contacteaza-ma!

Contact!
Discord: Dragos001#6927
Afișează semnătura
Închis
Răspunsuri
6
Vizualizări
400
Răspunsuri
4
Vizualizări
224
Răspunsuri
4
Vizualizări
414
Răspunsuri
3
Vizualizări
737

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

  • Informaţie