Lava Titan
Developer
hey, I got this code, but like you can see it only gets the name of 1 monster...
can some1 explain me how can I check the names of all monsters arround?
can some1 explain me how can I check the names of all monsters arround?
Code:
local specs = getCustomSpectators(creature:getPosition(), false, false, true, false, 15, 15, 15, 15)
for i = 1, #specs do
player:sendTextMessage(MESSAGE_INFO_DESCR, "You must kill the following monsters: "..specs[i]:getName().." before get your reward.")
return false
end