Server Hook function? is it correct? menu

User Tag List

Results 1 to 1 of 1
  1. #1
    Pieterkii's Avatar Member
    Reputation
    7
    Join Date
    Jan 2009
    Posts
    89
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Server Hook function? is it correct?

    So im trying to teleport someone back to tanaris when they leave tanaris, this script seems fine?
    though it says "attempt to index global 'player'". Pleas can anyone help me?

    Code:
    function GetNewZone(event, Player, ZoneId, OldZoneId)
    if ( Zoneid ~= 440 ) then
    player:KickPlayer(0)
    player:Teleport(1, -11660.05, -4719.92, 60.52, 4.32)
    end
    end
    
    RegisterServerHook(15, "GetNewZone")

    Server Hook function? is it correct?

Similar Threads

  1. Trouble hooking function with Detours
    By Miivers in forum WoW Memory Editing
    Replies: 5
    Last Post: 01-03-2016, 04:52 AM
  2. Replies: 0
    Last Post: 07-26-2010, 10:19 AM
  3. [Help] How i can hook function with debug/PTR build ?
    By Woweur in forum WoW Memory Editing
    Replies: 3
    Last Post: 07-11-2010, 12:20 PM
  4. Server Hook
    By vrmp in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 05-08-2008, 05:04 PM
  5. [Emulator Question] WoW Pets Functioning Correctly
    By TrunksVegita in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 01-13-2008, 02:05 AM
All times are GMT -5. The time now is 09:25 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search