User Tag List

Page 3 of 5 FirstFirst 1 2 3 4 5 LastLast
Results 15 to 21 of 34

Thread: Rules/Info System on Login

  1. #15
    Moderator / Eluna Dev <span style='color: #FF0000'><span class='glow_8B0000'>Rochet2</span></span>'s Avatar
    Join Date
    Apr 2013
    Location
    Finland
    Posts
    1,859
    XP
    13,487
    Level
    35
    Thanks
    95
    Thanked 591 Times in 418 Posts
    Good news: the crash has been fixed.
    Bad news: you need to pull latest code (for trinity eluna) and compile your core again.

    Other news: To fix the sound error you have to use some method found here: http://eluna.emudevs.com/?search=sound
    Maybe try the player:PlayDirectSound(1509, player)
    Awards:
    Support LOL Scripter Facepalm! Raffle Winner
    rochet2.github.io - Home of great codes

  2. #16
    Exalted Member
    Join Date
    Dec 2013
    Location
    United Kingdom
    Posts
    291
    XP
    305,197
    Level
    116
    Thanks
    42
    Thanked 11 Times in 10 Posts
    okay, thank checking out now
    Achievements:
    Member 1 year registered Level XL Level C
    warning

    Warning

    Don't look at my profile.




  3. #17
    Respected Member kusanagy's Avatar
    Join Date
    Mar 2014
    Posts
    79
    XP
    2,910
    Level
    15
    Thanks
    22
    Thanked 5 Times in 4 Posts
    hello,
    you need modify the source,

    go to:
    Source\src\server\game\LuaEngine
    LuaFunctions.cpp

    look,
    { "Resurrect Player", & Lua Player :: Resurrect Player},
    in the line . 656
    below this, paste :
    { "PlaySoundToPlayer", &LuaPlayer::PlaySoundToPlayer },
    done. save now.

    step.2
    now in the file. PlayerMethods.h
    below t
    int GossipClearMenu(Eluna* /*E*/, lua_State* /*L*/, Player* player)
    {
    player->PlayerTalkClass->ClearMenus();
    return 0;
    }
    just below this, enter the following.
    int PlaySoundToPlayer(Eluna* /*E*/, lua_State* L, Player* player)
    {
    uint32 soundId = Eluna::CHECKVAL<uint32>(L, 2);
    SoundEntriesEntry const* soundEntry = sSoundEntriesStore.LookupEntry(soundId);
    if (!soundEntry)
    return 0;

    player->PlayDirectSound(soundId, player);
    return 0;
    }
    ready, proceed with the compilation.

  4. #18
    Moderator / Eluna Dev <span style='color: #FF0000'><span class='glow_8B0000'>Rochet2</span></span>'s Avatar
    Join Date
    Apr 2013
    Location
    Finland
    Posts
    1,859
    XP
    13,487
    Level
    35
    Thanks
    95
    Thanked 591 Times in 418 Posts
    Quote Originally Posted by kusanagy View Post
    hello,
    you need modify the source,

    go to:
    Source\src\server\game\LuaEngine
    LuaFunctions.cpp

    look,

    in the line . 656
    below this, paste :

    done. save now.

    step.2
    now in the file. PlayerMethods.h
    below t


    just below this, enter the following.


    ready, proceed with the compilation.
    rather use the existing sound functions.
    Awards:
    Support LOL Scripter Facepalm! Raffle Winner
    rochet2.github.io - Home of great codes

  5. #19
    Enthusiast
    Join Date
    Mar 2014
    Posts
    17
    XP
    1,878
    Level
    12
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Any Idea why when I added this script most things worked, but i had to get rid of the Freeze, as a new player It never showed me rules upon creating a character, all i would do is enter game, and be rooted to the floor. Any idea why it dont show the rules when creating new character?

  6. #20
    Moderator / Eluna Dev <span style='color: #FF0000'><span class='glow_8B0000'>Rochet2</span></span>'s Avatar
    Join Date
    Apr 2013
    Location
    Finland
    Posts
    1,859
    XP
    13,487
    Level
    35
    Thanks
    95
    Thanked 591 Times in 418 Posts
    Quote Originally Posted by revowow View Post
    Any Idea why when I added this script most things worked, but i had to get rid of the Freeze, as a new player It never showed me rules upon creating a character, all i would do is enter game, and be rooted to the floor. Any idea why it dont show the rules when creating new character?
    check your error logs. They should tell you that you probably have a lua error on line 77 in server_rules.lua
    Or maybe there is some other error, but anyways there should be an error somewhere there.
    Awards:
    Support LOL Scripter Facepalm! Raffle Winner
    rochet2.github.io - Home of great codes

  7. #21
    Respected Member
    Join Date
    Nov 2013
    Location
    Sweden
    Posts
    126
    XP
    3,291
    Level
    16
    Thanks
    4
    Thanked 5 Times in 5 Posts
    hi all i tryed to add this. but i get these error's, anyone know where and what i should get to fic this,

    http://puu.sh/qHJc9/fde91615e9.png
    Achievements:
    Member 1 year registered Level XV
    hi all sorry if i write bad but i have dyslexia.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •