ID:328094
 
(See the best response by Neimo.)
Hello.
obj/NPCs
density = 1
layer=MOB_LAYER
New()
src.AddName()
src.overlays += 'QuestMark.dmi'
Indian
icon='NPCs.dmi'
icon_state = "Chief"
name = "Chief"
Click()
set category=null
if(src in oview(1))
winset(usr,"QuestInfo","pos=400,400;is-visible=true")
winset(usr,"QuestInfo.QuestText","text=\"Hello!\"")

..()

I made this so far. Is it possbile to make that winset window will open next to npc on screen for everyone no matter what what screen resolution they have.

Best response
set category = null would not do anything because Click() is not a verb.

You would need to loop through all mobs, then check for clients and then winset()/winshow() to show the screen. OR you can loop through all clients and just do the same thing, I just don't like looping through clients.

for(var/mob/m in oview(3, src))
if(m.client) // or you can do var/client/m
winset(m, "window", "params") // this opens windows for all players within 3 tiles
Ty that was usefull :)