Server Hook menu

Shout-Out

User Tag List

Thread: Server Hook

Results 1 to 3 of 3
  1. #1
    vrmp's Avatar Member
    Reputation
    1
    Join Date
    Apr 2008
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Server Hook

    Hi all,

    I'm trying to create a seperate DLL file for ascent which reads several settings from a config file. This works all like it should, but I'm also trying to adjust the players speed (run/swim/fly) when they login.
    At the moment I have changed this in the ascent core itself, but I would prefer if I could add this in my own config file and change it a bit more easy.
    I have tried hooking it to the event: SERVER_HOOK_EVENT_ON_ENTER_WORLD
    and use the following for changing the speed (picked this up from level1.cpp) pPlayer->SetPlayerSpeed(RUN, STARTING_RUNSPEED);
    STARTING_RUNSPEED is the float value read from my config file.

    I'm a beginner with C++, so maybe some of the experts here could give me a hand and tell me it is possible at all or I just should forget it.

    Server Hook
  2. #2
    doublehex's Avatar Member
    Reputation
    34
    Join Date
    Mar 2007
    Posts
    385
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    its much easier if your just edit in your core, in player.h edit these defines:
    #define PLAYER_NORMAL_RUN_SPEED 7.0f
    #define PLAYER_NORMAL_SWIM_SPEED 4.722222f
    #define PLAYER_NORMAL_FLIGHT_SPEED 7.0f
    #define MONSTER_NORMAL_RUN_SPEED 8.0f


  3. #3
    vrmp's Avatar Member
    Reputation
    1
    Join Date
    Apr 2008
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, I know these settings. I'm using them at the moment.
    But like I said im creating a custom DLL which has several features read from a config file (level,gold,rep,skills etc) and was hoping I could also use this file for a speed modification.
    Thnx for the reply, I'll just leave it like it is then.

Similar Threads

  1. [Lua Script] Server Hook function? is it correct?
    By Pieterkii in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 09-21-2011, 05:24 PM
  2. Hook your private server up to ours
    By Hboybowen in forum World of Warcraft General
    Replies: 1
    Last Post: 01-17-2009, 09:51 PM
  3. Hook your private server up to ours
    By Hboybowen in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 01-12-2009, 07:36 PM
  4. Could Someone Help Me With Hooking Up My Private Server To A Dedicated Host
    By deriko100 in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 05-27-2008, 02:42 AM
All times are GMT -5. The time now is 02:36 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search