Welcome to AC Web.
Results 1 to 3 of 3
  1. #1

    Eluna help with RegisterGameObjectGossipEvent!


    REGISTER! (FREE)
    Registered members see less ads
    and also gain access to other great features.
    Hey beautiful community,

    I've been stuck on this script that I've been trying to work on. Basically what I'm trying to do is add an item to the player who interacts (i believe thats gossip) with the gameobject. However, nothing happens when the gobj is clicked. My code is as follows:

    Code:
    local QuestId = 77831
    
    local function OnGobjSelect(event, player, object)
        hasQuest = player:HasQuest(77831)
        if (hasQuest == true) then
            object:SendUnitEmote("Successful.", player)
            player:AddItem(100168, 1)
        else
            
        end
    end
    
    RegisterGameObjectGossipEvent(2082, 1, OnGobjSelect)
    I would appreciate if anyone could help me out with this because I do not understand the events on the Wiki for Method Global:RegisterGameObjectGossipEvent. I'm also a newbie in LUA, so I apologize if this is something simple!

    Have a good one.

  2. #2


    Join Date
    Aug 2020
    Location
    Planet Earth
    Posts
    138
    No errors in worldserver, either ?

  3. #3

    REGISTER! (FREE)
    Registered members see less ads
    and also gain access to other great features.
    Quote Originally Posted by 0Voltage View Post
    No errors in worldserver, either ?
    Nope, no errors! Sorry for the late reply.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •