• 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!

Pomoc ze skryptem talkaction

Status
Not open for further replies.

Azor

Cze
Joined
Dec 14, 2008
Messages
106
Reaction score
0
Location
Poland > Zachodniopomorskie > Police
To taki przykład.
Code:
function onSay(cid, words, param, channel)
			local summons = getCreatureSummons(cid)
					if(table.maxn(summons) <= 0) then
						doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You don't have any summons..") 
						
						doCreatureSay(cid, 'omg',19)
						return false
					else
					   doSendMagicEffect(getCreaturePosition(cid), 1)
					   return 0
					end
end
Code:
	<talkaction words="test" event="script" value="test.lua"/>
Co zrobić, że gdy napisze 'test' to nie pokazywało tego na żadnym kanale? :>
 
Lua:
function onSay(cid, words, param, channel)
	local summons = getCreatureSummons(cid)
	if(table.maxn(summons) <= 0) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You don't have any summons..") 
		doCreatureSay(cid, 'omg',19)
		return true
	end
	
	doSendMagicEffect(getCreaturePosition(cid), 1)
	return true
end

a to?

@down
chojraaaaaaaaaaaaaaaaak miszczzzzzzzzzzzuuuuuuuuuuuuu
 
Code:
function onSay(cid, words, param, channel)
	if (#getCreatureSummons(cid) <= 0) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You don't have any summons..")
	else
		doSendMagicEffect(getCreaturePosition(cid), CONST_ME_BLOCKHIT)
	end
	return true
end

Lap :D
 
Status
Not open for further replies.
Back
Top