View Full Version : [SOLVED] Make gossip can't talk after select
04-04-2016, 11:08 AM
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 ?
04-04-2016, 11:43 AM
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() (http://eluna.emudevs.com/Unit/GetMovementType.html)
if creature:GetMovementType() == 3 then
player:GossipMenuAdditem(0, "Menu Item", 1)
04-04-2016, 12:00 PM
Movement was just for example.
What I want to do is :
local function OnGossipSelect(event, player, creature, sender, intid, code, menuid)
if (intid == 1) then
-- WHEN YOU ARE HERE
when you doing something in "if (intid == 1)" player's cant click it again
04-04-2016, 01:48 PM
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?
04-04-2016, 06:16 PM
Well my script start runing "moveto" to one point there spawn a portal and then run at home possition.
04-04-2016, 06:35 PM
You could change the npc flag to enable/disable gossip.
To disable the option to talk:
To enable the option to talk:
04-04-2016, 09:31 PM
Great thank you just what I look for :)
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.