Assassin-NL Posted January 20, 2010 Share Posted January 20, 2010 hi,, im trying to learn the scripting now for 3 days. but my english isnt that good so its hard to read the manual too,, so i want to ask one question here,, if you just want to make one simple command like /hi and then in the chat it sais : Assassin sais hi to everyone! , can somone copy that line? i really learn from that i will not just copy past it, all i want to is learning to be a good scripter i know most things like Lua, and that the command you have to paste into and addCommandHandler("myCommand", myFunction) but can someone just copy that ? i will learn very much off it, thanks Link to comment
Assassin-NL Posted January 20, 2010 Author Share Posted January 20, 2010 hi,, im trying to learn the scripting now for 3 days. but my english isnt that good so its hard to read the manual too,, so i want to ask one question here,, if you just want to make one simple command like /hi and then in the chat it sais : Assassin sais hi to everyone! , can somone copy that line? i really learn from that i will not just copy past it, all i want to is learning to be a good scripter i know most things like Lua, and that the command you have to paste into and addCommandHandler("myCommand", myFunction) but can someone just copy that ? i will learn very much off it, thanks Link to comment
dzek (varez) Posted January 21, 2010 Share Posted January 21, 2010 on wiki you can found "script" like that function say_hi (player ) -- The player who triggered the command local aName = getPlayerName(player) outputChatBox (aName.. " says hi to everyone",getRootElement(), 194, 103, 181) end addCommandHandler( "hi", say_hi ) not tested but shold work:P this is server side Link to comment
dzek (varez) Posted January 21, 2010 Share Posted January 21, 2010 on wiki you can found "script" like that function say_hi (player ) -- The player who triggered the command local aName = getPlayerName(player) outputChatBox (aName.. " says hi to everyone",getRootElement(), 194, 103, 181) end addCommandHandler( "hi", say_hi ) not tested but shold work:P this is server side Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now