Quest [MINI-RELEASE] La mia prima quest!

Stato
Discussione chiusa ad ulteriori risposte.

RaVe_Soldier

Utente Electrum
9 Settembre 2014
231
38
99
159
Ultima modifica da un moderatore:
Salve inforge.
Da qualche settimana sto provando ad imparare il linguaggio che si utilizza nelle quest/script.
Allora provando e riprovando ho provato a fare questa quest molto molto semplice e postarvela visto che non ho un server di prova,e non so se effettivamente funziona.
Vi chiederei di vedere se per caso sono presenti errori e provvederò a correggerli.
Ditemi cosa ne pensate.
VI CHIEDO UN FAVORE SE PER CASO TROVATE ERRORI, RISPONDETE ALLA DISCUSSIONE QUOTANDO IL POST ALMENO RIUSCIRO A CORREGGERE SUBITO.

Ecco qui la quest,è una missione lv.100 in cui bisogna uccidere 3 Morti Blu e la bottegaia vi darà 250kk e 10 perle di ogni tipo (Ricompensa modificabile ovviamente,messa cosi a caso xD).


Codice:
quest uccidimorteblu begin



 state start begin


     when login or levelup with pc.level >= 100 begin
         set_state ( "startmissione" )
     end


    end


 state startmissione begin


     when letter begin
         local v = find_npc_by_vnum ( 9003 )
         if v != 0 then
             target.vid ( "__TARGET__" , v, "uccidimorteblu" )
         end
         send_letter ( "Uccidi 3 Morti Blu" )
     end


     when button or info begin
         say_reward ( "Quest Master :" )
         say ( "La bottegaia ha bisogno di parlare con te!" )
         say ( "Vai da lei,presto!" )
     end


        when 9003.chat."Eccoti finalmente!" begin
         target.delete ( "__TARGET__" )
         say_title ( "Bottegaia")
         say ( "Da una settimana le Morti Blu minacciano il nostro villaggio e vogliono distruggerlo." )
         say ( "Per favore potresti aiutarci?" )
         say ( "Sara sufficiente uccidere 3 Morti Blu per fermarli!" )
         say ( "" )
         set_state ( "uccidimob" )
     end


    end


 state uccidimob begin


        when letter begin
         send_letter ( "Uccidi 3 Morti Blu" )
     end


     when button or info begin
         say_reward ( "Quest Master:" )
         say ( "Uccidi 3 Morti Blu" )
         say ( "Ne hai uccisi " .. pc.getqf ( "uccidimorteblu" ) )
         say ( "Ne devi uccidere ancora " .. 3 - pc.getqf ( "uccidimorteblu" ) )
         say ( "" )
     end


        when 1095.kill begin
         pc.setqf ( "uccidimorteblu" , pc.getqf ( "uccidimorteblu" ) + 1 )
         if pc.getqf ( "uccidimorteblu" ) == 3 then
         say_reward ( "Quest Master:" )
         say ( "Hai Completato la missione!" )
         say ( "Ritorna da Bottegaia , fai in fretta." ) 
         say ( "" )
         set_state ( "ritorna" )
         local v = find_npc_by_vnum ( 9003 )
         if v != 0 then
             target.vid ( "__TARGET__" , v, "uccidimorteblu" )
         end
         end
     end


    end


  state ritorna begin


        when 9003.chat."Grazie mille!" begin
         target.delete ( "__TARGET__" )
         say_title ( "Bottegaia")
         say ( "Grazie mille!" )
         say ( "Ho saputo che hai ucciso le Morti Blu,finalmente vivremo in pace!" )
         say ( "Ora ti ricompensero con degli yang e delle perle!" )
         pc.changegold ( 250000000 )
         pc.give_item2 ( 27992 , 10 )
         pc.give_item2 ( 27993 , 10 )
         pc.give_item2 ( 27994 , 10 )
         pc.delqf ( "uccidimorteblu" )
         set_state ( "completo" )
     end


    end


    state completo begin


    end




end



Grazie a tutti se qualcuno la volesse testare almeno so se funziona o meno:asd:
 
Ma tutti questi spazi? Comunque sia anche se non mi serve e non mi è utile ti ritengo una persona da ammirare in quanto stai cercando di imparare :)
 
Stato
Discussione chiusa ad ulteriori risposte.