Jump to content

charlie2025

Members
  • Posts

    171
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Posts posted by charlie2025

  1. i have question would it be possible to save state(captured, remaining time) into DB and after restart/crash it would restore state?

    Hm, it is simillar question as like player-saving in battlegrounds, but this is world pvp and any pvp doesn't run more that once.. (there aren't "instances" like in bgs.)

    I will look at it.

  2. if you need do convert in php:

       
    $float = unpack("f", pack("L",$char_data[$i]));
    

    I would add array_pop for extracting from characters.data (f.e. crit chances) .. so it would be

     $float = array_pop(unpack("f", pack("L",$char_data[$i])));

    becose unpack returns array

  3. Currently using:

    MaNGOS + IMPConfig + Multithreading Maps + simple_jail :)

    Until now there were no problems ;)

    I write this as a help for others, these combination (in this order) can be applied and used :cool:

    In my case it is

    Arena, Outdoor, Alterac, Simple Jail, Anticheat, Procflag, ObjectPosFreeze fix and aslo not problems.

  4. Dythzer pls can you fix your impconfib branch for 303-will.... i need it its very importetent

    Hey, people, 3.0.3 isn't supported, and if you think it is important to run 3.0.3 with functionality of 2.4.3 or worse, then ok, but fix conflict by self. Anyway this isn't topic about support of git branches..

  5. Hey,

    I have a vote reward system i made but it was for ascent i now need to convert it for mangos.

    How would i do this does anyone have an example of a script that can insert mail into the game or a vote reward system that does this.

    Or can someone point me in the right direction ?

    Thanks for your time, Xeross

    There is also topic about this, just use search..

  6. Easy to reproduce on UDB 363.

    Use .go object 11011 and server crash

    Revision: 2008-11-19 16:18:05 6840 eca35bf3d6abc94ccb46f244c5e3ac289c3396ee
    Date 24:11:2008. Time 0:12 
    //=====================================================
    *** Hardware ***
    Processor: AMD Athlon(tm) 64 Processor 3700+
    Number Of Processors: 1
    Physical Memory: 3145200 KB (Available: 1842020 KB)
    Commit Charge Limit: 4194303 KB
    
    *** Operation System ***
    Microsoft Windows XP Professional Service Pack 2 (Version 5.1, Build 2600)
    
    //=====================================================
    Exception code: C0000005 ACCESS_VIOLATION
    Fault address:  0049E96B 01:0009D96B C:\\Documents and Settings\\admin\\Рабочий стол\\EmulatorX\\Server\\mangosd.exe
    
    Registers:
    EAX:00000000
    EBX:01679E18
    ECX:00000000
    EDX:0AEF6F48
    ESI:00001071
    EDI:0012FA84
    CS:EIP:001B:0049E96B
    SS:ESP:0023:0429FA60  EBP:0429FA74
    DS:0023  ES:0023  FS:003B  GS:0000
    Flags:00010246
    
    Call stack:
    Address   Frame     Function      SourceFile
    0049E96B  00000000  LinkedListHead::Iterator<MapReference>::operator+++1B
    0049948D  00000000  Map::Update+5D
    00623C5F  00000000  MapManager::Update+1AF
    00605F71  00000000  World::Update+B11
    004337C1  00000000  WorldRunnable::run+91
    00888725  00000000  ZThread::ThreadImpl::Dispatch+1D5
    00888B83  00000000  ZThread::`anonymous namespace'::Launcher::run+33
    0088CC37  00000000  ZThread::ThreadOps::_dispatch+17
    78543433  00000000  _endthreadex+44
    785434C7  00000000  _endthreadex+D8
    7C80B50B  00000000  GetModuleFileNameA+1B4
    
    Call stack:
    Address   Frame     Function      SourceFile
    7C90EB94  00000000  KiFastSystemCallRet+0
    7C802542  00000000  WaitForSingleObject+12
    
    Call stack:
    Address   Frame     Function      SourceFile
    7C90EB94  00000000  KiFastSystemCallRet+0
    7C802542  00000000  WaitForSingleObject+12
    0088C64E  00000000  ZThread::Monitor::wait+9E
    00888320  00000000  ZThread::ThreadImpl::sleep+60
    0088749C  00000000  ZThread::Thread::sleep+C
    0086F540  00000000  SqlDelayThread::run+20
    00888725  00000000  ZThread::ThreadImpl::Dispatch+1D5
    00888B83  00000000  ZThread::`anonymous namespace'::Launcher::run+33
    0088CC37  00000000  ZThread::ThreadOps::_dispatch+17
    78543433  00000000  _endthreadex+44
    785434C7  00000000  _endthreadex+D8
    7C80B50B  00000000  GetModuleFileNameA+1B4
    
    Call stack:
    Address   Frame     Function      SourceFile
    7C90EB94  00000000  KiFastSystemCallRet+0
    7C802542  00000000  WaitForSingleObject+12
    0088C64E  00000000  ZThread::Monitor::wait+9E
    00888320  00000000  ZThread::ThreadImpl::sleep+60
    0088749C  00000000  ZThread::Thread::sleep+C
    0086F540  00000000  SqlDelayThread::run+20
    00888725  00000000  ZThread::ThreadImpl::Dispatch+1D5
    00888B83  00000000  ZThread::`anonymous namespace'::Launcher::run+33
    0088CC37  00000000  ZThread::ThreadOps::_dispatch+17
    78543433  00000000  _endthreadex+44
    785434C7  00000000  _endthreadex+D8
    7C80B50B  00000000  GetModuleFileNameA+1B4
    
    Call stack:
    Address   Frame     Function      SourceFile
    7C90EB94  00000000  KiFastSystemCallRet+0
    7C802542  00000000  WaitForSingleObject+12
    0088C64E  00000000  ZThread::Monitor::wait+9E
    00888320  00000000  ZThread::ThreadImpl::sleep+60
    0088749C  00000000  ZThread::Thread::sleep+C
    0086F540  00000000  SqlDelayThread::run+20
    00888725  00000000  ZThread::ThreadImpl::Dispatch+1D5
    00888B83  00000000  ZThread::`anonymous namespace'::Launcher::run+33
    0088CC37  00000000  ZThread::ThreadOps::_dispatch+17
    78543433  00000000  _endthreadex+44
    785434C7  00000000  _endthreadex+D8
    7C80B50B  00000000  GetModuleFileNameA+1B4
    
    Call stack:
    Address   Frame     Function      SourceFile
    7C90EB94  00000000  KiFastSystemCallRet+0
    0429EA98  00000000  0000:00000000 
    FF50D845  FFFFFFFF  0000:00000000 
    
    Call stack:
    Address   Frame     Function      SourceFile
    7C90EB94  00000000  KiFastSystemCallRet+0
    7C8715C1  00000000  GetConsoleInputWaitHandle+318
    7C871708  00000000  ReadConsoleA+3B
    7C8018B3  00000000  ReadFile+A5
    78586A93  00000000  realloc+9F7
    78586F17  00000000  _read+C0
    7854EC7A  00000000  _filbuf+7D
    7854E319  00000000  fgets+109
    0040EEE8  00000000  CliRunnable::run+B8
    00888725  00000000  ZThread::ThreadImpl::Dispatch+1D5
    00888B83  00000000  ZThread::`anonymous namespace'::Launcher::run+33
    0088CC37  00000000  ZThread::ThreadOps::_dispatch+17
    78543433  00000000  _endthreadex+44
    785434C7  00000000  _endthreadex+D8
    7C80B50B  00000000  GetModuleFileNameA+1B4
    
    Call stack:
    Address   Frame     Function      SourceFile
    7C90EB94  00000000  KiFastSystemCallRet+0
    7C802542  00000000  WaitForSingleObject+12
    0088C64E  00000000  ZThread::Monitor::wait+9E
    00888320  00000000  ZThread::ThreadImpl::sleep+60
    0088749C  00000000  ZThread::Thread::sleep+C
    0042F418  00000000  RARunnable::run+228
    00888725  00000000  ZThread::ThreadImpl::Dispatch+1D5
    00888B83  00000000  ZThread::`anonymous namespace'::Launcher::run+33
    0088CC37  00000000  ZThread::ThreadOps::_dispatch+17
    78543433  00000000  _endthreadex+44
    785434C7  00000000  _endthreadex+D8
    7C80B50B  00000000  GetModuleFileNameA+1B4
    
    Call stack:
    Address   Frame     Function      SourceFile
    7C90EB94  00000000  KiFastSystemCallRet+0
    7C802542  00000000  WaitForSingleObject+12
    0088C64E  00000000  ZThread::Monitor::wait+9E
    00888320  00000000  ZThread::ThreadImpl::sleep+60
    0088749C  00000000  ZThread::Thread::sleep+C
    0042F03B  00000000  FreezeDetectorRunnable::run+7B
    00888725  00000000  ZThread::ThreadImpl::Dispatch+1D5
    00888B83  00000000  ZThread::`anonymous namespace'::Launcher::run+33
    0088CC37  00000000  ZThread::ThreadOps::_dispatch+17
    78543433  00000000  _endthreadex+44
    785434C7  00000000  _endthreadex+D8
    7C80B50B  00000000  GetModuleFileNameA+1B4
    
    Call stack:
    Address   Frame     Function      SourceFile
    7C90EB94  00000000  KiFastSystemCallRet+0
    71A35FA7  00000000  0001:00004FA7 C:\\WINDOWS\\system32\\MSWSOCK.dll
    71A92E67  00000000  select+A7
    10015105  00000000  ?wait_for_multiple_events@?$ACE_Select_Reactor_T@V?$ACE_Reactor_Token_T@VACE_Token@@@@@@MAEHAAVACE_Select_Reactor_Handle_Set@@PAVACE_Time_Value@@@Z+115
    FFFFFFFF  FFFFFFFF  0000:00000000 
    
    Call stack:
    Address   Frame     Function      SourceFile
    7C90EB94  00000000  KiFastSystemCallRet+0
    71A35FA7  00000000  0001:00004FA7 C:\\WINDOWS\\system32\\MSWSOCK.dll
    71A92E67  00000000  select+A7
    10015105  00000000  ?wait_for_multiple_events@?$ACE_Select_Reactor_T@V?$ACE_Reactor_Token_T@VACE_Token@@@@@@MAEHAAVACE_Select_Reactor_Handle_Set@@PAVACE_Time_Value@@@Z+115
    FFFFFFFF  FFFFFFFF  0000:00000000 
    ========================
    Local Variables And Parameters
    
    Call stack:
    Address   Frame     Function      SourceFile
    0049E96B  00000000  LinkedListHead::Iterator<MapReference>::operator+++1B
       Local  <user defined> 'this'
    
    0049948D  00000000  Map::Update+5D
       Local  <user defined> 'iter'
       Local  <user defined> 'this'
       Local  <user defined> 't_diff'
       Local  <user defined> 'updater'
       Local  <user defined> 'world_object_update'
       Local  <user defined> 'grid_object_update'
    
    00623C5F  00000000  MapManager::Update+1AF
       Local  <user defined> 'iter'
       Local  <user defined> 'this'
    punting on symbol diff
    
    00605F71  00000000  World::Update+B11
    punting on symbol i
       Local  <user defined> 'this'
    punting on symbol diff
       Local  unsigned int 'autobroadcaston' = 0
    
    004337C1  00000000  WorldRunnable::run+91
    punting on symbol diff
       Local  <user defined> 'this'
    punting on symbol realCurrTime
    punting on symbol realPrevTime
    punting on symbol prevSleepTime
    
    00888725  00000000  ZThread::ThreadImpl::Dispatch+1D5
       Local  <user defined> 'g'
       Local  <user defined> 'i'
       Local  <user defined> 'parent'
       Local  <user defined> 'impl'
       Local  <user defined> 'task'
    
    00888B83  00000000  ZThread::`anonymous namespace'::Launcher::run+33
       Local  <user defined> 'this'
    
    0088CC37  00000000  ZThread::ThreadOps::_dispatch+17
    punting on symbol arg
       Local  <user defined> 'task'
    
    78543433  00000000  _endthreadex+44
    
    785434C7  00000000  _endthreadex+D8
    
    7C80B50B  00000000  GetModuleFileNameA+1B4
    
    ========================
    Global Variables

    It doesn't crash for me if .go object 11011 and use this obj.

  7. Can help me? This is second time if same crash

    Thanks

    I have same crash, one about two hours..

    Revision: * * 6835 b21069890dcbcf7e9675a1d9ebf4ba631e54ed1d
    Date 17:11:2008. Time 21:0 
    //=====================================================
    *** Hardware ***
    Processor: Intel(R) Core(TM)2 CPU          6420  @ 2.13GHz
    Number Of Processors: 2
    Physical Memory: 3137004 KB (Available: 1001096 KB)
    Commit Charge Limit: 4194303 KB
    
    *** Operation System ***
    Microsoft Windows XP Professional Service Pack 2 (Version 5.1, Build 2600)
    
    //=====================================================
    Exception code: C0000005 ACCESS_VIOLATION
    Fault address:  005642F3 01:001632F3 c:\\mangos\\mangosd.exe
    
    Registers:
    EAX:00000001
    EBX:2B9E02A8
    ECX:00000000
    EDX:00000000
    ESI:00000000
    EDI:FFFFFFFF
    CS:EIP:001B:005642F3
    SS:ESP:0023:03D1FBE8  EBP:00000000
    DS:0023  ES:0023  FS:003B  GS:0000
    Flags:00010246
    
    Call stack:
    Address   Frame     Function      SourceFile
    
    Call stack:
    Address   Frame     Function      SourceFile
    7C90EB94  00000000  KiFastSystemCallRet+0
    7C802542  00000000  WaitForSingleObject+12
    
    Call stack:
    Address   Frame     Function      SourceFile
    7C90EB94  00000000  KiFastSystemCallRet+0
    7C802542  00000000  WaitForSingleObject+12
    00422E51  00000000  ??4Group@@QAEAAV0@ABV0@@Z+7AA1
    FF006AEC  FFFFFFFF  0000:00000000 
    
    Call stack:
    Address   Frame     Function      SourceFile
    7C90EB94  00000000  KiFastSystemCallRet+0
    71A357C9  00000000  0001:000047C9 C:\\WINDOWS\\system32\\MSWSOCK.dll
    71A94379  00000000  WSARecv+61
    71AB2EA3  00000000  recv+33
    00803A53  00000000  strxmov+6C3
    
    Call stack:
    Address   Frame     Function      SourceFile
    7C90EB94  00000000  KiFastSystemCallRet+0
    7C802542  00000000  WaitForSingleObject+12
    00422E51  00000000  ??4Group@@QAEAAV0@ABV0@@Z+7AA1
    FF006AEC  FFFFFFFF  0000:00000000 
    
    Call stack:
    Address   Frame     Function      SourceFile
    7C90EB94  00000000  KiFastSystemCallRet+0
    03D1EC40  00000000  0000:00000000 
    548DD5FF  00000000  0000:00000000 
    
    Call stack:
    Address   Frame     Function      SourceFile
    7C90EB94  00000000  KiFastSystemCallRet+0
    7C8715C1  00000000  GetConsoleInputWaitHandle+318
    7C871708  00000000  ReadConsoleA+3B
    7C8018B3  00000000  ReadFile+A5
    7C3634DD  00000000  _putch+BF
    7C36368F  00000000  _read+57
    7C369BA1  00000000  _filbuf+4F
    00406339  00000000  ??4Config@@QAEAAV0@ABV0@@Z+6E9
    E87C3809  FFFFFFFF  0000:00000000 
    
    Call stack:
    Address   Frame     Function      SourceFile
    7C90EB94  00000000  KiFastSystemCallRet+0
    71A35FA7  00000000  0001:00004FA7 C:\\WINDOWS\\system32\\MSWSOCK.dll
    71A92E67  00000000  select+A7
    006C23B9  00000000  ?HandleDuelAcceptedOpcode@WorldSession@@QAEXAAVWorldPacket@@@Z+152C9
    006BE79B  00000000  ?HandleDuelAcceptedOpcode@WorldSession@@QAEXAAVWorldPacket@@@Z+116AB
    
    Call stack:
    Address   Frame     Function      SourceFile
    7C90EB94  00000000  KiFastSystemCallRet+0
    7C802542  00000000  WaitForSingleObject+12
    00422E51  00000000  ??4Group@@QAEAAV0@ABV0@@Z+7AA1
    FF006AEC  FFFFFFFF  0000:00000000 
    
    Call stack:
    Address   Frame     Function      SourceFile
    7C90EB94  00000000  KiFastSystemCallRet+0
    71A35FA7  00000000  0001:00004FA7 C:\\WINDOWS\\system32\\MSWSOCK.dll
    71A92E67  00000000  select+A7
    10012AC1  00000000  ?wait_for_multiple_events@?$ACE_Select_Reactor_T@V?$ACE_Reactor_Token_T@VACE_Token@@@@@@MAEHAAVACE_Select_Reactor_Handle_Set@@PAVACE_Time_Value@@@Z+D1
    FFFFFFFF  FFFFFFFF  0000:00000000 
    
    Call stack:
    Address   Frame     Function      SourceFile
    7C90EB94  00000000  KiFastSystemCallRet+0
    71A35FA7  00000000  0001:00004FA7 C:\\WINDOWS\\system32\\MSWSOCK.dll
    71A92E67  00000000  select+A7
    10012AC1  00000000  ?wait_for_multiple_events@?$ACE_Select_Reactor_T@V?$ACE_Reactor_Token_T@VACE_Token@@@@@@MAEHAAVACE_Select_Reactor_Handle_Set@@PAVACE_Time_Value@@@Z+D1
    FFFFFFFF  FFFFFFFF  0000:00000000 
    ========================
    Local Variables And Parameters
    

    2008-11-17 20:58:46 ERROR:Aura (Spell 2458 Effect 0) is in process but attempt removed at aura (Spell 7381 Effect 2) adding, need add stack rule for Unit::RemoveNoStackAurasDueToAura
    2008-11-17 20:58:53 ERROR:SESSION: received not allowed opcode CMSG_MOVE_NOT_ACTIVE_MOVER (0x02D1)
    2008-11-17 20:58:53 ERROR:SD2: Creature 3256 using Event 3501414 (Type = 0) has InitialMax < InitialMin. Event disabled.
    2008-11-17 20:58:54 ERROR:Aura (Spell 2458 Effect 0) is in process but attempt removed at aura (Spell 7381 Effect 0) adding, need add stack rule for Unit::RemoveNoStackAurasDueToAura
    2008-11-17 20:58:54 ERROR:Aura (Spell 2458 Effect 0) is in process but attempt removed at aura (Spell 7381 Effect 1) adding, need add stack rule for Unit::RemoveNoStackAurasDueToAura
    2008-11-17 20:58:54 ERROR:Aura (Spell 2458 Effect 0) is in process but attempt removed at aura (Spell 7381 Effect 2) adding, need add stack rule for Unit::RemoveNoStackAurasDueToAura
    2008-11-17 20:58:55 ERROR:SD2: DoScriptText with source entry 23719 (TypeId=3, guid=10200) could not find text entry -330321.
    2008-11-17 20:58:59 Added aura spellid 5118, effect 0
    2008-11-17 20:58:59 Added aura spellid 5118, effect 1
    2008-11-17 20:58:59 Added aura spellid 43308, effect 0
    2008-11-17 20:59:02 Added aura spellid 32245, effect 0
    2008-11-17 20:59:02 Added aura spellid 32245, effect 1
    2008-11-17 20:59:02 Added aura spellid 32245, effect 2
    2008-11-17 20:59:24 ERROR:SD2: Creature 5855 using Event 3501761 (Type = 0) has InitialMax < InitialMin. Event disabled.
    2008-11-17 20:59:28 ERROR:Aura (Spell 2458 Effect 0) is in process but attempt removed at aura (Spell 7381 Effect 0) adding, need add stack rule for Unit::RemoveNoStackAurasDueToAura
    2008-11-17 20:59:28 ERROR:Aura (Spell 2458 Effect 0) is in process but attempt removed at aura (Spell 7381 Effect 1) adding, need add stack rule for Unit::RemoveNoStackAurasDueToAura
    2008-11-17 20:59:28 ERROR:Aura (Spell 2458 Effect 0) is in process but attempt removed at aura (Spell 7381 Effect 2) adding, need add stack rule for Unit::RemoveNoStackAurasDueToAura
    2008-11-17 20:59:31 Added aura spellid 2479, effect 0
    2008-11-17 20:59:32 ERROR:EffectTriggerSpell of spell 2641: triggering unknown spell id 47531
    2008-11-17 20:59:39 ERROR:SESSION: received not allowed opcode CMSG_MOVE_NOT_ACTIVE_MOVER (0x02D1)
    2008-11-17 20:59:40 ERROR:SD2: DoScriptText with source entry 5676 (TypeId=3, guid=3851275) could not find text entry -330384.
    2008-11-17 20:59:43 ERROR:SD2: DoScriptText with source entry 5676 (TypeId=3, guid=3851275) could not find text entry -330385.
    2008-11-17 20:59:49 ERROR:Creature (GUIDLow: 3851428 Entry: 10440 ) has duplicate aura (spell 17467 effect 0) in `auras` field.
    2008-11-17 20:59:49 ERROR:SD2: Creature 3256 using Event 3501414 (Type = 0) has InitialMax < InitialMin. Event disabled.
    2008-11-17 20:59:51 ERROR:Aura (Spell 2458 Effect 0) is in process but attempt removed at aura (Spell 7381 Effect 0) adding, need add stack rule for Unit::RemoveNoStackAurasDueToAura
    2008-11-17 20:59:51 ERROR:Aura (Spell 2458 Effect 0) is in process but attempt removed at aura (Spell 7381 Effect 1) adding, need add stack rule for Unit::RemoveNoStackAurasDueToAura
    2008-11-17 20:59:51 ERROR:Aura (Spell 2458 Effect 0) is in process but attempt removed at aura (Spell 7381 Effect 2) adding, need add stack rule for Unit::RemoveNoStackAurasDueToAura
    2008-11-17 20:59:51 ERROR:SD2: DoScriptText with source entry 25138 (TypeId=3, guid=96619) could not find text entry -330346.
    2008-11-17 20:59:51 ERROR:SD2: DoScriptText with source entry 25138 (TypeId=3, guid=96619) could not find text entry -330347.
    2008-11-17 20:59:55 ERROR:SD2: Creature 16950 using Event 3501577 (Type = 0) has InitialMax < InitialMin. Event disabled.
    2008-11-17 20:59:55 ERROR:SD2: Creature 16950 using Event 3501577 (Type = 0) has InitialMax < InitialMin. Event disabled.
    2008-11-17 20:59:59 ERROR:WaypointMovementGenerator::LoadPath: creature Julie Honeywell(3851614) doesn't have waypoint path
    2008-11-17 20:59:59 ERROR:WaypointMovementGenerator::LoadPath: creature Phil(3851617) doesn't have waypoint path
    2008-11-17 21:00:01 GameEvent 16 "Gurubashi Arena Booty Run" started.
    2008-11-17 21:00:01 Next game event check in 7200 seconds.
    2008-11-17 21:00:04 ERROR:SD2: DoScriptText with source entry 23079 (TypeId=3, guid=81641) could not find text entry -330322.
    

  8. ok, after having some trubles with the db, now i've finished it finally :D

    check it out on the common way over git: http://github.com/DasBlub/mangos/tree/no_char_delete

    now you can set an option in the config file which specifies the keep days.

    NOTE: there has been a change in the db structure, i've split up the field 'deleteInfos' into 'deleteInfos_Name' and 'deleteInfos_Account'. you need to execute the sql file sql/updates/no_char_delete/no_char_delete.sql

    because i think, that nobody has used this patch until now on a prod. system, i haven't written an update for the table.

     uint64 guid = charFields[0].GetUInt64();;
    uint64 accountId = charFields[1].GetUInt32();
    Player::DeleteFromDB(charFields[0].GetUInt64(),accountId,true,true);
    

    why not use in DeleteFromDB variable guid defined above ?

  9. Please add impconfig to the list.

    Improved Config (ImpConfig)

    git pull git://github.com/dythzer/mangos.git impconfig

    Description: Adds more configuration options to mangos like starting gold, all class spells, PvP Token system and much more. For a full list of config options, click here.

    Author: Dythzer

    Forum topic: http://www.manground.org/forum/index.php?showtopic=82

    I created the branch yesterday but the network graph is freezed and doesn't update so it isn't there yet.

    Also, you can remove the "new commands" branch from the thread. I reforked the mangos repo (due to a bug) and didn't have a local branch for it so I can't reupload it.

    Thanks

    Added, for New commands maybe, someone have it ? would be bad to lost it, there were some good commands

  10. I'm no DB expert, but what's the difference between "REPLACE INTO" and "INSERT IGNORE INTO" ?

    If there is some record in table wih some primary key .. lets say 1 and you do

    REPLACE INTO `table1` (`primary_key`,`some_other_column`) VALUES

    ('1','blabla');

    this command replace existing record by this new,

    if you use

    INSERT IGNORE INTO `table1` (`primary_key`,`some_other_column`) VALUES

    ('1','blabla');

    this command does nothing, doesn't replace existing record.. only doesn't return error message "Duplicate entry".. if you would use INSERT INTO, this message would appear.

  11. *updated* http://github.com/DasBlub/mangos/tree/no_char_delete

    getting now the settings from the config file. please note, that you have to apply the changes to the default config also to your own config file. so to enable this patch for all characters just paste this code in:

    #    CharDeletion.Mode
    #        Character Deletion Behavior
    #        Default: 0  - Full deletion without restoration point
    #                 1  - Delinking, char gets delinked from the account, name gets freed up and appears as deleted ingame
    #                 2  - Deletion with pdump of the character
    #    CharDeletion.MinLevel
    #        Character gets deleted by CharDeletion.Mode=0 when the character hasn't the specified level yet.
    #        Default: 0  - For every character the specified mode will be used
    #                 1+ - Only for players which have reached the specified level get deleted by the specified mode.
    #                      the rest will be deleted by CharDeletion.Mode=0
    #
    ####################################################################################################################
    
    CharDeletion.Mode = 1
    CharDeletion.MinLevel = 0
    

    CharDeletion.MinLevel has no effect, because i can't get the level from the player.

    has anyone an idea how to get the player level? i've tried it with that:

    objmgr.GetPlayer(playerguid)->getLevel()

    but then, mangos crashes in Object::GetUInt32Value...

    Player::LoadValuesArrayFromDB(Tokens data, playerguid);
    uint32 level = Player::GetUInt32ValueFromArray(data, UNIT_FIELD_LEVEL);
    

×
×
  • 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