Jump to content

metin2team

Inactive Member
  • Posts

    429
  • Joined

  • Last visited

  • Days Won

    15
  • Feedback

    0%

Posts posted by metin2team

  1. function give_multiple_items(item, count)
       while(count > 200) do
          print("pc.give_item2(item, 200)")
          pc.give_item2(item, 200)
          count = count - 200
       end 
       if count > 0 then
          print("pc.give_item2(item, "..count..")")
       end
    end
    
    give_multiple_items(19, 1893)
    
    // output
    /*
    pc.give_item2(item, 200)
    pc.give_item2(item, 200)
    pc.give_item2(item, 200)
    pc.give_item2(item, 200)
    pc.give_item2(item, 200)
    pc.give_item2(item, 200)
    pc.give_item2(item, 200)
    pc.give_item2(item, 200)
    pc.give_item2(item, 200)
    pc.give_item2(item, 93)
    */

    comment unnecessary lines.

    • Love 3
×
×
  • Create New...

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.