[Lua] Gameobject not sure its working menu

User Tag List

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

    [Lua] Gameobject not sure its working

    I'll have currently no time to test this lua and fix the mistakes (im pretty sure it dont work <.<) so i will give 2x +Rep to hoever find bugs in the lua ^^

    UPDATE:

    For some weird reason it cast berserk on youO_O

    local X
    local Y
    local Z
    local O


    function ThingLoot_onUse (pUnit, Event, pMisc, player)
    if player:HasFinishedQuest(900022) == true or player:HasFinishedQuest(900024) == true then
    Choice=math.random(1, 100)
    if Choice >= 1 and Choice <= 20 then
    X = pMisc:GetX()
    Y = pMisc:GetY()
    Z = pMisc:GetZ()
    O = pMisc:GetO()
    pMisc:SpawnCreature(900181, x, y, z, o, 100, 180000, 0, 0, 0)
    pMisc:SpawnCreature(900181, x, y, z, o, 100, 180000, 0, 0, 0)
    pMisc:SpawnCreature(900181, x, y, z, o, 100, 180000, 0, 0, 0)
    pMisc:SpawnCreature(900181, x, y, z, o, 100, 180000, 0, 0, 0)
    pMisc:SpawnCreature(900181, x, y, z, o, 100, 180000, 0, 0, 0)
    pMisc:SpawnCreature(900181, x, y, z, o, 100, 180000, 0, 0, 0)
    pMisc:SpawnCreature(900181, x, y, z, o, 100, 180000, 0, 0, 0)
    pMisc:SpawnCreature(900181, x, y, z, o, 100, 180000, 0, 0, 0)
    pMisc:SpawnCreature(900181, x, y, z, o, 100, 180000, 0, 0, 0)
    pMisc:SpawnCreature(900181, x, y, z, o, 100, 180000, 0, 0, 0)
    pMisc:RegisterEvent("Respawn", 370000, 0)
    pMiscespawn()
    else
    pMisc:AddItem(player, 13872, 1)
    else
    player:GetMoney()
    end
    end
    end

    function Respawn (pUnit, Event, pMisc)
    SpawnGameObject(176793, x, y, z, o, 999999999, 1)


    RegisterGameObjectEvent (176793 ,4, "ThingLoot_onUse")
    Last edited by Tikki100; 08-04-2009 at 02:39 PM.

    [Lua] Gameobject not sure its working
  2. #2
    Jotox's Avatar Contributor
    Reputation
    250
    Join Date
    Mar 2008
    Posts
    282
    Thanks G/R
    0/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    local Y
    local Z
    local O
    
    
    function ThingLoot_onUse (pUnit, Event, pMisc, player)
    	if player:HasFinishedQuest(900022) == true or player:HasFinishedQuest(900024) == true then
    		Choice=math.random(1, 100)
    		if Choice >= 1 and Choice <= 20 then
    			X = pMisc:GetX()
    			Y = pMisc:GetY()
    			Z = pMisc:GetZ()
    			O = pMisc:GetO()
    			pMisc:SpawnCreature(900181, x, y, z, o, 100, 180000, 0, 0, 0)
    			pMisc:SpawnCreature(900181, x, y, z, o, 100, 180000, 0, 0, 0)
    			pMisc:SpawnCreature(900181, x, y, z, o, 100, 180000, 0, 0, 0)
    			pMisc:SpawnCreature(900181, x, y, z, o, 100, 180000, 0, 0, 0)
    			pMisc:SpawnCreature(900181, x, y, z, o, 100, 180000, 0, 0, 0)
    			pMisc:SpawnCreature(900181, x, y, z, o, 100, 180000, 0, 0, 0)
    			pMisc:SpawnCreature(900181, x, y, z, o, 100, 180000, 0, 0, 0)
    			pMisc:SpawnCreature(900181, x, y, z, o, 100, 180000, 0, 0, 0)
    			pMisc:SpawnCreature(900181, x, y, z, o, 100, 180000, 0, 0, 0)
    			pMisc:SpawnCreature(900181, x, y, z, o, 100, 180000, 0, 0, 0)
    			pMisc:RegisterEvent("Respawn", 370000, 0)--Are you sure you want this to respawn endless times?
    		else
    			pMisc:AddItem(player, 13872, 1)
    		end
    	else
    		player:GetMoney()--Did you mean to do something here? this just gets how much money he has, it doesn't actually perform any action...
    	end
    end
    
    function Respawn (pUnit, Event, pMisc)
    	SpawnGameObject(176793, x, y, z, o, 999999999, 1)--Id 99999999?...
    end
    
    
    RegisterGameObjectEvent (176793 ,4, "ThingLoot_onUse")

  3. #3
    Tikki100's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2008
    Posts
    83
    Thanks G/R
    3/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks ;D +REp x2 to you

  4. #4
    Tikki100's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2008
    Posts
    83
    Thanks G/R
    3/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Arr god dammit >.< i cannot send u rep becouse i sended u rep not long ago <.<

  5. #5
    Tikki100's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2008
    Posts
    83
    Thanks G/R
    3/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Still not working... give console error:

    Thingy loot.lua:8: attempt to index local 'player' <a nil value>
    Last edited by Tikki100; 08-04-2009 at 10:25 AM.

  6. #6
    Vision1000's Avatar Member
    Reputation
    104
    Join Date
    Jun 2008
    Posts
    122
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    function ThingLoot_onUse (pUnit, Event, pMisc, player)

    Use either, pMisc, or player. not both. (There the same thing)

    There is no CastSpell command in that script. Check in your gameobject_names table, and find the entryid. Under 'spellid' or 'castspell' column, remove the spell and/or change the gameobject type to a button.
    Last edited by Vision1000; 08-04-2009 at 03:11 PM.

  7. #7
    Tikki100's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2008
    Posts
    83
    Thanks G/R
    3/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Vision1000 View Post
    function ThingLoot_onUse (pUnit, Event, pMisc, player)

    Use either, pMisc, or player. not both. (There the same thing)

    There is no CastSpell command in that script. Check in your gameobject_names table, and find the entryid. Under 'spellid' or 'castspell' column, remove the spell and/or change the gameobject type to a button.

    Even do i did this it dont work. Well TOPIC CLOSED.

    I just remove this lua

Similar Threads

  1. Unlimited 5.0 LFR loot! (Not sure if working 5.2)
    By Kimjongleet in forum World of Warcraft Exploits
    Replies: 2
    Last Post: 03-16-2013, 08:09 AM
  2. Not exactly a AFK Bot, but its working
    By tord13 in forum World of Warcraft General
    Replies: 11
    Last Post: 06-24-2007, 08:26 PM
  3. Tailoring, not sure its an exploit.
    By twincept in forum World of Warcraft Exploits
    Replies: 6
    Last Post: 03-13-2007, 03:25 PM
  4. shadowfang keep farming (not sure if it works)
    By 4saken in forum World of Warcraft Guides
    Replies: 17
    Last Post: 12-01-2006, 11:26 PM
All times are GMT -5. The time now is 06:49 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