Ders- Görev Ekleme_Örnek; hunt down steppe bandits

Users who are viewing this thread

[quote author=Module_triggers]
  (1.0, 0, ti_once, [], [(assign,"$peak_steppe_bandits",6)]),
  (3.7, 0, 0.0, [#[store0_distance_to_town_from_party,zendar],[lt,reg(0),40],
                (store_num_parties_of_template, reg(2), "pt_steppe_bandits"),
                (lt,reg(2),"$peak_steppe_bandits")],
                    [(set_spawn_radius,1),(spawn_around_party,"p_steppe_bandit_spawn_point","pt_steppe_bandits")]),

  (0.0, 0, 0.0, [[neq,"$quest_accepted_zendar_steppe_bandits",0],[eq,"$quest_complete_zendar_steppe_bandits",0]],
  [
    [store_num_parties_destroyed_by_player, reg(2), "pt_steppe_bandits"],
    [assign, reg(3), 100],
    [val_mul, reg(3), reg(2)],
    [val_div, reg(3), num_max_steppe_bandits],
    [set_quest_progression, "qst_hunt_down_steppe_bandits", reg(3)],
  ]),
  (0.1, 0, ti_once, [[store_num_parties_destroyed_by_player, reg(2), "pt_steppe_bandits"],
                    [ge,reg(2),num_max_steppe_bandits]],
                          [[assign,"$quest_complete_zendar_steppe_bandits",1],
                          [set_quest_progression, "qst_hunt_down_steppe_bandits", 100],
                          [assign,"$peak_steppe_bandits",2]]),
[/quote]
Morla belirttiğim yerler grubun adıyla değiştirilecek. Kırmızyla gösterdiğim yere dikkat edin; module_parties'ten spawm point'ine dikkat etmelisiniz.
 
[quote author=Module_quests]
# Bandit quests: Capture rich merchant, capture banker, kill manhunters?..

("hunt_down_river_pirates", "hunt down river pirates", qf_show_progression,
  "Constable Hareck asked you to hunt down the river pirates that plague the country around Zendar.\
He promised to pay you 25 denars for each river pirate party you eliminate."
  ),
("hunt_down_sea_raiders", "hunt down sea raiders", qf_show_progression,
  "Denizci asked you to hunt down the sea raiders that plague the country around Zendar.\
He promised to pay you 50 denars for each river pirate party you eliminate."
  ),
("hunt_down_steppe_bandits", "hunt down steppe bandits", qf_show_progression,
  "iddiaci asked you to hunt down the black khergits that plague the country around Zendar.\
He promised to pay you 200 denars for each river pirate party you eliminate."
  ),

]
[/quote]
Araya bunu ekleyin. Şimdi son olarak konuşmaları module_dialogs'tan ayarlamalıyız.
 
