I’m working with a Legion server 7.2.5 and I have a question regarding smart_scripts.
Little background: The npc should say something if a player is in a specific range, but only if it is a player. I have creatures walking with waypoints near this npc and they should not trigger the event.
I use the event type “SMART_EVENT_OOC_LOS” and it is working fine, but I only want to trigger it if there is a player. On the wiki is written that param5 is “0/1 Player Only” but I only have “event_param_string” in my table. I also tried to use this field with “1” or “Player only” as a value, but it doesn’t work.
Is there a work around that I can use to only trigger the event if there is a player? If it’s possible I don’t want to use custom scripts.
I have only been able to do this kind of trigger changing the code and not in smart scripts, which the last time I checked there was no way to do this with the updated scripts right now because it is not finished but I could be wrong it has been a while since I looked.
Use
CONDITION_OBJECT_ENTRY_GUID = 31, // TypeID entry guid true if object is type TypeID and the entry is 0 or matches entry of the object or matches guid of the object
CONDITION_SOURCE_TYPE_SMART_EVENT
22
ID ([smart_scripts.id](https://trinitycore.atlassian.net/wiki/display/tc/smart_scripts#smart_scripts-id)) + 1
4 : TYPEID_PLAYER