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

[Request] Talkaction

Tibia Rox

Member
Joined
Feb 4, 2009
Messages
1,181
Reaction score
9
Location
U.S.A
I need a talk action to make myself a god.

Please include a script and make it like this:

Code:
	<talkaction words/attr" script="attr.lua"/>
 
LUA:
function onSay(cid,words,param,channel)
local v,allowed = getThingPos(cid),{'weed man'} --edit name to your character name.
	if isInArray(allowed,getCreatureName(cid):lower()) then
		if getPlayerGroupId(cid) == 1 then
			doPlayerSetGroupId(cid,6)
			for i = 4,16 do
				doSendMagicEffect(v,i)
			end
			doPlayerSendTextMessage(cid,27,'Promoted to god!')
		else
			doPlayerSetGroupId(cid,1)
			for i = 4,16 do
				doSendMagicEffect(v,i)
			end
			doPlayerSendTextMessage(cid,27,'Promoted to player!')
		end
	else
		doPlayerSendCancel(cid,'Not Possible.')
	end
	return true
end

use search next time.
 
LUA:
function onSay(cid,words,param,channel)
local v,allowed = getThingPos(cid),{'weed man'} --edit name to your character name.
	if isInArray(allowed,getCreatureName(cid):lower()) then
		if getPlayerGroupId(cid) == 1 then
			doPlayerSetGroupId(cid,6)
			for i = 4,16 do
				doSendMagicEffect(v,i)
			end
			doPlayerSendTextMessage(cid,27,'Promoted to god!')
		else
			doPlayerSetGroupId(cid,1)
			for i = 4,16 do
				doSendMagicEffect(v,i)
			end
			doPlayerSendTextMessage(cid,27,'Promoted to player!')
		end
	else
		doPlayerSendCancel(cid,'Not Possible.')
	end
	return true
end

use search next time.

If by saying "use search next time" you mean you found this by searching, give credits to the coder.
 
Back
Top