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

fart script

shawntio

Member
Joined
Apr 14, 2008
Messages
737
Reaction score
5
Location
sweden
Hi, i found this fart script XD it works like this when typing /fart playername the targeting players says "lol i totally just farted". so i wonder if it is possible to add a magic effect that appears behind the player like magic effect 22
Code:
function onSay(cid, words, param)
	if(param == "") then
		return TRUE
	end

local	target = getCreatureByName(param)
local playerpos = getPlayerPosition(target)
	doCreatureSay(target, 'lol i totally just farted', 1, playerpos)
	return TRUE
end
Please reply Thanks!
 
Code:
function onSay(cid, words, param)
	if(param == "") then
		return TRUE
	end

local	target = getCreatureByName(param)
local playerpos = getPlayerPosition(target)
	doCreatureSay(target, 'lol i totally just farted', 1, playerpos)
        doSendMagicEffect(getPlayerPosition(cid),22)
	return TRUE
end
 
Hi, i found this fart script XD it works like this when typing /fart playername the targeting players says "lol i totally just farted". so i wonder if it is possible to add a magic effect that appears behind the player like magic effect 22
Code:
function onSay(cid, words, param)
	if(param == "") then
		return TRUE
	end

local	target = getCreatureByName(param)
local playerpos = getPlayerPosition(target)
	doCreatureSay(target, 'lol i totally just farted', 1, playerpos)
	return TRUE
end
Please reply Thanks!

Code:
function onSay(cid, words, param)
	if(param == "") then
		return TRUE
	end

local	target = getCreatureByName(param)
local playerpos = getPlayerPosition(target)
	doCreatureSay(target, 'lol i totally just farted', 1, playerpos)
        doSendMagicEffect(getPlayerPosition(cid),22)
	return TRUE
end
short
 
Code:
function onSay(cid, words, param)
	if(param == "") then
		return TRUE
	end

local	target = getCreatureByName(param)
local playerpos = getPlayerPosition(target)
	doCreatureSay(target, 'lol i totally just farted', 1, playerpos)
        doSendMagicEffect(x=fromPosition.x+1, y=fromPosition.y, z=fromPosition.z,22)
	return TRUE
end

no understand very well :D
 
Code:
function onSay(cid, words, param)
	if(param == "") then
		return TRUE
	end

local	target = getCreatureByName(param)
local playerpos = getPlayerPosition(target)
	doCreatureSay(target, 'lol i totally just farted', 1, playerpos)
        doSendMagicEffect(x=[COLOR="red"]fromPosition[/COLOR].x+1, y=[COLOR="red"]fromPosition[/COLOR].y, z=[COLOR="red"]fromPosition[/COLOR].z,22)
	return TRUE
end

What is that??
 
if a guy need the word behind so i think this is near him 1sqm didint i am right? so this looks playerposition x, y ,z and x.+1 doing magiceffect, 22 so effect appear behind him near him 1sqm
 
LUA:
function onSay(cid, words, param)
	if(param == '') then
		doPlayerSendCancel(cid, 'Require param.')
		return true
	end

	local target = getCreatureByName(param)
	local playerpos = getThingPos(target)
	local dir = getCreatureLookDirection(target)
	
	doCreatureSay(target, 'Lol i totally just farted', 1, playerpos)	
	doSendMagicEffect({x = playerpos.x  + (dir == 1 and (-1) or dir == 3 and 1 or 0), y = playerpos.y + (dir == 0 and 1 or dir == 2 and (-1) or 0), z = playerpos.z}, 22)
	return true
end
 
Last edited:
Back
Top