Forums WoW Modding Discussion Serverside [Archive] Script Question

[Archive] Script Question

[Archive] Script Question

rektbyfaith
Administrator
0
03-06-2016, 10:37 PM
#1
Archived author: Peacy • Posted: 2016-03-06T22:37:51+00:00
Original source

Hello Model-Changing,

I want to create a Bunny npc that will phase people depending on what quests they have completed upon entering the building.

function PhaseSystemCity(eventId, delay, repeats, worldobject)

    local player = worldobject:GetNearestPlayer(20)

    if player ~= nil then

    if (player:GetQuestStatus(40018) == 6 and player:GetPhaseMask() == 1) then

        player:SetPhaseMask(2)

    end

end

end

I made the code and it works but there is only one thing i'm confused about how can I make it so when players complete the next quest they get phased into phase 4. In addition to this how can I make it so if they get out of the 20 yard range their phased back into phase 1?

Thanks, Peacy!
rektbyfaith
03-06-2016, 10:37 PM #1

Archived author: Peacy • Posted: 2016-03-06T22:37:51+00:00
Original source

Hello Model-Changing,

I want to create a Bunny npc that will phase people depending on what quests they have completed upon entering the building.

function PhaseSystemCity(eventId, delay, repeats, worldobject)

    local player = worldobject:GetNearestPlayer(20)

    if player ~= nil then

    if (player:GetQuestStatus(40018) == 6 and player:GetPhaseMask() == 1) then

        player:SetPhaseMask(2)

    end

end

end

I made the code and it works but there is only one thing i'm confused about how can I make it so when players complete the next quest they get phased into phase 4. In addition to this how can I make it so if they get out of the 20 yard range their phased back into phase 1?

Thanks, Peacy!

rektbyfaith
Administrator
0
03-07-2016, 07:22 PM
#2
Archived author: Peacy • Posted: 2016-03-07T19:22:36+00:00
Original source

Nevermind I solved it!
rektbyfaith
03-07-2016, 07:22 PM #2

Archived author: Peacy • Posted: 2016-03-07T19:22:36+00:00
Original source

Nevermind I solved it!

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)