Hey i need some help, I'm trying to make a Kpack for TRPG and NO its not going to spam when you kill something, Its already made and counting kills i just want to make a call script for it to call out the specific kills called for with like !callgoblin or something. Well i have the right syntax just i can't get the script to read the !callgoblin in #say:( here is what i have now
function CallTronics(%client, %msg)
{
if (String::findSubStr(%msg, "You say, \"!callgoblin") != -1)
{
say(0, "#global I have killed " @ $Kills::Goblin[$KpackCount::ClientNum]);
}
}
i belive the \"!callgoblin" is where i'm making the mistake but i just can't seem to get the script to read the message.
Any help. *note* i will not be distributing it this is only for my use and enjoyment because i will not be saying my stats every 5 mins, pretty much this is only testing my scripting capabilities right now. Please i would really like to get this working.