Jump to content

MrLibya

Premium
  • Posts

    378
  • Joined

  • Last visited

  • Days Won

    8
  • Feedback

    0%

Community Answers

  1. MrLibya's post in help with a quest was marked as the answer   
    at least u could ask me on skype u know
     
    + i dont know what u want with the time so i think this will work
     

    quest test begin     state start begin         function get_table()             if test.table_info == nil then                 test.table_info={                     {100, 22, 8001},                     {101, 22, 8002},                     {102, 22, 8003},                     {103, 22, 8011},                     {104, 22, 8013},                     {105, 22, 8024},                     {106, 22, 8026},                     {107, 22, 8027},                     {108, 22, 8027},                     {109, 22, 8027},                 }             end             return test.table_info         end              when login or levelup with pc.get_map_index() == 74 begin             set_state(kill)         end     end     state kill begin         when letter begin             send_letter(" تجربة ")           end         when button or info begin             local table = test.get_table()             if pc.getqf("time_retry") <= get_time() then                 for i,v in ipairs(table) do                     if pc.level > v[1] then                         mob.spawn(v[3], pc.get_local_x()+5, pc.get_local_y()+5, 1)                         pc.setqf("limit_time", get_time()+60*5)                         pc.setqf("mob_vnum", v[3])                     end                 end             end         end         when kill with npc.get_race() == pc.getqf("mob_vnum") begin             local count = pc.getqf("state") + 1             local table = test.get_table()             for i,v in ipairs(table) do                 if count <= 1 then                     pc.setqf("state", count)                     q.set_counter(" يجب قتل ", 1 )                 elseif count >= 1 and pc.getqf("limit_time") >= get_time() then                     say(" fail ")                     say(" اعد المحاولة بعد ساعة ")                     pc.setqf("time_retry", get_time()+60*60*1)                 elseif count == 1 and get_time() < pc.getqf("limit_time") then                     say(" mbrok exp ")                     pc.give_exp(v[2])                     clear_letter()                     set_state(__COMPLETE__)                 end             end         end     end     state __COMPLETE__ begin     end end
  2. MrLibya's post in useing lua table in function was marked as the answer   
    Fixed Thx To Marty
     
    The Error that i include the local inside if
  3. MrLibya's post in Help whit a simple quest was marked as the answer   
    when 20358.chat."Recompensa Event OX" with pc.is_gm() begin     say("Castigatorul va fi premiat.Introdu ID itemului.")     say("")       local item_vnum = input()       say("Introdu cantitatea.")     say("")       local item_count = input()     oxevent.give_item(item_vnum, item_count)     say(" Name of the winer ")     local winer = input()          say("Recompensezi cu "..oxevent.get_attender().." jucatorul.")     say("")     notice_all( "Jucatorul " ..winer.. " a castigat un premiu la OX!" )
  4. MrLibya's post in Test_Server text editing was marked as the answer   
    config.cpp serch

    printf("TEST_SERVERn");
  5. MrLibya's post in Some Bugs in my First Map was marked as the answer   
    Fixed
    i just change the texture
  6. MrLibya's post in Players can use GM codes was marked as the answer   
    CMD :

    item GM_PLAYER  
    or source :
     
    cmd.cpp
     
    serch:

    { "item",        do_item,        0,            POS_DEAD,    GM_GOD        },  
    GM_GOD to GM_PLAYER
     
  7. MrLibya's post in folder locale from gameforge ? was marked as the answer   
    Will I Naver See It In Any Fourm , But Here I Have It
     
    https://mega.co.nz/#!LdJjHCDZ!WZGkQl7Io_0Kl7eNLKgmXl4VBsY1y60KxDwSb8PLNSA
  8. MrLibya's post in Stop Compile was marked as the answer   
    Fixed
    Just Did Reboot And Compile Agien And It's Work
  9. MrLibya's post in gmake: *** [OBJDIR/main.o] Error 1 was marked as the answer   
    Fixed Thx Night + Ellie
    i Delete Function In main.cpp , But I Didn't Delete It Good Some Part Stell There , This Way It's Mkae This Problem .
     
     
  10. MrLibya's post in missing libdevil was marked as the answer   
    Solved Thx Night
×
×
  • 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.