Running several of the same script menu

User Tag List

Results 1 to 7 of 7
  1. #1
    newtech's Avatar Active Member
    Reputation
    57
    Join Date
    Aug 2008
    Posts
    308
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Running several of the same script

    Hey. Im having some issues with my script. It is working perfectly fine, its a bossfight for an instance Im developing, the only issue is... I cant run the script twice. Confusing? Probably. What I mean is, I cant do the same boss, in 2 different instances. I used onyxia's lair for testing, when I encountered the boss with one of my characters, and again with another character (in another raid, so in a different world) the boss acted like there was no script on it. Please help me someone? I dont understand this... D:

    Thanks
    Newtech
    LuaHypArc Lua scripter - 3.3.5a World Builder.

    Running several of the same script
  2. #2
    Terrorblade's Avatar Contributor I spent 5k CC and all I got was this user title
    CoreCoins Purchaser
    Reputation
    153
    Join Date
    Oct 2010
    Posts
    312
    Thanks G/R
    6/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You should probably read Sign In - ArcEmu .
    Stuff & Things

  3. #3
    newtech's Avatar Active Member
    Reputation
    57
    Join Date
    Aug 2008
    Posts
    308
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Terrorblade View Post
    You should probably read Sign In - ArcEmu .
    Tried, but I couldnt get it to work >_< Here's a video of what happens, when I try to encounter the boss, in 2 different raidlocks:

    I hope you can see what happens, but Im gonna explain it anyways. When I encounter it, with my tauren, the script apparently only works there, so when I move near, with my belf, it just acts like a nonscripted mob. Just autoattacking :<

    When I execute the "OnCombat" event on the belf raidlock, it happens on the taurens raidlock D:
    Oh yeah, and if I execute the "OnCombat" event via the taurens raidlock, it still happens at the tauren. Could this be cause I logged into the tauren first, that the boss in that instance, then is of highest priority?
    Anyway, what I just wanna know is... How can I make this work, so the same script, and work parallel, in 2 (or more) different raids?

    Anyone knows?
    Last edited by newtech; 11-23-2010 at 02:06 PM.
    LuaHypArc Lua scripter - 3.3.5a World Builder.

  4. #4
    Meiya Stormsinger's Avatar Contributor

    Reputation
    163
    Join Date
    Mar 2009
    Posts
    196
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What happends is that the NPC in question tries to call the same function twice, and since the NPC has the same Entry ID it clashes. If you didn't notice the first encountered boss casted the same spell twice or such? , what I can tell you to do is make an exactly alike creature with a different entry and copy paste the script and enter the second ID aswell. That way you will have 2 bosses, but with the same functions. That way it won't clash, unless you use global variables (i.e: Die = Unit:CastSpell(5) ) , though if you make it a local, (i.e local Die = Unit:CastSpell(5) ) it won't clash. I made quiet a mess explaining but basically you can't have two bosses call the same function because Lua conciders it to be the same npc calling it twice, it doesn't concider the fact that there might be more then one of the spawned creature. Hope this helps

  5. #5
    newtech's Avatar Active Member
    Reputation
    57
    Join Date
    Aug 2008
    Posts
    308
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Meiya Stormsinger View Post
    What happends is that the NPC in question tries to call the same function twice, and since the NPC has the same Entry ID it clashes. If you didn't notice the first encountered boss casted the same spell twice or such? , what I can tell you to do is make an exactly alike creature with a different entry and copy paste the script and enter the second ID aswell. That way you will have 2 bosses, but with the same functions. That way it won't clash, unless you use global variables (i.e: Die = Unit:CastSpell(5) ) , though if you make it a local, (i.e local Die = Unit:CastSpell(5) ) it won't clash. I made quiet a mess explaining but basically you can't have two bosses call the same function because Lua conciders it to be the same npc calling it twice, it doesn't concider the fact that there might be more then one of the spawned creature. Hope this helps
    Wow, yeah it helped alot! Thanks mate! +Rep cookie for YOU sir! =D
    LuaHypArc Lua scripter - 3.3.5a World Builder.

  6. #6
    Meiya Stormsinger's Avatar Contributor

    Reputation
    163
    Join Date
    Mar 2009
    Posts
    196
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Cheers brah

  7. #7
    Terrorblade's Avatar Contributor I spent 5k CC and all I got was this user title
    CoreCoins Purchaser
    Reputation
    153
    Join Date
    Oct 2010
    Posts
    312
    Thanks G/R
    6/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Be happy when the ai-rewrite branch's Lua engine gets put into trunk, you won't have to bother with collision shit
    Stuff & Things

Similar Threads

  1. [Lua Script] Two gossip npc's on the same script.
    By sora2810 in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 12-01-2010, 12:56 PM
  2. 2 realms 1 pc running the same db
    By Mr.Jebus Christ in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 03-28-2008, 08:06 PM
  3. Several valentine buffs at the same time
    By ero-sennin in forum World of Warcraft Exploits
    Replies: 8
    Last Post: 02-12-2008, 01:24 PM
  4. Is there anyway you can run two WoW on the same pc?
    By bait in forum World of Warcraft General
    Replies: 5
    Last Post: 10-24-2006, 06:42 PM
  5. Can you run your acc and a alt on the same acc at the same time?
    By bait in forum World of Warcraft General
    Replies: 2
    Last Post: 08-27-2006, 04:23 AM
All times are GMT -5. The time now is 04:03 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