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)
Code:
local pos5 = {x = 1561, y = 1568, z = 7}