[quote author=Module_dialogs]
  [trp_iddiaci,"start", [(eq,"$iddiaci_announcement",0)],
"Selam delikanli. Buralarda ilk defa goruyorum seni.",
  "iddiaci_introduce_1",[(assign,"$iddiaci_announcement",1)]],
  [trp_iddiaci,"iddiaci_introduce_1", [],
"Kendimden bahsedeyim. Cinin eski haniyim, steppe bandits beni tahtimdan etti, yerime abim gecti. Yeniden tahta gecemek istemesem de intikamimi almak istiyorum.\
Her cete basina 200 dinar, tatmin oldgumda ise cebe verecegim.", "close_window",[]],

  [trp_iddiaci,"start", [], "Evet?", "iddiaci_talk",[]],

  [trp_iddiaci|plyr,"iddiaci_talk", [(eq,"$quest_accepted_zendar_steppe_bandits",0)],
"Black khergitlerden intikaminizi alabilirim.", "iddiaci_signup_1",[]],
  [trp_iddiaci,"iddiaci_signup_1", [], "Guzel. Peki nasil bas edeceksin onlarla?", "iddiaci_signup_2",[]],
  [trp_iddiaci|plyr,"iddiaci_signup_2", [], "Yaradana siginip, habire vurarak.", "iddiaci_signup_3",[]],
  [trp_iddiaci|plyr,"iddiaci_signup_2", [], "Temkinli olup, ihtiyatli davranarak.", "iddiaci_signup_3",[]],
  [trp_iddiaci,"iddiaci_signup_3", [],
"Oylesine sormustum. Nasil yapacagin senib bilecegin is. Sana bu ati hediye ediyorum. Sana tavsiyem, sakin atin olmadan bu adamlarla dovusme.", "iddiaci_signup_4",[(assign,"$quest_accepted_zendar_steppe_bandits",1),(start_quest,"qst_hunt_down_steppe_bandits"),(troop_add_item, "trp_player","itm_speed_courser",imod_battered)]],
  [trp_iddiaci|plyr,"iddiaci_signup_4", [], "Tesekkur ederim.", "iddiaci_signup_5",[]],
  [trp_iddiaci,"iddiaci_signup_5", [], "Hadi kolay gele.", "close_window",[]],
 
  [trp_iddiaci,"sell_prisoner_outlaws_finished", [], "Aferin {boy/girl}. .", "close_window",[]],

 
  [trp_iddiaci|plyr,"iddiaci_talk", [(store_num_parties_destroyed_by_player,reg(3),"pt_steppe_bandits"),
                                                  (val_min,reg(3),num_max_steppe_bandits),
                                                  (lt,"$steppe_bandits_paid_for",reg(3))],
  "I have hunted down some steppe_bandits.", "pay_for_steppe_bandits",[]],
  [trp_iddiaci,"pay_for_steppe_bandits", [],
  "Yes, my scouts informed me. That should make them think twice before wandering near Zendar! Anyway, the reward is 200 denars for every river pirate party. Here is your money, as promised.",
  "pay_for_steppe_bandits_2",[(store_num_parties_destroyed_by_player,reg(3),"pt_black_khergit_raiders"),
                              (val_min,reg(3),num_max_steppe_bandits),
                              (val_sub,reg(3),"$steppe_bandits_paid_for"),
                              (val_mul,reg(3),200),
                              (troop_add_gold,"trp_player",reg(3)),
                              (store_num_parties_destroyed_by_player,"$steppe_bandits_paid_for","pt_steppe_bandits")]],
  [trp_iddiaci|plyr,"pay_for_steppe_bandits_2", [],
  "Thank you, sir.", "pay_for_steppe_bandits_3",[]],
  [trp_iddiaci,"pay_for_steppe_bandits_3", [(neq,"$quest_complete_zendar_steppe_bandits",0),(eq,"$quest_complete_zendar_steppe_bandits_ack",0)],
"You certainly deserved your pay. Thanks to hunters like you most of the steppe bandits have been dealt with.\
The few remaining do not pose a threat any longer. So I thank you in the name of the town of Zendar. You did a mighty good job.","iddiaci_reward_1",[[add_xp_as_reward,8000],[complete_quest,"qst_hunt_down_steppe_bandits"],[assign,"$quest_complete_zendar_steppe_bandits_ack",1]]],
  [trp_iddiaci|plyr,"iddiaci_reward_1", [], "Sagolun efendim.", "iddiaci_reward_2",[]],
  [trp_iddiaci,"iddiaci_reward_2", [], "Aferin sana.", "close_window",[]],
  [trp_iddiaci,"pay_for_steppe_bandits_3", [], "Ha unutmadan, senin icin bunlari siparis etmistim.", "close_window",[
(troop_add_item,"trp_player","itm_general_light_armor")]],

  [trp_iddiaci|plyr,"iddiaci_talk", [], "Gorusuruz.", "close_window",[]],

[/quote]
Morla gösterilenleri gösterdiğim gibi değiştirin.
Kırmızyla gösterdiğim, her çete başına ödenecek para miktarı.
Maviyle gösterdiğim de görevin sonunda bize verilecek tecrübe.
Açık yeşille gösterdiğim ise istenirse görev sonunda bize hediye verilmesi için gerekli kod.

Ve işte görevimimizi tamamlamış bulunuyoruz. Tebrikler.
 
Ben de boş vaktimde buraya bir mal taşıma görevi dersi yazacağım, tüccarların verdiği cinsten bir görev.
 
Back
Top Bottom