i also did:
makes it so it says that the event is full and the portal is closed
PHP:
function onStepIn(cid, item, position, fromPosition)
if item.actionid > 100 then
doSetItemSpecialDescription(item.uid, 'The portal may enter '..(item.actionid-101)..' people left.')
doSetItemActionId(item.uid, item.actionid-1)
end
return TRUE
end
function onStepOut(cid, item, position, fromPosition)
if item.actionid == 100 then
doBroadcastMessage("The Event is full, and the portal is closed.", MESSAGE_EVENT_ADVANCE)
doSendMagicEffect(position, 2)
doRemoveItem(item.uid, 1)
end
return TRUE
end
makes it so it says that the event is full and the portal is closed