| Blockland Forums > Modification Help |
| Welcome script |
| << < (2/2) |
| Mr.jacksaunt:
I am banned, and you may want the packaging? Anyways: --- Code: ---package niceToGreetYou { function newChatHud_addLine(%text) { //Called when any line of text is added to the chat box Parent::newChatHud_addLine(%text); //This will turn the "Destiny connected." into "Destiny" %nameToGreet = strReplace(%text," connected.",""); //If the %nameToGreet variable is different to the original line greet them, //otherwise it's something else if(%nameToGreet !$= %text) { //Send a chat message saying hi to the player who joined (%nameToGreet) commandtoserver('messagesent',"Hey, " @ %nameToGreet); } } }; activatePackage(niceToGreetYou); --- End code --- |
| Swollow:
like description txt and execute? Ill be fine |
| Navigation |
| Message Index |
| Previous page |