Jump to content

PACI

Developer
  • Posts

    402
  • Joined

  • Days Won

    18
  • Feedback

    0%

Community Answers

  1. PACI's post in a question about a (if-else)simplified was marked as the answer   
    Put the entire condition inside parenthesis:
     
    (item.vnum >= 11200 and item.vnum <= 11289 or item.vnum >= 11400 and item.vnum <= 11489 or item.vnum >= 11600 and item.vnum <= 11689 or item.vnum >= 11800 and item.vnum <= 11889) and " yes " or " no "  
  2. PACI's post in Questions about making a dungeon was marked as the answer   
    Couple of things.
    A server_timer is an event that is supposed to run once. Unless you decide to make a loop out of it - which on this case, it'd make sense to use clear_server_timer to ensure you cancel it.
     
    Obviously, you must bind map indexes into them, especially when it comes to dungeons, since they mostly are private instances, their indexes go up to 10.000, so you want these timers to run exclusively on the runs. The first approach is correct.
    Nevertheless, I recommend you to keep using d.get_map_index upon clearing them - since it is exactly the function you should use.
     
    About the flags. Yes, you're doing it correctly. I don't remember, though, if dungeon flags' definitions are set and updated on the fly, though you can use this preferred and common practice used in quest-flags, however it's all about taste:
    local my_flag = d.getf("Flag1") + 1 d.setf("Flag1", my_flag) if my_flag == 150 then d.setf("Flag1", 0) end  
    As for the issue you described, and you seem unsure where it comes from. Personally, I'm not quite familiar with it, and don't even have such log in my files, but I can only guess it's related to a malfunction in the usage of the npc.lock and npc.unlock quest-functions. My advice is to review any quest that uses either of them and attempt to trigger this error - then you'll find where it comes from.
  3. PACI's post in Temple Ochao - Black Floor was marked as the answer   
    Setting.txt
    terrainvisible[TAB]0
  4. PACI's post in Check if item is in inventory (quest) was marked as the answer   
    -> say("")
     
  5. PACI's post in How to get client bonus name on quest was marked as the answer   
    if you have an ingame ui for your system just send the affect id to the client. otherwise you have to build a lua table having the ids as keys and the names as values.
  6. PACI's post in Calculate pet system bonus based on pet level was marked as the answer   
    petLevel * affectMaxValue / petMaxLevel
  7. PACI's post in Problem with flame dungeon monsters was marked as the answer   
    probably mob_color.
  8. PACI's post in flame_dungeon bug was marked as the answer   
    What if that function is written in lua? (it is) Like the thousands of functions inside questlib.lua.
    You can't think that every single function is written in the game core.
     

    -- generate when a linebreak in the functions: d.notice,notice,notice_all function notice_multiline( str , func )     local p = 0     local i = 0     while true do         i = string.find( str, "%[ENTER%]", i+1 )         if i == nil then             if string.len(str) > p then                 func( string.sub( str, p, string.len(str) ) )             end             break         end         func( string.sub( str, p, i-1 ) )         p = i + 7     end end
  9. PACI's post in Biologist quest problems. was marked as the answer   
    In that table the server saves all character's affects (such as skills, biologist affects, etc), so, I guess the only way to know which affect is from biologist is taking a look to the affect type and the value (from your quests and comparing it with those from the table).
     
    BUT! I think you can use a quest for it, like this one (if I ain't wrong):


  10. PACI's post in What's wrong with this condtion? was marked as the answer   
    when kill with npc.get_race() == 8031 or npc.get_race() == 8032 or npc.get_race() == 8033 or npc.get_race() == 8034 begin  
  11. PACI's post in Purgatory Bug was marked as the answer   
    In that case just replace:

    local ticketGroup = {get_special_item_group (10033)}With:
    local ticketGroup = {71095, 1, 71130, 1}
  12. PACI's post in Dragonromm / Drachenraum problems was marked as the answer   
    Write this on chat: /e dragontemple_open 1 with a GM character.
  13. PACI's post in party.give_exp was marked as the answer   
    Something like this maybe:

  14. PACI's post in quest : define was marked as the answer   
    qc doesn't support "define", so you gotta use pre_qc.py instead.
  15. PACI's post in Item_list problem was marked as the answer   
    Those spaces must be tabs.
  16. PACI's post in Drag Soul disabled ? was marked as the answer   
    You are not qualified to use dragon soul system as well as using item command with dragon soul items.


    quest ds_give_qualification begin state start begin when login begin ds.give_qualification() end end end
  17. PACI's post in Add server name on item description was marked as the answer   
    On uitooltip.py replacing all:

    item.GetItemName() with:

    "[Your Server's Name]n" + item.GetItemName() should work.
×
×
  • 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.