Whats wrong with creature loot and my LUA Scripts menu

Shout-Out

User Tag List

Results 1 to 13 of 13
  1. #1
    controlsx2's Avatar Member
    Reputation
    16
    Join Date
    Jun 2007
    Posts
    223
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Whats wrong with creature loot and my LUA Scripts

    Basicly my boss just wont do anything from my scripts. here are my scripts

    function corrupter_enter (pUnit, Event)
    pUnit:SendChatMessage (11, 0, "For **** Sake! Can't you just leave me grow leaves in peace?")
    end


    function corrupter_die (pUnit, Event)
    pUnit:SendChatMessage (11, 0, "Well done, you killed a ****ing tree. Any arsehole with a chainsaw coulda done it!!")
    end


    function corrupter_HealthCheck(Unit)
    if Unit:GetHealthPct() < 10 and Didthat == 0 then
    Unit:CastSpell(14204)
    Didthat = 1
    else
    end
    end

    function corrupterfight(unit, event, miscunit, misc)
    print "corrupter"
    unit:RegisterEvent("corrupter_HealthCheck",1000,1)
    end

    RegisterUnitEvent(519201,1,"corrupterfight")
    RegisterUnitEvent (519201,4,"corrupter_die")
    RegisterUnitEvent (519201,4,"corrupter_die")
    RegisterUnitEvent (519201,1,"corrupter_enter")
    RegisterUnitEvent (519201,1,"corrupter_enter")
    And it wont drop anything. Here is what i have put into SQL
    index: 619085
    entryID: 519201 (same as monster ID)
    ItemID: 29434(badge of justice)
    percent chance: 100
    heroic percent chance: 100
    min: 2
    max: 5
    thanks in advance,
    Controlsx3
    FFA: 1

    Whats wrong with creature loot and my LUA Scripts
  2. #2
    latruwski's Avatar Banned
    Reputation
    647
    Join Date
    Dec 2006
    Posts
    2,456
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    nvm i am drunk ><
    Last edited by latruwski; 05-05-2008 at 04:05 PM.

  3. #3
    controlsx2's Avatar Member
    Reputation
    16
    Join Date
    Jun 2007
    Posts
    223
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    my itemID is alot lower than 200,000 and eys ofc he is spawned. How else would i know if it worked.

    Is the mob number (ive got 519201) supposed to be the number you use to spawn him (i spawn him with .npc spawn 519201) or the SQL entry(every mob has a different entry even if its same mob)?

  4. #4
    controlsx2's Avatar Member
    Reputation
    16
    Join Date
    Jun 2007
    Posts
    223
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    See the script is right. but it doesnt work. And eys LUA scripts are enabled as i use them for portals
    Last edited by controlsx2; 05-05-2008 at 04:36 PM.

  5. #5
    controlsx2's Avatar Member
    Reputation
    16
    Join Date
    Jun 2007
    Posts
    223
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok so ive added in print commands and the LUA script is activating but the boss isnt saying anything

  6. #6
    Lich King's Avatar Contributor
    Reputation
    100
    Join Date
    May 2007
    Posts
    911
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try this:
    function corrupter_HealthCheck(pUnit, Event)
    if Unit:GetHealthPct() < 10
    pUnit:FullCastSpell(14204)
    end
    end

    function corrupterfight(unit, event, miscunit, misc)
    pUnit:RegisterEvent("corrupter_HealthCheck",1000, 1)
    pUnit:SendChatMessage (11, 0, "For **** Sake! Can't you just leave me grow leaves in peace?")
    end

    function corrupter_die (pUnit, Event)
    pUnit:SendChatMessage (11, 0, "Well done, you killed a ****ing tree. Any arsehole with a chainsaw coulda done it!!")
    end

    RegisterUnitEvent(519201, 1, "corrupterfight")
    RegisterUnitEvent (519201, 4, "corrupter_die")
    *This message is now over 10 characters long*

  7. #7
    controlsx2's Avatar Member
    Reputation
    16
    Join Date
    Jun 2007
    Posts
    223
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    nope nothing. thing is it shows the print command just the boss doesnt say anything

  8. #8
    Lich King's Avatar Contributor
    Reputation
    100
    Join Date
    May 2007
    Posts
    911
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is Lua enabled in your server?

  9. #9
    controlsx2's Avatar Member
    Reputation
    16
    Join Date
    Jun 2007
    Posts
    223
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes. i use LUA for portals and things

  10. #10
    Lich King's Avatar Contributor
    Reputation
    100
    Join Date
    May 2007
    Posts
    911
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, try this for your loot:
    INSERT INTO `creatureloot` (`entryid`, `itemid`, `percentchance`, `heroicpercentchance`, `mincount`, `maxcount`) VALUES ('519201', '29434', '100', '100', '2', '5');

  11. #11
    controlsx2's Avatar Member
    Reputation
    16
    Join Date
    Jun 2007
    Posts
    223
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Betrayer your just giving me back stuff ive already done myself. i already have those values in

  12. #12
    xaverz's Avatar Banned
    Reputation
    8
    Join Date
    May 2008
    Posts
    113
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Control, go to the "creatureloot" table ,

    index <55555>
    entryID <creatureID>
    ItemID <ITEMID>
    chance<chance to drop>
    ´minloot<minloot
    ¨maxloot<maxloot>
    FFALOOT = "0" for roll loot , "1" for eachpartyMemberLOOT

  13. #13
    controlsx2's Avatar Member
    Reputation
    16
    Join Date
    Jun 2007
    Posts
    223
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by xaverz View Post
    Control, go to the "creatureloot" table ,

    index <55555>
    entryID <creatureID>
    ItemID <ITEMID>
    chance<chance to drop>
    ´minloot<minloot
    ¨maxloot<maxloot>
    FFALOOT = "0" for roll loot , "1" for eachpartyMemberLOOT
    Doesnt work

Similar Threads

  1. Whats wrong with my LUA
    By Lakotaness in forum WoW EMU Questions & Requests
    Replies: 18
    Last Post: 02-28-2009, 08:45 PM
  2. whats wrong with this LUA?
    By Envoke in forum WoW EMU Questions & Requests
    Replies: 5
    Last Post: 02-22-2009, 10:06 AM
  3. Whats wrong with this LUA Script?
    By controlsx2 in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 05-20-2008, 03:03 PM
  4. Blizzard's Policy and whats wrong with it PART ONE
    By WoWLegend in forum World of Warcraft General
    Replies: 12
    Last Post: 11-26-2006, 07:59 AM
All times are GMT -5. The time now is 09:33 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