Jump to content

sjizzle

Members
  • Posts

    54
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Posts posted by sjizzle

  1. I have a problem, when I set creatures movementtype to random in DB and there spawndist is set ( for this case it is 5 ).

    They should move randomly within this distance. However in some dungeons ( for example Dire Maul ) they don't, even not when I spawn a new one. However if I spawn this same creature outside Dire Maul it does work..

    What other factors are involved in this, and can be a cause of this problem ? ( I use MaNGOS Zero )

  2. Hello,

    How to write a vallue like this to the database?

    time_t currenttime = sWorld.GetGameTime()

    I used:

    CharacterDatabase.PExecuteLog("UPDATE Character_current_time SET time_current = '%u' WHERE guid = '%u'", currenttime, pPlayer->GetGUID());

    though this fails, value in the database is still ZERO.

    My database field has the following specs:

    - Datatype : bigint

    - Len : 40

    - Default : 0

    - Not NULL: checked

    - Unsigned : checked

  3. Hello guys,

    I don't know much about database, so I hope someone can help me with this.

    Anyway, the problem I have is I can't write( make changes ) insome rows within the following table:

    - mangos.event_scripts

    Does anyone knows what is causing this and how solve this?

  4. Hello,

    When I want a command to be used only ones within 2 days, what is the best way to do this?

    I created a extra table:

    `Time_of_Usage` TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'Absolute start date, the command was used'

    I used:

    time_t currenttime = sWorld.GetGameTime();

    time_t now = time(NULL);

    I do not exactly know how to get the time? Which is best and what the values really mean.

    Also how do I add 48 hours to the variable now or cuttentime ?

    Next to that, how do I check if it passed 2 days, so the command can be used again?

    Any help is welcome.

  5. This is actually a buff, though it is added to your spell debuffs.

    Next to that it can't be dispelled bij other players.

    When you cast this spell on yourself, you can dispell it.

    When your target has this buff, you can't dispell it.

    Probably somehow the spell is seen as 'negative' ( debuff ) not a buff. ( this would clarify why you can dispell it when you have magic grounding active on yourself but can't dispell it when magic grounding is active on your target ).

    Does anyone know where to find/change the cause of this? And mebey how to fix this?

×
×
  • Create New...

Important Information

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. Privacy Policy Terms of Use