Scripting LUA 101 menu

Shout-Out

User Tag List

Page 8 of 9 FirstFirst ... 456789 LastLast
Results 106 to 120 of 132
  1. #106
    SectorSeven's Avatar Banned
    Reputation
    444
    Join Date
    Oct 2007
    Posts
    1,948
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No problem and miniko give me the error. I have a feeling it has something to do with the ' in Thor'Maz, since lua will interpret that wierd.

    Scripting LUA 101
  2. #107
    vittwow's Avatar Banned
    Reputation
    9
    Join Date
    May 2008
    Posts
    82
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    can some one help me??????how do im set the display id the and the level?of the mob

  3. #108
    SectorSeven's Avatar Banned
    Reputation
    444
    Join Date
    Oct 2007
    Posts
    1,948
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    unit:SetLevel(Level)
    unit:SetModel(Displayid)

  4. #109
    McRaider's Avatar Member
    Reputation
    1
    Join Date
    Jun 2008
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I created a mob called Syndicate Magi. Now I've made this script:

    function SyndicateMagi_onCombat (pUnit, Event)
    pUnit:CastSpell(38692, pUnit:GetRandomPlayer(0))
    end
    RegisterUnitEvent(700700, 10, "SyndicateMagi_onCombat")

    There must be something wrong, because the mob doesn't cast any spells, it just attacks with melee. I want it to cast fireball when a player gets in it's range. Is there anything wrong?

  5. #110
    SectorSeven's Avatar Banned
    Reputation
    444
    Join Date
    Oct 2007
    Posts
    1,948
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No 0 needed.
    pUnit:CastSpell(38692, pUnit:GetRandomPlayer())

    You want OnCombat right? thats a 1 not a 10
    RegisterUnitEvent(700700, 1, "SyndicateMagi_onCombat")

  6. #111
    McRaider's Avatar Member
    Reputation
    1
    Join Date
    Jun 2008
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Still not working... I have enabled the Ascent - world.conf stuff and got ascent repack 7.7. Some of my Instances were scripted before I got it and they are working...

  7. #112
    SectorSeven's Avatar Banned
    Reputation
    444
    Join Date
    Oct 2007
    Posts
    1,948
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try player:CastSpell

  8. #113
    1337w33d's Avatar Member
    Reputation
    6
    Join Date
    Jan 2008
    Posts
    42
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How does lua work with mangos? in my mangos folder I do not have a scripts folder or a scripts_bin folder... do I make them and download what I need? I understand the actual code better from your guide, but I have no clue on how to use the scripts I made with mangos...
    +1 rep that I can give though

  9. #114
    SectorSeven's Avatar Banned
    Reputation
    444
    Join Date
    Oct 2007
    Posts
    1,948
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    lua doesn't work with MaNGOS, your emulator has to have the Lua engine in it and MaNGOS doesn't, only Ascent.

  10. #115
    Koksy's Avatar Member
    Reputation
    14
    Join Date
    May 2007
    Posts
    171
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Awesome guide, really helps with creating events and such. Had to rewrite a lot of it to make it more understandable though, but great guide none the less!

  11. #116
    Bloker's Avatar Member
    Reputation
    1
    Join Date
    May 2007
    Posts
    50
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    gr8 guide i didnt now anything about LUA be4 i readed this +Rep

  12. #117
    AixCrasher's Avatar Member
    Reputation
    2
    Join Date
    Jun 2008
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi body, im spanish, so sorry mi bad english!, i got a problem!, i made this:

    function Anunciador_Player_Enters_Range (pUnit, Event)
    pUnit:SendChatMessage(0, 0, "Hola soy un robot")
    end
    RegisterUnitEvent (120000, 10, "Anunciador_Player_Enters_Range")

    But, when i enter in the game, i spawn the npc number 120000, and appears, but, they didnt come to me when i enter in the player area, and he never speak, and nothing, is just a useles npc standing. Can u please help me?

    Thank u so much!

  13. #118
    AixCrasher's Avatar Member
    Reputation
    2
    Join Date
    Jun 2008
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ahh, and one last question, i just have to put the filename.lua in my sript dir?, i dont need no sql or something like that?. Thank u bro!

  14. #119
    virgil85's Avatar Member
    Reputation
    1
    Join Date
    Feb 2008
    Posts
    10
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Great guide mate Really helped me
    I wish I would +Rep you /cry

    Ugh there's 1 more thing .... I dont understand how to register the scrip or something like that .. I got the script in my Lua folder but it doesnt work .. did i miss something ??
    Last edited by virgil85; 07-12-2008 at 03:37 PM.

  15. #120
    Blackheat's Avatar Member
    Reputation
    81
    Join Date
    Apr 2007
    Posts
    67
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks alot for the guide, helped me, i scripted a boss in 20 min .
    And its first time. Alot of thanks to you.
    Now more details, like building phases on mobs.
    for instance: Phase 1 Normal dmg etc. Phase 2 (50%hp left) He gets enraged, and stuff like that. Thanks alot<33333

Page 8 of 9 FirstFirst ... 456789 LastLast

Similar Threads

  1. [Release] My Custom boss script (LUA)
    By Nilrac in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 06-17-2008, 03:57 AM
  2. [share] mini-tut on gossip scripts lua
    By b!atch in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 05-29-2008, 05:11 AM
  3. Need help with my script [lua]
    By Satzen in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 05-18-2008, 05:19 PM
  4. [Guide] Troubleshooting LUA 101
    By EcHoEs in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 04-10-2008, 08:23 AM
  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 04:59 PM. 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