DragoN Auto Systems Addon

Page 1 of 5 12345 LastLast
Results 1 to 15 of 64
  1. #1
    Developer BeshoyFD is offline
    MemberRank
    Jul 2008 Join Date
    In World :)Location
    702Posts

    DragoN Auto Systems Addon

    Hello
    This is my second addon , hope you enjoy it
    what it include ?
    Advanced config For
    auto event, snow, declare, notice, Cw messages for start / end and rewards after cw for castle owner guild
    you can add multiple events , snows or notices
    unilimited items for castle war rewards

    also it include rewards at level up addon
    but this time you can add more state points or skill points as a reward in any level
    you can false or true rewards at level up addon from auto-systems.cfg file

    There is a menu to reload config, so you can make your changes in config files and reload it without restart mainsvrt

    Notes
    after you start load dll you will get an item with IID 1 , 2 and -2147483646
    you have to not worry, this is important step to skip any double IID for castle war rewards

    Important !!
    Dont use maxiid stored procedure and if you using it you have to make IID > 1
    when you write the day for events it should be like : Sat / Sun , etc...

    After 2 minuts of cw_end time , congratulation message will appear
    After 3 minuts of cw_end time , Rewards will send to members of castle owner guild


    rewards.txt / auto-systems.cfg in mainsvrt folder and the dll can load with Library or with obsidin
    i am not sure if this addon stable :)

    report on any bugs or errors :)


    Download
    Last edited by BeshoyFD; 20-12-12 at 01:55 PM.


  2. #2

    Re: DragoN Auto Systems Addon

    Oh Good Job Dragon keep going and thx<3

  3. #3
    Proficient Member SpearoX is offline
    MemberRank
    Apr 2007 Join Date
    HOLLANDLocation
    197Posts

    Re: DragoN Auto Systems Addon

    nice release dragon gonna test it now
    wil get feedback later from me
    keep up the awsome work

    greetz

  4. #4
    KalOnline Developer MaZoR is offline
    MemberRank
    Jun 2012 Join Date
    Devil's soulLocation
    423Posts

    Re: DragoN Auto Systems Addon

    Awesome work!, Thanks for release your stuff with us :)

  5. #5
    Member XCoXde is offline
    MemberRank
    Nov 2012 Join Date
    81Posts

    Re: DragoN Auto Systems Addon

    Thank you,
    you learn fast :D

  6. #6
    Quitted MadKnight is offline
    MemberRank
    Feb 2012 Join Date
    Planet VegetaLocation
    443Posts

    Re: DragoN Auto Systems Addon

    Code:
    BOOL __stdcall DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
    {
      HANDLE v4; // eax@3
      HANDLE v5; // eax@4
    
    
      if ( fdwReason )
      {
        if ( fdwReason == 1 )
        {
          DetourTransactionBegin();
          v4 = GetCurrentThread();
          sub_1002B2C0(v4);
          beginthread(SQLSetup, 0, 0);
          beginthread(ThreadWithSleep1k, 0, 0);
          DetourAttach(&Server__Menu, Dragon__Server__Menu);
          DetourAttach(&CPlayerObject__OnTimer, Dragon__CPlayerObject__OnTimer);
    // Dangerous Sleep(1000u)  in there
          DetourAttach(&CPlayer__LevelUp, Dragon__CPlayer__LevelUp);
          DetourTransactionCommit();
          return 1;
        }
      }
      else
      {
        DetourTransactionBegin();
        v5 = GetCurrentThread();
        sub_1002B2C0(v5);
        DetourTransactionCommit();
      }
      return 1;
    }
    You do some little risky things :P
    First of all you did not Detach your Functions (DetourDetach), so you will not have an clean Server Close without this.
    Second thing is you made a Sleep in CPlayerObject__OnTimer!
    1000B6D0 push 1000
    1000B6D5 call Sleep

    I think the CPlayerObject__OnTimer is now reduced by its half.
    And why do you start 2 Threads in DLL Attach when you want to use OnTimer instead of Threads?
    The SQL Statments can be done i one single function without Thread.

    I could help if you would show me the code ^^

  7. #7
    Developer BeshoyFD is offline
    MemberRank
    Jul 2008 Join Date
    In World :)Location
    702Posts

    Re: DragoN Auto Systems Addon

    Quote Originally Posted by MadKnight View Post
    Code:
    BOOL __stdcall DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
    {
      HANDLE v4; // eax@3
      HANDLE v5; // eax@4
    
    
      if ( fdwReason )
      {
        if ( fdwReason == 1 )
        {
          DetourTransactionBegin();
          v4 = GetCurrentThread();
          sub_1002B2C0(v4);
          beginthread(SQLSetup, 0, 0);
          beginthread(ThreadWithSleep1k, 0, 0);
          DetourAttach(&Server__Menu, Dragon__Server__Menu);
          DetourAttach(&CPlayerObject__OnTimer, Dragon__CPlayerObject__OnTimer);
    // Dangerous Sleep(1000u)  in there
          DetourAttach(&CPlayer__LevelUp, Dragon__CPlayer__LevelUp);
          DetourTransactionCommit();
          return 1;
        }
      }
      else
      {
        DetourTransactionBegin();
        v5 = GetCurrentThread();
        sub_1002B2C0(v5);
        DetourTransactionCommit();
      }
      return 1;
    }
    You do some little risky things :P
    First of all you did not Detach your Functions (DetourDetach), so you will not have an clean Server Close without this.
    Second thing is you made a Sleep in CPlayerObject__OnTimer!
    1000B6D0 push 1000
    1000B6D5 call Sleep

    I think the CPlayerObject__OnTimer is now reduced by its half.
    And why do you start 2 Threads in DLL Attach when you want to use OnTimer instead of Threads?
    The SQL Statments can be done i one single function without Thread.

    I could help if you would show me the code ^^
    thx for info
    about Detach , i forgot to add it :P
    about Sleep , i was using it while testing codes in normal console application :) so i forgot to remove it too

    waiting another notes and reports on addon to fix ever things in next update :)

  8. #8
    Member I LoVe YoU is offline
    MemberRank
    Jul 2012 Join Date
    79Posts

    Re: DragoN Auto Systems Addon

    nice relase how i can make 2 or 3 events each day?

    also can you make a realtime bof and realtime imp ?
    Last edited by I LoVe YoU; 02-12-12 at 08:51 PM.

  9. #9
    Developer BeshoyFD is offline
    MemberRank
    Jul 2008 Join Date
    In World :)Location
    702Posts

    Re: DragoN Auto Systems Addon

    Quote Originally Posted by I LoVe YoU View Post
    nice relase how i can make 2 or 3 events each day?

    also can you make a realtime bof and realtime imp ?
    <event> [start_msg 'Double Exp Event Started 1'] [end_msg 'Double Exp Event Ended 1'] [day Daily] [start 02:00] [end 04:00] </event>
    <event> [start_msg 'Double Exp Event Started 2'] [end_msg 'Double Exp Event Ended 2'] [day Daily] [start 06:00] [end 08:00] </event>
    <event> [start_msg 'Double Exp Event Started 3'] [end_msg 'Double Exp Event Ended 3'] [day Daily] [start 10:00] [end 12:00] </event>

    i already almost finish realtime bof , imp , mix , dss

  10. #10
    Member XCoXde is offline
    MemberRank
    Nov 2012 Join Date
    81Posts

    Re: DragoN Auto Systems Addon

    Quote Originally Posted by The..DragoN View Post
    <event> [start_msg 'Double Exp Event Started 1'] [end_msg 'Double Exp Event Ended 1'] [day Daily] [start 02:00] [end 04:00] </event>
    <event> [start_msg 'Double Exp Event Started 2'] [end_msg 'Double Exp Event Ended 2'] [day Daily] [start 06:00] [end 08:00] </event>
    <event> [start_msg 'Double Exp Event Started 3'] [end_msg 'Double Exp Event Ended 3'] [day Daily] [start 10:00] [end 12:00] </event>

    i already almost finish realtime bof , imp , mix , dss
    Do you will relase RealTime bof , imp , dss??

  11. #11
    Proficient Member Mr.wagdy is offline
    MemberRank
    Sep 2006 Join Date
    EgyptLocation
    187Posts

    Re: DragoN Auto Systems Addon

    good job , thanks <3

    3ash ya wa7sh :P

  12. #12
    Member I LoVe YoU is offline
    MemberRank
    Jul 2012 Join Date
    79Posts

    Re: DragoN Auto Systems Addon

    can you release them with us please? it will help a lot of people

  13. #13
    Proficient Member SpearoX is offline
    MemberRank
    Apr 2007 Join Date
    HOLLANDLocation
    197Posts

    Re: DragoN Auto Systems Addon

    when i load it with libary it loads but after loading i get mainsvr crash
    anyone have the same problem ?

    greetz

  14. #14
    Developer BeshoyFD is offline
    MemberRank
    Jul 2008 Join Date
    In World :)Location
    702Posts

    Re: DragoN Auto Systems Addon

    Quote Originally Posted by SpearoX View Post
    when i load it with libary it loads but after loading i get mainsvr crash
    anyone have the same problem ?

    greetz
    you loading another addons with it ?
    also you can try load it with obsidin

  15. #15
    Account Upgraded | Title Enabled! walid445200 is offline
    MemberRank
    Jan 2010 Join Date
    :DLocation
    461Posts

    Re: DragoN Auto Systems Addon

    very nice work bro . keep going



Page 1 of 5 12345 LastLast

Advertisement