• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

NPC coś mówi gdy coś zrobimy (action)

Erevius

It Was A Good Day
Joined
Feb 12, 2010
Messages
157
Reaction score
7
Location
Poland/Olsztyn
Siemka. Czy jest taka możliwość aby dany NPC coś powiedział gdy uruchomimy dźwignie?
Jeśli tak to prosiłbym o jakiś przykład albo wytłumaczenie.
 
Jeśli masz jednego o danym imieniu powinno wystarczyć żebyś pobrał jego id używając weźstworzeniepoimieniu i użył tego jako parametru do zróbstworzeniemów
 
Lua:
function onUse(...)
	local npc = getCreatureByName('Herbert')
	if (npc and isNpc(npc)) then
		doCreatureSay(npc, 'Why did you touch this lever?!')
	end
	return true
end
 
Back
Top