PHP:<movevent type="StepIn" itemid="TILE_ID" event="script"><![CDATA[ domodlib('BomberManMovevent') function onStepIn(cid, item, pos, fromPosition) -- onStepIn(cid, item, position, fromPosition) if (item.actionid == 110) and ( BomberManSetting.get ( cid, "bbm" , "can_Walk_Thought_Wall" ) == 0 ) then doPlayerSendCancel(cid, ' Sorry, not possible. ') doTeleportThing(cid, fromPosition, false) return FALSE end return TRUE end return true ]]></movevent>
@EDIT LOL
POST FROM 2012 SORRY, [ WHO REVIVED IT ? ]
-----------------
OR better do like i did for my bomberman mod
set ground action id to [XXX] and player storage like if he is playing the game, he cant pass else he can walk as normal tile.[ follow video and the script i used ]
mouse click will fail [ cant find a way out clicking far ]
sorry promoting my video ;'( if i get 500 view i release the script ( full )
dont forget i dont know how u manage ur bombs uids,PHP:function onThink(cid, interval) if bomb_last_interval == nil then bomb_last_interval= os.clock() end if (os.clock() - bomb_last_interval) > 2 then -- execute every 2 sec local t = getplayerbombs(cid) -- supose u also have that function !!! for k,v in pairs(t) do bomb.uid = v local duration = getItemDuration(bomb.uid) doItemSetDuration(bomb.uid, (10*1000) ) -- 10*1000 = 10s if duration < 2 then -- HERE DECLARE ALL NEEDED VAR for the EXPLOSION FUNCTION local thing = getThing(bomb.uid) local pos = getThingPos(bomb.uid) local pid = getThing(bomb.uid).actionid -- HERE CALL UR EXPLOSION FUNCTION bombExplosion(pid, thing.uid, pos ) -- remove the bomb -- doDecayItem(bomb.uid) , removething() , end end end end
Could you tell me how you managed to read bomb's uid when it's in movement?
REPLY: the uid are stored inside the player who droped it !
this way we get its power and how far it goes
and the position, getThingPos(bomb.uid).