Jump to content

Alina

Member
  • Posts

    174
  • Joined

  • Last visited

  • Days Won

    13
  • Feedback

    0%

Community Answers

  1. Alina's post in Player table loading only on reboot was marked as the answer   
    Weeeeeeeeeeeeeeeeeell, the best way to do this is using the plain functions.
    You'd know how the cache works. The gamefile holds the player values in memory, so it allocates RAM for every player. Also it sends the data stored to the dbcache and there's the cache you're looking for. You can manually push the values to the dbcache by calling SaveReal() from the CHARACTER-class (the normal Save() has a delay)
    But there's no need to edit the cache itself! You only have to edit the values stored in the gamefile. The next update will push it to the dbcache where it's cached and then written to the database later. So. Yeah, you found it
    What you might be looking for is Show(long lMapIndex, long x, long y, long z = LONG_MAX, bool bShowSpawnMotion = false) or Goto(long x, long y) in CHARACTER-class.
     
    These functions will overwrite the position stored inside the game instance. The next Save cycle will push it to the dbcache. If you're getting the error and relocating your character, you can straight log in again and it will work, no need to terminate the server or reload anything
  2. Alina's post in pet.is_mine problem was marked as the answer   
    Did you write the pet_is_mine_function into the pet function table?
    In the same file (questlua_pet.cpp) scroll down and check if you made an entry. The error is caused due to the server not knowing what 'is_mine' from the pet-class actually is. So I guess you just forgot to add it
  3. Alina's post in [PROBLEM]Game Options After Teleport was marked as the answer   
    Maybe your error is no problem with the source
     
    You can find a quest called game_option.quest
    Is it running on your server?
     

    quest game_option begin state start begin when login begin local val=0 local msg = "Blocked function: "   if pc.getqf("block_exchange") == 1 then msg = msg.."Trade " val = val + 1 end   if pc.getqf("block_guild_invite") == 1 then val = val + 4 msg = msg.."Guild " end   if pc.getqf("block_messenger_invite") == 1 then msg = msg.."Messenger " val = val + 16 end   if pc.getqf("block_party_invite") == 1 then msg = msg.."Party invitation " val = val + 2 end   if pc.getqf("block_party_request") == 1 then msg = msg.."Party Joining " val = val + 32 end   if pc.getqf("block_whisper") == 1 then msg = msg.."Short message " val = val + 8 end   if val != 0 then syschat(msg) end   pc.send_block_mode(val) end end end
  4. Alina's post in Little error with energy was marked as the answer   
    The problem isn't the function
     
    It's a mistake you made in line 39.
    Backtrace:
    look at the rror. It tells you to look at line 98. This is an end. What does it end? Your when-instruction. So the compiler tells you that the error is within this when-part. Soooooooo... The next hint is line 5 and "at line 4)". So he expects at 5 a ) to close an ( at line 4.
    What's that?
    say(string.format("Esti prea slab, inca nu poti stapani aceasta Energie.[ENTER]Vino cand ai nivelul %d. ", minLevel)
    You're missing a ) there
  5. Alina's post in GM can't drop itens was marked as the answer   
    I dunno ._. Maybe someone somewhere does it for free, but I guess most people want money for that >.< Hopefully you're lucky and someone does it for free!
  6. Alina's post in Debuff when teleported. was marked as the answer   
    The bug appears after teleporting? Seems like a problem with saving the affects.
    Better have a look on that, maybe you changed something in source. Try it with logging out, if the buffs disappear there too, it's clearly a bug with saving your affects
×
×
  • 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.