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

Monster 9.6

Allright :/ Anyway, do you know how to solve the "talking signs" for 9.6? The "doSendAnimatedText function doesnt exist anymore.

Use doPlayerSay with TALKTYPE_MONSTER(_SAY), because as you mentioned doSendAnimatedText isnt supported any longer.
 
Use doPlayerSay with TALKTYPE_MONSTER(_SAY), because as you mentioned doSendAnimatedText isnt supported any longer.

Oh, can you edit that for me? I didnt make it work.

LUA:
local config = {
	  positions = {
		    ["Hunting"] = { x = 995, y = 996, z = 7 },
                ["Quests"] = { x = 995, y = 997, z = 7 },
                ["Zombie"] = { x = 996, y = 995, z = 6 },
                ["Trainers"] = { x = 995, y = 998, z = 7 },
                ["Football"] = { x = 998, y = 995, z = 6 },
                ["Temple"] = { x = 989, y = 1373, z = 7 },
				["Shops"] = { x = 1004, y = 995, z = 7 },

	},
 
	effects = {
		CONST_ME_FIREWORK_BLUE,
	},
 
	colors = {
		TEXTCOLOR_RED,
	}
}
 
function onThink(cid, interval, lastExecution)
	for text, pos in pairs(config.positions) do
		doSendMagicEffect(pos, config.effects[math.random(1, #config.effects)])
		doSendAnimatedText(pos, text, config.colors[math.random(1, #config.colors)])
             end
              return LUA_NO_ERROR
               end

thanks
 
Oh, can you edit that for me? I didnt make it work.

LUA:
local config = {
	  positions = {
		    ["Hunting"] = { x = 995, y = 996, z = 7 },
                ["Quests"] = { x = 995, y = 997, z = 7 },
                ["Zombie"] = { x = 996, y = 995, z = 6 },
                ["Trainers"] = { x = 995, y = 998, z = 7 },
                ["Football"] = { x = 998, y = 995, z = 6 },
                ["Temple"] = { x = 989, y = 1373, z = 7 },
				["Shops"] = { x = 1004, y = 995, z = 7 },

	},
 
	effects = {
		CONST_ME_FIREWORK_BLUE,
	},
 
	colors = {
		TEXTCOLOR_RED,
	}
}
 
function onThink(cid, interval, lastExecution)
	for text, pos in pairs(config.positions) do
		doSendMagicEffect(pos, config.effects[math.random(1, #config.effects)])
		doSendAnimatedText(pos, text, config.colors[math.random(1, #config.colors)])
             end
              return LUA_NO_ERROR
               end

thanks

You really should have made the effort to fix this yourself rather than asking people to do it for you. Especially when the solution is quite easy. As far as I can tell, you simply replace doSendAnimatedText with doCreatureSay. That should fix your problem.

P.S. Make sure you put the right parameters in.

Code:
doCreatureSay(cid, text, TALKTYPE_ORANGE_1)

You can change talktype orange 1 to different things. Just look in global.lua to see the different types.
 
You really should have made the effort to fix this yourself rather than asking people to do it for you. Especially when the solution is quite easy. As far as I can tell, you simply replace doSendAnimatedText with doCreatureSay. That should fix your problem.

P.S. Make sure you put the right parameters in.

Code:
doCreatureSay(cid, text, TALKTYPE_ORANGE_1)

You can change talktype orange 1 to different things. Just look in global.lua to see the different types.

Well tried it but i got Error in console : Creature not found.
 
Of course, doCreatureSay is for creatures only.
Forget the whole animation, it's in the past, time to move on.
 

Similar threads

Back
Top