• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[Help] In need of a talkaction teacher >.<

Zyntax

*WannaBe Scripter*
Joined
Jan 27, 2010
Messages
533
Reaction score
40
Location
Lua & XML Section
Hey guys!

Since I really s*ck at scripting talkactions (especially the newer ones TFS0.3.5++)
I'm requesting a teacher :D

It's just one task I want to accomplish:
Code:
Player:!rise "name1"
*something happens*
or
Code:
Player:!rise "name2"
*something different happens*

If you think you can help me out here then please post a short script which deals
with the situation mentioned above.

Maybe some explanations would be really nice :D
(Why did I use this line? Because this ....)

Hope someone can help me out!

Kind regards,

Zyntax
 
LUA:
function onSay(cid, words, param, channel)

	if(param == '') then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
	elseif(param == "name1") then
		-- something
	elseif(param == "name2") then
		-- something different
	end

	return true
end
It's pretty obvious so there's no explanation.
 
Everything solved -.-

<talkactoin log="no" access="0" words="!rise" event="script" value="rival.lua"/>

I didn't see my typing mistake ...

Thanks for your reply Cyko!
Maybe you've got some other hints or exampels? :D
 
Back
Top