GUA Error menu

User Tag List

Thread: GUA Error

Results 1 to 13 of 13
  1. #1
    B14d3r11's Avatar Sergeant Major
    Reputation
    9
    Join Date
    Jan 2007
    Posts
    179
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    GUA Error

    Okay guys i compiled GUA into my server and it worked but i cannot get the script to work... i keep getting a Error saying:
    Code:
     scripts\Bind Test.lua:27: attempt to call method 'SetBindPoint' <a nil value>
    My script is here:

    Code:
    local npcid = 0
    function BindItem_OnGossipTalk(item, event, player, pMisc)
    if (player:IsInCombat() == true) then
    player:SendAreaTriggerMessage("You are in combat!")
    else
        item:GossipCreateMenu(3545, player, 0)
            item:GossipMenuAddItem(3, "Bind Test", 1, 0)
        item:GossipSendMenu(player)
    end
    end
    
    function BindItem_OnGossipSelect(item, event, player, id, intid, code, pMisc)
    if(intid == 10) then
        item:GossipCreateMenu(99, player, 0)
            item:GossipMenuAddItem(3, "Bind Test", 1, 0)
        item:GossipSendMenu(player)
    end
    
    if(intid == 1) then
        item:GossipCreateMenu(99, player, 0)
            item:GossipMenuAddItem(2, "Bind", 2, 0)
            item:GossipMenuAddItem(0, "|cFF000080 [Back]", 10, 0)
        item:GossipSendMenu(player)
    end
    
    if(intid == 2) then
       item:SetBindPoint( player:GetX(), player:GetY(), player:GetZ(), player:GetMapId(), player:GetZoneId())
       player:GossipComplete()
    end
    
    intid = 0
    end
    
    RegisterItemGossipEvent(100001, 1, "BindItem_OnGossipTalk")
    RegisterItemGossipEvent(100001, 2, "BindItem_OnGossipSelect")
    And all i want it to do is, Bind their location to where ever they are.

    GUA Error
  2. #2
    Gastricpenguin's Avatar Legendary
    Reputation
    980
    Join Date
    Feb 2007
    Posts
    2,236
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    change item:SetBindPoint()
    to player:SetBindPoint()
    Life Puzzler WoW - Website | Forums

  3. #3
    B14d3r11's Avatar Sergeant Major
    Reputation
    9
    Join Date
    Jan 2007
    Posts
    179
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I tried that before item: still same error
    Last edited by B14d3r11; 07-07-2009 at 02:44 PM.

  4. #4
    Gastricpenguin's Avatar Legendary
    Reputation
    980
    Join Date
    Feb 2007
    Posts
    2,236
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The correct syntax should be player:SetBindPoint(x, y, z, map, zone)
    Check to make sure there are actual values being put into the function.
    You could add Debug messages to show what each value is.
    Life Puzzler WoW - Website | Forums

  5. #5
    B14d3r11's Avatar Sergeant Major
    Reputation
    9
    Join Date
    Jan 2007
    Posts
    179
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    player:GetX(), player:GetY(), player:GetZ(), player:GetMapId(), player:GetZoneId()
    That is whats being put into it

  6. #6
    Gastricpenguin's Avatar Legendary
    Reputation
    980
    Join Date
    Feb 2007
    Posts
    2,236
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try adding debug messages like
    printf("The X value is..." + player:GetX())
    to make sure that your values are not null.
    Life Puzzler WoW - Website | Forums

  7. #7
    B14d3r11's Avatar Sergeant Major
    Reputation
    9
    Join Date
    Jan 2007
    Posts
    179
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yea im pretty bad so i dont know how to do that so can you write it.. Im sorry if the burdens you.

  8. #8
    B14d3r11's Avatar Sergeant Major
    Reputation
    9
    Join Date
    Jan 2007
    Posts
    179
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've tried several different ways to implement it but no success... I don't know if you made it possible to have SetBindPoint be used anywhere, cause I can't get it to tell the code where you are before binding the point...
    Last edited by B14d3r11; 07-09-2009 at 10:57 PM.

  9. #9
    bigjohnson4's Avatar Member
    Reputation
    12
    Join Date
    Mar 2007
    Posts
    89
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can always use variables to define calls for each coordinate before you actually use them:
    Code:
    
    if(intid == 2) then
    local PlrX = player:GetX()
    local PlrY = player:GetY()
    local PlrZ = player:GetZ()
    local MapID = player:GetMapID()
    local ZoneID = player:GetZoneID()
       player:SetBindPoint(PlrX, PlrY, PlrZ, MapID, ZoneID)
       player:GossipComplete()
    end
    You can use debug messages like Gastric suggested like this:
    Code:
    local PlrX = player:GetX()
    local PlrY = player:GetY()
    local PlrZ = player:GetZ()
    local MapID = player:GetMapID()
    local ZoneID = player:GetZoneID()
    printf("The X value is:" + PlrX)
       player:SetBindPoint(PlrX, PlrY, PlrZ, MapID, ZoneID)
       player:GossipComplete()
    end

  10. #10
    B14d3r11's Avatar Sergeant Major
    Reputation
    9
    Join Date
    Jan 2007
    Posts
    179
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I tried something like that... except it said "Unknown command 'player' " So im going to test these

  11. #11
    B14d3r11's Avatar Sergeant Major
    Reputation
    9
    Join Date
    Jan 2007
    Posts
    179
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Now it says trying to send integrated value for printf and normaly it says SetBindPoint <a nil value>

  12. #12
    bigjohnson4's Avatar Member
    Reputation
    12
    Join Date
    Mar 2007
    Posts
    89
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try getting a players position and printing it to the screen (like I posted above) with another LuaEngine, and see if it works. It might be a problem with Gastric's engine, but I've never messed with it before.

    A last resort could possibly be using database entries, sending a query to a custom table to set the player's coordinates, then using it to set the players bind point, then deleting them afterwards.


    ...or just use pre-defined coordinates, don't use the player's position.

  13. #13
    B14d3r11's Avatar Sergeant Major
    Reputation
    9
    Join Date
    Jan 2007
    Posts
    179
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    From what i've discovered... Guaengine atm is a Bust until gastric or Dr. Robotnik or whoever he is now can fix it... if hes willing to.

Similar Threads

  1. Error In glider
    By hidebr in forum World of Warcraft General
    Replies: 4
    Last Post: 07-21-2006, 08:50 PM
  2. glider error :(
    By Ced in forum World of Warcraft General
    Replies: 2
    Last Post: 07-13-2006, 01:02 PM
  3. WoW Emu error
    By bezike in forum World of Warcraft General
    Replies: 1
    Last Post: 06-28-2006, 03:18 PM
  4. Site Error?
    By Amedis in forum Community Chat
    Replies: 8
    Last Post: 06-21-2006, 08:31 AM
  5. Error in checking WoW.exe CRC code hack?
    By Trichelieu in forum World of Warcraft General
    Replies: 0
    Last Post: 06-11-2006, 02:24 PM
All times are GMT -5. The time now is 06:08 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