Help with lua scripts. menu

Shout-Out

User Tag List

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

    Help with lua scripts.

    Ok, i'm pretty new to the whole lua scripting. I was just curious as to whether it would be possible to script so that on character creation, a character starts with all their classes skills for instance and all there skills increased automatically with their level. Aswell as this if it would be possible to make a character start in a particular location as opposed to their default starting location. For instance in the ArceEmu optional config, there is a variable which allows for GM's to start on GMisland. Something like that essentially but for normal players.

    Lastly, would it be possible to script a teleNPC that only allows the player to teleport at a certain level.

    Any help on these would be much appreciated, maybe an outline fo what sort of codes i could try or a template of some sort to get me started off. Thank you =)

    Help with lua scripts.
  2. #2
    Ground Zero's Avatar ★ Elder ★
    Reputation
    1132
    Join Date
    Aug 2008
    Posts
    3,504
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The for level requirement it's easy;
    Code:
    if(intid == 999) then
    level = player:GetLevel()
                    if level == 19 then
                        if (player:IsDead() == true) then
                        player:ResurrectPlayer(player)
                        player:Teleport(530, -1854, 5460, 13)
                        player:SendBroadcastMessage("Successfully unstuck - Returned to the Shattrath Mall.")
                        else
                        player:Teleport(530, -1854, 5460, 13)
                        player:SendBroadcastMessage("Successfully unstuck - Returned to the Shattrath Mall.")
                        end
                    end
              end
    To start in a different location you just need to edit the coords in playercreate_info in your world database.

    To learn spells/skills on start up you need something similar to this;
    Code:
    function Teach_OnEnterWorld(event, player)
        if (player:GetPlayerClass() == "Warrior") then
        player:LearnSpell(6673) -- Battle Shout  1
        player:LearnSpell(5242) -- Battle Shout  2
        player:LearnSpell(6192) -- Battle Shout  3
    etc etc etc
    end
    end
    RegisterServerHook(3, "Teach_OnEnterWorld")

  3. #3
    w473rm310n's Avatar Member
    Reputation
    1
    Join Date
    Jul 2007
    Posts
    19
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks + Rep =D

Similar Threads

  1. Help with LUA script
    By blackfang500 in forum WoW EMU Questions & Requests
    Replies: 7
    Last Post: 03-03-2009, 10:58 PM
  2. Please help with Lua Script
    By Silentnvd in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 09-23-2008, 11:16 PM
  3. help with lua script
    By mi_ninja in forum World of Warcraft Emulator Servers
    Replies: 11
    Last Post: 06-04-2008, 09:51 PM
  4. Anyone willing to help with LUA scripting
    By nickeg in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 03-09-2008, 05:53 PM
  5. [Request] I need some help with lua script (boss on death)
    By Ellenor in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 03-03-2008, 03:47 PM
All times are GMT -5. The time now is 03:53 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