Jump to content

sso1

Members
  • Posts

    26
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Posts posted by sso1

  1. Core Revision: 9483

    Database: UDB 387

    ScriptDev2 Revision: 1607

    Arcane Missles are having wrong caster guid for the animation. They are comming from the bottom of target to the top instead of caster to target.

    Here a picture to clarify it a bit:

    missiles.png

  2. Hey there I've encountered a little problem when modifying the announce.

    This is my code:

    diff --git a/src/game/Level1.cpp b/src/game/Level1.cpp
    index b2529ae..2263f7d 100644
    --- a/src/game/Level1.cpp
    +++ b/src/game/Level1.cpp
    @@ -128,7 +128,7 @@ bool ChatHandler::HandleAnnounceCommand(const char* args)
        if(!*args)
            return false;
    
    -    sWorld.SendWorldText(LANG_SYSTEMMESSAGE,args);
    +    sWorld.SendWorldText(LANG_SYSTEMMESSAGE, m_session->GetPlayerName(), args);
        return true;
    }
    

    I also change in database for new use of argument "%s announce %s".

    But now when I try to announce from the console ( CLI ? I dont know ), the mangosd crash, I think its because he can't retrieve player name how can I make it use "CONSOLE" instead of "m_session->GetPlayerName()" ? :confused:

    Thanks in advance and excuse me my noobish question I'm new with this.

  3. It compiles and I also dont get a error on starting it up, but what is it supposed to do?^_^ I done a few things but the table in the realmd db is empty

    EDIT:

    Aww yes a error

    SQL : INSERT INTO log_loggings VALUES

    ('SSO' ,UNIX_TIMESTAMP(), '127.0.0.1', '1')

    SQL ERROR: Incoorect datetime value: '1244571469' for column 'login_time' at row 1

  4. This code works gonna test it now ingame by the way I had to remove the last ");" on the

    +   sWorld.SendWorldText(LANG_KICK_WORLD_ANNOUNCE,nameOrIP.c_str(),m_session ? m_session->GetPlayerName() : "CONSOLE",reason);                        [b]);[/b]

    Thanks very much!

    EDIT: Works awesome! Thank you very much for your patience and helping me!

  5. I get

    ..\\..\\src\\game\\Level2.cpp(2082) : error C2065: 'nameOrIP': not declared.
    ..\\..\\src\\game\\Level2.cpp(2082) : error C2228: Links von ".c_str" must be with a race / class / union.
           Typ ist ''unknown-type''
    ..\\..\\src\\game\\Level2.cpp(2082) : error C2065: 'reason': not declared.
    ..\\..\\src\\game\\Level2.cpp(2082) : error C2059: Syntaxerror: ')'
    

    compile error with your code. Anyways thanks for the help :)

  6. That's same code as xirror123's, i need

    + sWorld.SendWorldText(LANG_COMMAND_KICKMESSAGE,GetNameLink(target).c_str());
    

    with target name & the my name so like

    %s was kicked by %s.
    

    in the ban helper

    ,nameOrIP.c_str()
    

    was used i think but thats not defined in level2.cpp :S, someone knows how to do that? :confused:

    EDIT: Is there maybe ' GetNameLink(target) ' with (me) instead of (target) ?

  7. Awesome that worked, thank you =).

    So if i want to add now the one who kicked the player and a reason then it should be like

    sWorld.SendWorldText(LANG_COMMAND_ANNOUNCEKICK,nameOrIP.c_str(),GetNameLink(target).c_str(),reason);
    

    right?:mellow:

    EDIT: I compiled it with this and I got 2 errors, nameOrIP.c_str & reason are not defined :S. Any ideas?=)

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