Jump to content
×
×
  • Create New...
  • 0

Code quette


MasterSword
 Share

Question

  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

2 answers to this question

Recommended Posts

  • 0

Salut!

 

Voici le code:

quest item_a_donner begin
   state start begin
       when login begin
           local giftDAY = number(1,2)
           local gift_ids = {ID_ITEM_A_DONNER,ID_ITEM_A_DONNER}
           if pc.getqf("item_a_donner") < get_time() then
               pc.give_item2(tonumber(gift_ids[giftDAY]), 1)
               pc.setqf("item_a_donner", get_time()+1*24*60*60)
           end
       end
   end
end

 

Info:

"local giftDAY = number(1,2)" veux dire que tu donne 1 item sur 2. 
Si tu veux donner 1 item sur 5, tu met: "local giftDAY = number(1,5)"

 

Ce code permet de donner 1 item sur 2 par jour lors de la première connection

Link to comment
Share on other sites

 Share



  • Flux d'Activité

    1. 0

      Projet Genesis

    2. 4

      Shiva.international serveur privé metin2 Oldschool Start 16.09.2022

    3. 0

      Metin2 Champions - Accès anticipé

    4. 0

      Barbok

    5. 4

      Shiva.international serveur privé metin2 Oldschool Start 16.09.2022

    6. 2

      Partage Émulateur 2.63

    7. 2

      Partage Émulateur 2.63

  • Recently Browsing

    • No registered users viewing this page.

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.