[Help]Need an expert to look over script menu

User Tag List

Results 1 to 3 of 3
  1. #1
    Muruk's Avatar Member
    Reputation
    1
    Join Date
    Mar 2008
    Posts
    45
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Help]Need an expert to look over script

    I need somebody to look over my Lua Script for me, and correct errors/ Fix it so that it will work... Mainly because the Random Aspect is totaly new and i know nothing about it other than what the command is.

    I just dont know how to use it so Im going to post this and if anybody wishes to Fix it, then it would be very much appreciated.

    Code:
    math.randomseed(os.time()) 
     SpawnRand = Math.Random(1,2)
    
    function Wolf_Spwn(pUnit, Event)
     if (SpawnRand == 1)
     x = GetX()
     y = GetY()
     z = GetZ()
     o = GetO()
     pUnit:SpawnCreature(NPCID, x, y, z, o, 360000)
    end
    function Elemental_Spwn(pUnit, Event)
     if (SpawnRand == 2)
     x = GetX()
     y = GetY()
     z = GetZ()
     o = GetO()
     pUnit:SpawnCreature(NPCID, x, y, z, o, 360000)
    end
    function SRSC_OnCombat(pUnit, Event)
     pUnit:RegisterEvent("Wolf_Spwn",60000, 0)
     pUnit:RegisterEvent("Elemental_Spwn",60000, 0)
    end
    function SRSC_OnLeave(pUnit, Event)
     pUnit:RemoveEvents();
    end
    RegisterUnitEvent(76001, 1, "SRSC_OnCombat")
    RegisterUnitEvent(76001, 2, "SRSC_OnLeave")
    Im trying to make it so the Mob will spawn one of 2 different mobs every minute, but as i said i have no idea how to put the random aspect in.

    I do know i dont have the Unit Id for the spawned units, because i havnt created them yet.

    P.S. I also know that to some people this will look completely rediculous...I am laughing at it right now....
    Last edited by Muruk; 06-16-2008 at 10:42 PM.

    [Help]Need an expert to look over script
  2. #2
    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)
    errm. Yeah. This needs a total rewrite. Add me MSN [email protected]

  3. #3
    Muruk's Avatar Member
    Reputation
    1
    Join Date
    Mar 2008
    Posts
    45
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    erm... not sure how to do that ..i dont normally use instant messangers or internet communication in general

    but i did add your email to my contacts soooo if thats what you meant then yup....i did that

    K well i have to go to bed for tonight, but ill be on a little later tomarrow. Feel free to try your hand at rewriting it... No pressure or anything though, ill get it working eventually.
    Last edited by 2dgreengiant; 06-17-2008 at 07:22 AM. Reason: double post, merged

Similar Threads

  1. [Looking for help. Need help to find somethings.
    By Zaeoir in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 05-23-2008, 01:31 PM
  2. [Help] Need someone to check LUA script
    By stealthpyro in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 05-21-2008, 09:50 AM
  3. [Help] Need to screw over my brother.
    By acidninja in forum World of Warcraft General
    Replies: 4
    Last Post: 02-14-2008, 03:44 PM
  4. Dwarven Male to a wonderful Tauren Male, need some expert help :]
    By Arrn in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 09-11-2007, 07:27 AM
All times are GMT -5. The time now is 12:14 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.
Digital Point modules: Sphinx-based search