• 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!

Make npc say something with an actionscript

Massen

Masserv RPG
Joined
Jul 23, 2007
Messages
324
Reaction score
1
Location
Sweden
Well, I'm currently creating an advanced quest and a npc is suppose to react when I execute a actionscript

Code:
doCreatureSay(Dario,'OOOUCH!!! HOT!! HOT!! HOT! WHAT WAS THAT GOOD FOR '..nod..'!?',TALKTYPE_YELL)

doesn't work properly and will return the error

Code:
LuaDoCreatureSay(). Creature not found

The npc is walking between 2 different coordinates:
dariorki.jpg


(733,863,7 and 733,864,7 if anyone is interested)

The question is, do I need to get the npcs ID somehow and if I do, can someone please give me an example or help me solve this? :)

Kind regards


//Massen
 
You could just make it send a yell message from the pos where the npc is, and have it say "Dario: DAMN!" or what ever, instead of trying to make the npc yell it

Post the script if you get it to work, sounds awesome! :eek:
 
Lua:
	local npcName = "Dario"
	local getNpc = getCreatureByName(npcName)

	if isNpc(getNpc) then
		doCreatureSay(getNpc, "OOOUCH!!! HOT!! HOT!! HOT! WHAT WAS THAT GOOD FOR " .. nod .. "!?", TALKTYPE_YELL)
		return TRUE
	end

;)!
 
Lua:
	local npcName = "Dario"
	local getNpc = getCreatureByName(npcName)

	if isNpc(getNpc) then
		doCreatureSay(getNpc, "OOOUCH!!! HOT!! HOT!! HOT! WHAT WAS THAT GOOD FOR " .. nod .. "!?", TALKTYPE_YELL)
		return TRUE
	end

;)!


I love you, thanks alot! + rep

An image btw :)


sabotage.png


thanks alot

//Massen
 
Back
Top