Siegh
Thronar Developer
Hello, as the thread's name implies, I'm trying to, in a spell, check my target's name if it matches a few entries written in an array inside the global.lua. Here's what I mean:
global.lua
spell.lua
Nothing happens regarding this part of the script, but I also get no errors on the console.
I know it's not done properly, I tried to adapt another similar code but to no effect. Please help me solve this simple problem
global.lua
Code:
undeadCheck = {("Skeleton"), ("Skeleton Guardian"), ("Blood Skeleton"), ("Apparition"), ("Ghoul"), ("Skeleton Bear"), ("Slime"), ("Aberration")}
spell.lua
Code:
if target == isInArray(undeadCheck, target) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "TEST WORKED")
end
Nothing happens regarding this part of the script, but I also get no errors on the console.
I know it's not done properly, I tried to adapt another similar code but to no effect. Please help me solve this simple problem