vexler222
Active Member
- Joined
- Apr 22, 2012
- Messages
- 714
- Solutions
- 15
- Reaction score
- 46
Hi, i try make fire stairs if we have fire boots we got teleport to X pos but if we dont have we can't stand on stairs, i have script but working only if we have boots we got teleport, if we dont have boots stairs working like normal stairs ;/
Code:
function onStepIn(cid, item, position, fromPosition)
local player = Player(cid)
local condition = Condition(CONDITION_FIRE)
local slotItem = player:getSlotItem(CONST_SLOT_FEET)
local firepos = Position(1175, 904, 7)
condition:setParameter(CONDITION_PARAM_TICKS, 5000)
if slotItem:getId() == 9932 then
player:teleportTo(firepos)
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Ooo, it work!")
else
player:addCondition(condition)
player:teleportTo(fromPosition, true)
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Bruh bruh")
end
return true
end