Blockland Forums > Modification Help
Chat Bot Problem
<< < (2/4) > >>
Fluff-is-back:
$pref::Player::NetName is your name.
jes00:

--- Quote from: Fluff-is-back on August 03, 2011, 04:18:58 AM ---$pref::Player::NetName is your name.

--- End quote ---

--- Quote from: jes00 on August 02, 2011, 07:40:14 PM ---But I only want it to check if it's me in the case of someone saying Test.

--- End quote ---
Placid:
i'm pretty sure switch lines can only be one line, but i might be wrong

--- Code: ---case "Test":
    checkTest(%name);

...


function checkTest(%arg) {
    if(%arg $= $pref::Player::NetName)
        commandtoserver('messagesent',"Testing worked.");
}

--- End code ---
i still might be wrong.


also, of course define the function outside of the other function.
Headcrab Zombie:
They can be multiple lines
xcruso:
Have seen alot of ppl with Package Chatbot now.
Navigation
Message Index
Next page
Previous page

Go to full version