• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[SOLVED] Make gossip can't talk after select

Status
Not open for further replies.

mjafko

Epic Member
Hello.

I have a problem. Like I have a gossip and I select first option which makes gossip move random for 5 minutes for example. What I want to do it. Player's can't talk to him untill he move around.
Is possible ? And how ?
 

jar0fair

Emulation Addict
Eluna can get the unit's movement type. So you can run a simple if/then check in the gossip menu. Here's the Eluna function I am looking at, GetMovementType()

For example:
Code:
if creature:GetMovementType() == 3 then
return true
else
player:GossipMenuAdditem(0, "Menu Item", 1)
player:GossipSendMenu(0, creature)
end
 
Last edited:

mjafko

Epic Member
Movement was just for example.
What I want to do is :

Code:
local function OnGossipSelect(event, player, creature, sender, intid, code, menuid)

if (intid == 1) then
	-- WHEN YOU ARE HERE
end
end

when you doing something in "if (intid == 1)" player's cant click it again
 

jar0fair

Emulation Addict
Well I think that depends on what is done when that option is pressed. Can you explain what you're actually trying to accomplish, or provide your current script?
 

mjafko

Epic Member
Well my script start runing "moveto" to one point there spawn a portal and then run at home possition.
 

Grandelf

Esteemed Member
You could change the npc flag to enable/disable gossip.

To disable the option to talk:
Code:
creature:SetNPCFlags(0)
To enable the option to talk:
Code:
creature:SetNPCFlags(1)
 
Status
Not open for further replies.
Top