Lua question menu

User Tag List

Thread: Lua question

Results 1 to 5 of 5
  1. #1
    d3m0nicp3nguin's Avatar Member
    Reputation
    1
    Join Date
    Jun 2007
    Posts
    12
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lua question

    Is it possible to write a lua file for when people either click on an object or step on one that will modify thier speed?

    Lua question
  2. #2
    Dr. Livingstone's Avatar Member
    Reputation
    113
    Join Date
    Mar 2008
    Posts
    290
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes. It should be possible. I'm not quite sure on what you need to do to change a players speed though...

  3. #3
    Herleybob's Avatar Contributor
    Reputation
    178
    Join Date
    Jul 2007
    Posts
    663
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Why would you create a lua file to mod the speed? to create the lua file, it would require c++, and to mod the speed, you would use c+=... SO no need for the lua file.

    Nom Nom Nom :P

  4. #4
    XxCyanidexX's Avatar Member
    Reputation
    56
    Join Date
    Nov 2008
    Posts
    138
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It is possible, the lua function to modify run speed is
    Code:
    ModifyRunSpeed()

  5. #5
    BrantX's Avatar Contributor
    Reputation
    205
    Join Date
    Jul 2007
    Posts
    899
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Herleybob, You underestimate the power of Lua lol.
    Note::The Object has to be "Clickable"
    Code:
    function GameobjectName_onUse(Unit, Event, Misc)
    local plr = Unit:GetClosestPlayer()
        plr:ModifyRunSpeed()
    end
    
    RegisterGameObjectEvent(GameObjectID ,4, "GameobjectName_onUse")
    That should do it, for
    plr:ModifyRunSpeed() turn it in to any number you want.
    plr:ModifyRunSpeed(1-255)
    Last edited by BrantX; 03-25-2009 at 06:42 PM.



Similar Threads

  1. [LUA] Question
    By Algorithm in forum World of Warcraft Emulator Servers
    Replies: 9
    Last Post: 04-14-2008, 02:50 PM
  2. [LUA Question] Is it possible..?
    By Greeko in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 04-14-2008, 02:49 PM
  3. LUA Question (advanced?)
    By CairiFEA in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 04-13-2008, 01:57 AM
  4. LUA Question
    By CairiFEA in forum World of Warcraft Emulator Servers
    Replies: 8
    Last Post: 04-10-2008, 08:10 PM
  5. script lua question
    By onilank in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 12-21-2007, 06:58 PM
All times are GMT -5. The time now is 06:53 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