• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Npc

GarQet

Own3d!
Joined
Feb 10, 2009
Messages
1,381
Solutions
14
Reaction score
81
Hello!
Mam malutkie pytanko, co trzeba dodać do enpeceka aby (jak ktoś się pojawi przy nim (na ekranie)) zaczął nawoływać*?

* - chodzi o to, że bez zaczynania z nim rozmowy, będzie tj. rozmawiał do nikogo (pisał na ogólnym).
 
Code:
local yell = false
local voices = {"one", "two", "three", "not only you and me", "got one eighty dress", "and im caught in between", "countin", "bla bla bla"}

function onCreatureAppear(cid)
	if(not yell) then
		yell = true
	end
	return true
end

function onThink(cid)
	if(yell) then
		doCreatureSay(getNpcCid(), voices[math.random(#voices)], TALKTYPE_YELL)
	end
	return true
end
 
Last edited:
Code:
<voices>
<voice text="Na moim bazarze najtaniej !" interval2="100" margin="1" yell="no"/>
</voices>

???
 
Back
Top