Lua Help Quest 427555

Elite Diviner
Joined
Sep 12, 2020
Messages
449
Reaction score
233
Location
florida
Ok i fixed every quest there is in isle change and isle except for 1 quest iam not sure what is up with it every time i try one thing it does not work and i have tried many variables and way to create the same thing using LuaRegisterFunc but None of them work correctly..

Hell at one point in time i removed the lua code and shut everything down and it sill worked i have to be missing something, ...

I am hoping someone could write this one for me or help me with what i have to work the way it suppose to here is the
database web site

here is what i tried. i even added in step by step on what it should do but it does NOT work .... HELP please this is 1 of many ways i created this code?



Still Does not work will not give the buffs to player .. So if any one would be willing to help me would be great ....
 
Last edited:
Is there an npc running this code or are you running it? Or in game? runplot function Z36_Quest427555_GiveBuff2 will it give you a buff when you do it? have you tried it?

I remember that if it gives an npc, it should not be in the form of owner id, a different command should be used there
 
Upvote 0
I could not edit it because the forum keep blocking me for 12 hrs so yeah there is a function that calls this from the quest if you look at the link above Z36_Quest427555_GiveBuff. and i have tried running a runplot still does not work .....

I fixed it

I would share the fix but i cant system will not allow it any more
 
Last edited:
Upvote 0
Code:
function Z36_Quest427555_GiveBuff()
    local player = TargetID();
    local FlagID = 549482;
    local BuffID = 626390;
    AddBuff( player , BuffID , 1 , 60 );
    SetFlag( player , FlagID , 0 );
end
function Z36_Quest427555_TimeUp()
    local player = OwnerID();
    local FlagID = 549482;
    SetFlag( player  , FlagID , 1 );
end

This is what I did, not sure if correct though.
 
Upvote 0
Back