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

Need Some Param Help

Blackcody

RiseOfTibia Owner
Joined
Aug 31, 2008
Messages
136
Reaction score
1
LUA:
function onUse(cid, item, frompos, item2, topos)
local id = 3364
local time = 2
local pos = {x = 1561, y = 1568, z = 7}
local pos1 = {x = 1562, y = 1568, z = 7}
local pos2 = {x = 1561, y = 1568, z = 7}
local pos3 = {x = 1562, y = 1568, z = 7, stackpos = 1}
local pos4 = {x = 1561, y = 1568, z = 7, stackpos = 1}

if item.itemid == 1440 then 
        doCleanTile(pos3,false)
        doCleanTile(pos4,false)
	doCreatureSay(cid, "Screech ~Ambiant Sound Of Rats Fighting Behind Wall~", TALKTYPE_ORANGE_1, false, cid, pos)
	doPlayerSendTextMessage(cid,22,"The platform you are standing on shakes for a second.")
	addEvent(doCreateItem,time * 1000, id,1,pos1)
	addEvent(doCreateItem,time * 1000, id,1,pos2)
    end
    return true
end

i wanna add an affect
LUA:
	setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_BATS)
on use to the pos of
Code:
local pos5 = {x = 1561, y = 1568, z = 7}
 
LUA:
function onUse(cid, item, frompos, item2, topos)
	local id = 3364
	local time = 2
	local pos = {x = 1561, y = 1568, z = 7}
	local pos1 = {x = 1562, y = 1568, z = 7}
	local pos2 = {x = 1561, y = 1568, z = 7}
	local pos3 = {x = 1562, y = 1568, z = 7, stackpos = 1}
	local pos4 = {x = 1561, y = 1568, z = 7, stackpos = 1}
	local pos5 = {x = 1561, y = 1568, z = 7}
	 
	if item.itemid == 1440 then 
		doCleanTile(pos3, false)
		doCleanTile(pos4, false)
		doSendMagicEffect(pos5, CONST_ME_BATS)
		
		doCreatureSay(cid, "Screech ~Ambiant Sound Of Rats Fighting Behind Wall~", TALKTYPE_ORANGE_1, false, cid, pos)
		doPlayerSendTextMessage(cid, 22, "The platform you are standing on shakes for a second.")
		addEvent(doCreateItem,time * 1000, id, 1, pos1)
		addEvent(doCreateItem,time * 1000, id, 1, pos2)
	end
	return true
end
 
Back
Top