LUA movement problems menu

User Tag List

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

    LUA movement problems

    Hey guys! I wrote a lil script and it has a part where the player het mounted and fly away. Well the script is working fine, but I can't figure out how to change the flying speed. It's super slow! Tried with many commands such as Player:SetFlying() and then i modified the flying speed of the player... even tried the SetPlayerSpeed command or something like that (found on Wiki). Anyone who knows how to edit this part of the script to make the mount fly like a 280% one will get +Rep. Thank you!

    Player:SetMovementType(256) -- running (also tried 768...)
    Player:ModifyRunSpeed(21) -- Whaaaaaaat should it be?!
    Player:SetMount(17675)
    Player:MovePlayerTo(-2548.927246, 6445.693848, 207.881470, 1.920349, 1228 -- random place, don't care about it

    LUA movement problems
  2. #2
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Player:MovePlayerTo(-2548.927246, 6445.693848, 207.881470, 1.920349, 1228

    The syntax for this is:

    X:MovePlayerTo(x, y, z, o, move_type[,speed])

    The [,speed] means that the is an optional bit where you can add in the speed of moving. May make things a lot easier....

    Player:SetMovementType(x)
    when x =....
    0 - Walk
    1 - Run
    2 - Fly

    Player:ModifyRunSpeed(21)
    When Movement type is 1 then change speed to 21.

    You just need to understand how the commands work and the rest comes easily. Try changing the speeed on the MovePlayerTo without the first two lines and see if that works. A source with something useful information about this is: /Trunk/LUA_ENGINE_COMMANDS.txt
    Last edited by stoneharry; 06-03-2010 at 09:55 AM.

  3. #3
    bendaferi's Avatar Active Member
    Reputation
    34
    Join Date
    Jun 2008
    Posts
    111
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks again corrected it as you told me:
    PlayerA:MovePlayerTo(-2548.927246, 6445.693848, 207.881470, 1.920349, 12288, 21)
    It works perfectly. +Rep for your lil guide

Similar Threads

  1. LUA script problem
    By uberhak3r in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 07-09-2008, 06:32 PM
  2. [Help] Fairly large Lua script problem
    By Muruk in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 03-16-2008, 09:03 PM
  3. LUA Scripting Problem
    By Knife in forum World of Warcraft Emulator Servers
    Replies: 18
    Last Post: 03-10-2008, 02:00 PM
  4. Lua scripts problem
    By Mr.Ice.Cold in forum World of Warcraft Emulator Servers
    Replies: 12
    Last Post: 02-02-2008, 11:44 AM
  5. .Lua portal problem
    By Kiev in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 01-12-2008, 10:49 AM
All times are GMT -5. The time now is 07:00 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