Lua help

Master Summoner
Joined
Sep 12, 2020
Messages
514
Reaction score
356
Iam trying to fix this code where it showing the flag on the wrong npc any help would be great ....

my code
Code:
function Z34_Client124250()
    local QuestID = 427383
    local Item = 208381
    local QuestID2 = 427384
    local Flag = 549390

    if (CheckQuest(QuestID) >= 1 and GetBagItemCount(Item) >= 1) or CheckQuest(QuestID) >= 2 then
        if CheckFlag(Flag) == 0 then
                return false
        end
end
    return true
end


here is what it shows .... this picture show my mouse over top where it supposed to be but instead it shows it on one of the items from the quest as turn in ?

Client_6hLhP3XWVS - Lua help - RaGEZONE Forums
 
I can only speak for the one for all release, but I´m sure, you got the object edit from that release as well.
Under "Quest Detail (.db)" you can manage all quests, so I assume you added your custom quest there as well?
However, under "Complete Settings" you can set the receiver npc, which should be the same npc as the giver/ Quest NPC you created.

EDIT:
Now looking at your screenshots, I see that the problem is the displacement of the quest symbol on the map. The Lua code you show is for an existing quest and is totally fine/working. So It has to be something with the map thing. I don't know if it is related to npc coordinates or if there is a file listing coordinates for these quest symbols. But I would suggest finding out if (somehow) the map is getting the wrong coordinates of the npc.
 
Last edited:
Upvote 0
But I would suggest finding out if (somehow) the map is getting the wrong coordinates of the npc.

yeah i have tried everything else, even removing all the addons it still shows them wrong ? Yeah iam not sure what or where to start... for just 1 being out of location does not make sense for the map cord to be wrong ?

UPDATE: Fixed it, had to change location to correct on for NPC to show on map..
 
Last edited:
Upvote 0
Back