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

Lua Teleport switch with Outfit changer and effect

beeR_bong

New Member
Joined
Jan 3, 2008
Messages
112
Reaction score
0
Location
next to the vibrasphere
Hello!

I would like to know how I get this script to also change my outfit to a monsters outfit and send an effect like
Code:
        doSendMagicEffect(playerPos, CONST_ME_BIGCLOUDS)

I use the newest tfs

Code:
local config = {
	topos = {x=1439, y=1073, z=6},
	storage = 68412
	}

function onUse(cid, item, fromPosition, itemEx, toPosition)
	if (getPlayerStorageValue(cid,config.storage) <= 1) then
				doTeleportThing(cid, config.topos)
				doCreatureSay(cid, "Welcome back brother!", TALKTYPE_ORANGE_1)
		else	
			doPlayerSendCancel(cid,"You have not done the blood herb quest yet.")
		end
	return TRUE
end

Thanks :peace:
 
Code:
local config = {
	pos = {x=1439, y=1073, z=6},
	storage = 68412,
	lookType = 2,
	effect = CONST_ME_BIGCLOUDS
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if getPlayerStorageValue(cid,config.storage) > 0 then
		doTeleportThing(cid, config.pos)
		doSendMagicEffect(getThingPos(cid), config.effect)
		doSetCreatureOutfit(cid, {lookType = config.lookType}, -1)
		doCreatureSay(cid, "Welcome back brother!", TALKTYPE_ORANGE_1)
	else	
		doPlayerSendCancel(cid, "You have not done the blood herb quest yet.")
	end
	return TRUE
end
 
Code:
local config = {
	pos = {x=1439, y=1073, z=6},
	storage = 68412,
	lookType = 2,
	effect = CONST_ME_BIGCLOUDS
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if getPlayerStorageValue(cid,config.storage) > 0 then
		doTeleportThing(cid, config.pos)
		doSendMagicEffect(getThingPos(cid), config.effect)
		doSetCreatureOutfit(cid, {lookType = config.lookType}, -1)
		doCreatureSay(cid, "Welcome back brother!", TALKTYPE_ORANGE_1)
	else	
		doPlayerSendCancel(cid, "You have not done the blood herb quest yet.")
	end
	return TRUE
end


Thanks! helped me out alot :peace:
 

Similar threads

Back
Top